Skip to content

Commit

Permalink
Add partial for Handler class (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceroypenguin authored May 29, 2024
1 parent 591135d commit 69419f2
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Immediate.Handlers.Generators/Templates/Handler.sbntxt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace {{ namespace }};
{{~ end ~}}
partial class {{ class_name }}
{
public sealed class Handler : global::Immediate.Handlers.Shared.IHandler<{{ request_type }}, {{ response_type }}>
public sealed partial class Handler : global::Immediate.Handlers.Shared.IHandler<{{ request_type }}, {{ response_type }}>
{
private readonly {{ class_fully_qualified_name }}.HandleBehavior _handleBehavior;
{{~ for behavior in (behaviors | array.reverse) ~}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

partial class ConstraintHandler
{
public sealed class Handler : global::Immediate.Handlers.Shared.IHandler<global::ConstraintHandler.Command, global::System.ValueTuple>
public sealed partial class Handler : global::Immediate.Handlers.Shared.IHandler<global::ConstraintHandler.Command, global::System.ValueTuple>
{
private readonly global::ConstraintHandler.HandleBehavior _handleBehavior;
private readonly global::ConstraintBehavior<global::ConstraintHandler.Command, global::System.ValueTuple> _constraintBehavior;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

partial class ConstraintHandler
{
public sealed class Handler : global::Immediate.Handlers.Shared.IHandler<global::ConstraintHandler.Command, global::System.ValueTuple>
public sealed partial class Handler : global::Immediate.Handlers.Shared.IHandler<global::ConstraintHandler.Command, global::System.ValueTuple>
{
private readonly global::ConstraintHandler.HandleBehavior _handleBehavior;
private readonly global::ConstraintBehavior<global::ConstraintHandler.Command, global::System.ValueTuple> _constraintBehavior;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Dummy;

partial class GetUsersQuery
{
public sealed class Handler : global::Immediate.Handlers.Shared.IHandler<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>>
public sealed partial class Handler : global::Immediate.Handlers.Shared.IHandler<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>>
{
private readonly global::Dummy.GetUsersQuery.HandleBehavior _handleBehavior;
private readonly global::YetAnotherDummy.SecondLoggingBehavior<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>> _secondLoggingBehavior1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Dummy;

partial class GetUsersQuery
{
public sealed class Handler : global::Immediate.Handlers.Shared.IHandler<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>>
public sealed partial class Handler : global::Immediate.Handlers.Shared.IHandler<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>>
{
private readonly global::Dummy.GetUsersQuery.HandleBehavior _handleBehavior;
private readonly global::YetAnotherDummy.SecondLoggingBehavior<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>> _secondLoggingBehavior1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Dummy;

partial class GetUsersQuery
{
public sealed class Handler : global::Immediate.Handlers.Shared.IHandler<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>>
public sealed partial class Handler : global::Immediate.Handlers.Shared.IHandler<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>>
{
private readonly global::Dummy.GetUsersQuery.HandleBehavior _handleBehavior;
private readonly global::Dummy.LoggingBehavior<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>> _loggingBehavior;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Dummy;

partial class GetUsersQuery
{
public sealed class Handler : global::Immediate.Handlers.Shared.IHandler<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>>
public sealed partial class Handler : global::Immediate.Handlers.Shared.IHandler<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>>
{
private readonly global::Dummy.GetUsersQuery.HandleBehavior _handleBehavior;
private readonly global::Dummy.LoggingBehavior<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>> _loggingBehavior;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Dummy;

partial class GetUsersQuery
{
public sealed class Handler : global::Immediate.Handlers.Shared.IHandler<global::Dummy.GetUsersQuery.Query, int>
public sealed partial class Handler : global::Immediate.Handlers.Shared.IHandler<global::Dummy.GetUsersQuery.Query, int>
{
private readonly global::Dummy.GetUsersQuery.HandleBehavior _handleBehavior;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Dummy;

partial class GetUsersQuery
{
public sealed class Handler : global::Immediate.Handlers.Shared.IHandler<global::Dummy.GetUsersQuery.Query, global::System.ValueTuple>
public sealed partial class Handler : global::Immediate.Handlers.Shared.IHandler<global::Dummy.GetUsersQuery.Query, global::System.ValueTuple>
{
private readonly global::Dummy.GetUsersQuery.HandleBehavior _handleBehavior;

Expand Down

0 comments on commit 69419f2

Please sign in to comment.