Skip to content

Commit

Permalink
Merge pull request #3306 from PrismLibrary/issue-3284
Browse files Browse the repository at this point in the history
made InvokeAction protected
  • Loading branch information
brianlagunas authored Jan 26, 2025
2 parents 75e5da3 + 5bb165e commit 8caa045
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions e2e/Wpf/HelloWorld.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28729.10
# Visual Studio Version 17
VisualStudioVersion = 17.12.35707.178 d17.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloWorld", "HelloWorld\HelloWorld.csproj", "{B03C14CC-8DE9-40EE-9562-12B976E4CEE8}"
EndProject
Expand All @@ -26,10 +26,6 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Prism.Events", "..\..\src\Prism.Events\Prism.Events.csproj", "{E35BF062-652E-4520-8DD8-55DC80012D57}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
..\..\src\Containers\Prism.DryIoc.Shared\Prism.DryIoc.Shared.projitems*{a0842858-bfd5-41ae-bde7-cbd870bc9900}*SharedItemsImports = 5
..\..\src\Containers\Prism.Unity.Shared\Prism.Unity.Shared.projitems*{debadaab-5c78-444e-aa77-336a43b49ec3}*SharedItemsImports = 5
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Expand Down Expand Up @@ -81,8 +77,13 @@ Global
{A0842858-BFD5-41AE-BDE7-CBD870BC9900} = {15CF1FE1-D78E-4E3D-A9F8-FA0FCC56A83A}
{DEBADAAB-5C78-444E-AA77-336A43B49EC3} = {15CF1FE1-D78E-4E3D-A9F8-FA0FCC56A83A}
{D16AADD5-6EAA-446A-83F5-9DFC36DD4108} = {63541838-3D6A-4F2E-92EF-AC4953BB9B9B}
{E35BF062-652E-4520-8DD8-55DC80012D57} = {15CF1FE1-D78E-4E3D-A9F8-FA0FCC56A83A}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D877B086-37FD-4AA5-8AB3-CF7E87E27425}
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
..\..\src\Containers\Prism.DryIoc.Shared\Prism.DryIoc.Shared.projitems*{a0842858-bfd5-41ae-bde7-cbd870bc9900}*SharedItemsImports = 5
..\..\src\Containers\Prism.Unity.Shared\Prism.Unity.Shared.projitems*{debadaab-5c78-444e-aa77-336a43b49ec3}*SharedItemsImports = 5
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion src/Prism.Events/BackgroundEventSubscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public BackgroundEventSubscription(IDelegateReference actionReference)
/// Invokes the specified <see cref="System.Action"/> in an asynchronous thread by using a <see cref="Task"/>.
/// </summary>
/// <param name="action">The action to execute.</param>
public override void InvokeAction(Action action)
protected override void InvokeAction(Action action)
{
Task.Run(action);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Prism.Events/DispatcherEventSubscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public DispatcherEventSubscription(IDelegateReference actionReference, Synchroni
/// Invokes the specified <see cref="System.Action{TPayload}"/> asynchronously in the specified <see cref="SynchronizationContext"/>.
/// </summary>
/// <param name="action">The action to execute.</param>
public override void InvokeAction(Action action)
protected override void InvokeAction(Action action)
{
syncContext.Post((o) => action(), null);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Prism.Events/EventSubscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public virtual Action<object[]> GetExecutionStrategy()
/// </summary>
/// <param name="action">The action to execute.</param>
/// <exception cref="ArgumentNullException">An <see cref="ArgumentNullException"/> is thrown if <paramref name="action"/> is null.</exception>
public virtual void InvokeAction(Action action)
protected virtual void InvokeAction(Action action)
{
if (action == null) throw new ArgumentNullException(nameof(action));

Expand Down

0 comments on commit 8caa045

Please sign in to comment.