Skip to content

Commit

Permalink
Merge pull request #389 from TimeWarpEngineering/Cramer/2024-03-04/An…
Browse files Browse the repository at this point in the history
…notations

Use AssemblyMarker
  • Loading branch information
StevenTCramer authored Mar 5, 2024
2 parents 23b6157 + 6ad9bb9 commit 9ab0c19
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Authors>Steven T. Cramer</Authors>
<Product>Blazor State</Product>
<PackageVersion>11.0.0-beta.11+8.0.101</PackageVersion>
<PackageVersion>11.0.0-beta.12+8.0.101</PackageVersion>
<PackageProjectUrl>https://timewarpengineering.github.io/blazor-state/</PackageProjectUrl>
<PackageTags>TimeWarp-State; TimeWarpState; BlazorState; Blazor; State; Blazor-State; MediatR; Mediator; Pipeline; Redux; Flux</PackageTags>
<PackageIcon>Logo.png</PackageIcon>
Expand Down
18 changes: 0 additions & 18 deletions Source/BlazorState/AssemlyAnnotations.cs

This file was deleted.

12 changes: 12 additions & 0 deletions Source/BlazorState/AssemlyMarker.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace BlazorState;

/// <summary>
/// Serves as a marker for the assembly, facilitating easy identification and reflection-based operations.
/// </summary>
/// <remarks>
/// This class is intended to be used as a reference point within the assembly for scenarios such as assembly scanning,
/// where a stable, known type is required to locate the assembly at runtime. The class is sealed to indicate it is not
/// designed for inheritance or extension, reinforcing its role as a simple marker.
/// </remarks>
[UsedImplicitly]
public sealed class AssemblyMarker { }
14 changes: 0 additions & 14 deletions Source/TimeWarp.State.Plus/AssemlyAnnotations.cs

This file was deleted.

12 changes: 12 additions & 0 deletions Source/TimeWarp.State.Plus/AssemlyMarker.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace TimeWarp.State.Plus;

/// <summary>
/// Serves as a marker for the assembly, facilitating easy identification and reflection-based operations.
/// </summary>
/// <remarks>
/// This class is intended to be used as a reference point within the assembly for scenarios such as assembly scanning,
/// where a stable, known type is required to locate the assembly at runtime. The class is sealed to indicate it is not
/// designed for inheritance or extension, reinforcing its role as a simple marker.
/// </remarks>
[UsedImplicitly]
public sealed class AssemblyMarker { }
12 changes: 12 additions & 0 deletions Tests/Test.App/Test.App.Client/AssemblyMarker.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace Test.App.Client;

/// <summary>
/// Serves as a marker for the assembly, facilitating easy identification and reflection-based operations.
/// </summary>
/// <remarks>
/// This class is intended to be used as a reference point within the assembly for scenarios such as assembly scanning,
/// where a stable, known type is required to locate the assembly at runtime. The class is sealed to indicate it is not
/// designed for inheritance or extension, reinforcing its role as a simple marker.
/// </remarks>
[UsedImplicitly]
public sealed class AssemblyMarker { }
4 changes: 2 additions & 2 deletions Tests/Test.App/Test.App.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public static void ConfigureServices(IServiceCollection serviceCollection)
options.Assemblies =
new[]
{
typeof(Program).GetTypeInfo().Assembly,
typeof(StateInitializedNotificationHandler).GetTypeInfo().Assembly
typeof(Test.App.Client.AssemblyMarker).GetTypeInfo().Assembly,
typeof(TimeWarp.State.Plus.AssemblyMarker).GetTypeInfo().Assembly
};
}
);
Expand Down

0 comments on commit 9ab0c19

Please sign in to comment.