-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove ShellDescriptorManager dependency on YesSql.ISession #12906
Conversation
…YesSql.ISession
CommitAsync is done in ShellScope BeforeDispose
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
I can't edit the files in this PR, did you revoke these permissions in your fork? |
Aknowledged it's not a problem
Waiting for @jtkech to approve the change |
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
Okay, looks good, I will look at it asap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just waiting for a final approval from @jtkech
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Show resolved
Hide resolved
|
||
// In the 'ChangedAsync()' event the shell will be released so that, on request, a new one will be built. | ||
// So, we commit the session earlier to prevent a new shell from being built from an outdated descriptor. | ||
|
||
await _session.SaveChangesAsync(); | ||
|
||
await _shellDescriptorManagerEventHandlers.InvokeAsync((handler, shellDescriptorRecord, _shellSettings) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So here we could name the delegate parameter shellDescriptor
in place of shellDescriptorRecord
.
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs
Outdated
Show resolved
Hide resolved
@TFleury Okay I approved, thanks for the last changes ;) |
Fixes #10311