diff --git a/Source/Modules/Subscriptions/Features/DomainFeatures/StripeCustomers/Application/Queries/GetStripeCustomerByStripePortalId.cs b/Source/Modules/Subscriptions/Features/DomainFeatures/StripeCustomers/Application/Queries/GetStripeCustomerByStripePortalId.cs index e31f073f..542399cc 100644 --- a/Source/Modules/Subscriptions/Features/DomainFeatures/StripeCustomers/Application/Queries/GetStripeCustomerByStripePortalId.cs +++ b/Source/Modules/Subscriptions/Features/DomainFeatures/StripeCustomers/Application/Queries/GetStripeCustomerByStripePortalId.cs @@ -4,7 +4,7 @@ namespace Modules.Subscriptions.Features.DomainFeatures.StripeCustomers.Application.Queries { - public class GetStripeCustomerByStripePortalId : IQuery + public class GetStripeCustomerByStripePortalId : Query { public string StripeCustomerStripePortalId { get; set; } } diff --git a/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Commands/CreateTrialingSubscription.cs b/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Commands/CreateTrialingSubscription.cs index b994c23b..e0cf44c2 100644 --- a/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Commands/CreateTrialingSubscription.cs +++ b/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Commands/CreateTrialingSubscription.cs @@ -6,7 +6,7 @@ namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions.Application.Commands { - public class CreateTrialingSubscription : ICommand + public class CreateTrialingSubscription : Command { public Guid UserId { get; set; } public Guid TenantId { get; set; } diff --git a/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Commands/PauseActiveSubscription.cs b/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Commands/PauseActiveSubscription.cs index 6a4948cb..ece9bcd8 100644 --- a/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Commands/PauseActiveSubscription.cs +++ b/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Commands/PauseActiveSubscription.cs @@ -4,7 +4,7 @@ namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions.Application.Commands { - public class PauseActiveSubscription : ICommand + public class PauseActiveSubscription : Command { public Stripe.Subscription Subscription { get; set; } } diff --git a/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Commands/UpdateSubscriptionPeriod.cs b/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Commands/UpdateSubscriptionPeriod.cs index 194e2398..5500818e 100644 --- a/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Commands/UpdateSubscriptionPeriod.cs +++ b/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Commands/UpdateSubscriptionPeriod.cs @@ -4,7 +4,7 @@ namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions.Application.Commands { - public class UpdateSubscriptionPeriod : ICommand + public class UpdateSubscriptionPeriod : Command { public Stripe.Subscription Subscription { get; set; } } diff --git a/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Queries/GetSubscriptionForTenant.cs b/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Queries/GetSubscriptionForTenant.cs index bf932d91..51f307ae 100644 --- a/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Queries/GetSubscriptionForTenant.cs +++ b/Source/Modules/Subscriptions/Features/DomainFeatures/StripeSubscriptions/Application/Queries/GetSubscriptionForTenant.cs @@ -4,7 +4,7 @@ namespace Modules.Subscriptions.Features.DomainFeatures.StripeSubscriptions.Application.Queries { [AuthorizeTenantAdmin] - public class GetSubscriptionForTenant : IQuery + public class GetSubscriptionForTenant : Query { public Guid UserId { get; set; } public Guid TenantId { get; set; } diff --git a/Source/Modules/Subscriptions/Features/Infrastructure/StripePayments/CreateStripeBillingPortalSession.cs b/Source/Modules/Subscriptions/Features/Infrastructure/StripePayments/CreateStripeBillingPortalSession.cs index 7c9030b3..941fb6ea 100644 --- a/Source/Modules/Subscriptions/Features/Infrastructure/StripePayments/CreateStripeBillingPortalSession.cs +++ b/Source/Modules/Subscriptions/Features/Infrastructure/StripePayments/CreateStripeBillingPortalSession.cs @@ -5,7 +5,7 @@ namespace Modules.Subscriptions.Features.Infrastructure.StripePayments { - public class CreateStripeBillingPortalSession : ICommand + public class CreateStripeBillingPortalSession : Command { public Guid UserId { get; set; } public string RedirectBaseUrl { get; set; } diff --git a/Source/Modules/Subscriptions/Features/Infrastructure/StripePayments/CreateStripeCheckoutSession.cs b/Source/Modules/Subscriptions/Features/Infrastructure/StripePayments/CreateStripeCheckoutSession.cs index 07c1018b..dc455c90 100644 --- a/Source/Modules/Subscriptions/Features/Infrastructure/StripePayments/CreateStripeCheckoutSession.cs +++ b/Source/Modules/Subscriptions/Features/Infrastructure/StripePayments/CreateStripeCheckoutSession.cs @@ -7,7 +7,7 @@ namespace Modules.Subscriptions.Features.Infrastructure.StripePayments { - public class CreateStripeCheckoutSession : ICommand + public class CreateStripeCheckoutSession : Command { public SubscriptionPlanType SubscriptionPlanType { get; set; } public Guid UserId { get; set; } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/AddUserToTenant.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/AddUserToTenant.cs index 8edbc7f4..8b4857b1 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/AddUserToTenant.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/AddUserToTenant.cs @@ -6,7 +6,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Commands { - public class AddUserToTenant : ICommand + public class AddUserToTenant : Command { public Guid TenantId { get; set; } public Guid UserId { get; set; } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/CreateTenantWithAdmin.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/CreateTenantWithAdmin.cs index 007106ef..54328e21 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/CreateTenantWithAdmin.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/CreateTenantWithAdmin.cs @@ -6,7 +6,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Commands { - public class CreateTenantWithAdmin : ICommand + public class CreateTenantWithAdmin : Command { public string Name { get; set; } public Guid AdminId { get; set; } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/DeleteTenant.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/DeleteTenant.cs index b6131411..ef5221fc 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/DeleteTenant.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/DeleteTenant.cs @@ -6,7 +6,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Commands { - public class DeleteTenant : ICommand + public class DeleteTenant : Command { public Guid TenantId { get; set; } } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/RemoveUserFromTenant.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/RemoveUserFromTenant.cs index fe38c75e..d591afad 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/RemoveUserFromTenant.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/RemoveUserFromTenant.cs @@ -4,7 +4,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Commands { - public class RemoveUserFromTenant : ICommand + public class RemoveUserFromTenant : Command { public Guid UserId { get; set; } public Guid TenantId { get; set; } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/UpdateUserRoleInTenant.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/UpdateUserRoleInTenant.cs index 4889264d..c882d8b5 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/UpdateUserRoleInTenant.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Commands/UpdateUserRoleInTenant.cs @@ -5,7 +5,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Commands { - public class UpdateTenantMembership : ICommand + public class UpdateTenantMembership : Command { public Guid TenantId { get; set; } public Guid UserId { get; set; } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetAllTenantMembershipsOfUser.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetAllTenantMembershipsOfUser.cs index 48325721..620efadc 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetAllTenantMembershipsOfUser.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetAllTenantMembershipsOfUser.cs @@ -6,7 +6,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Queries { - public class GetAllTenantMembershipsOfUser : IQuery> + public class GetAllTenantMembershipsOfUser : Query> { public Guid UserId { get; set; } } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetTenantByID.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetTenantByID.cs index 5d8116b6..4136d5d8 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetTenantByID.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetTenantByID.cs @@ -5,7 +5,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Queries { - public class GetTenantByID : IQuery + public class GetTenantByID : Query { public Guid TenantId { get; set; } } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetTenantDetailsByID.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetTenantDetailsByID.cs index 328d7357..bbca7e0e 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetTenantDetailsByID.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetTenantDetailsByID.cs @@ -6,7 +6,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Queries { - public class GetTenantDetailsByID : IQuery + public class GetTenantDetailsByID : Query { public Guid TenantId { get; set; } } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetTenantMembershipQuery.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetTenantMembershipQuery.cs index 4da10b70..3def987a 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetTenantMembershipQuery.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Tenants/Application/Queries/GetTenantMembershipQuery.cs @@ -5,7 +5,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Tenants.Application.Queries { - public class GetTenantMembershipQuery : IQuery + public class GetTenantMembershipQuery : Query { public Guid UserId { get; set; } public Guid TenantId { get; set; } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Commands/CreateNewUser.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Commands/CreateNewUser.cs index 9657c6de..ab917923 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Commands/CreateNewUser.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Commands/CreateNewUser.cs @@ -4,7 +4,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Users.Application.Commands { - public class CreateNewUser : ICommand + public class CreateNewUser : Command { public ApplicationUser User { get; set; } public ExternalLoginInfo LoginInfo { get; set; } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Commands/SetSelectedTenantForUser.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Commands/SetSelectedTenantForUser.cs index cbf683be..c01afc51 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Commands/SetSelectedTenantForUser.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Commands/SetSelectedTenantForUser.cs @@ -4,7 +4,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Users.Application.Commands { - public class SetSelectedTenantForUser : ICommand + public class SetSelectedTenantForUser : Command { public Guid SelectedTenantId { get; set; } public Guid UserId { get; set; } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Commands/UpdateUser.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Commands/UpdateUser.cs index 1e3d7529..cfb0ca67 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Commands/UpdateUser.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Commands/UpdateUser.cs @@ -3,7 +3,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Users.Application.Commands { - public class UpdateUser : ICommand + public class UpdateUser : Command { public string UserName { get; set; } public IFormFile ProfilePicture { get; set; } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Queries/GetClaimsForUser.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Queries/GetClaimsForUser.cs index bb354025..0c7aa855 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Queries/GetClaimsForUser.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Queries/GetClaimsForUser.cs @@ -6,7 +6,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Users.Application.Queries { - public class GetClaimsForUser : IQuery> + public class GetClaimsForUser : Query> { public Guid UserId { get; set; } } diff --git a/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Queries/GetUserById.cs b/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Queries/GetUserById.cs index 55b8b313..e1c9c3ef 100644 --- a/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Queries/GetUserById.cs +++ b/Source/Modules/TenantIdentity/Features/DomainFeatures/Users/Application/Queries/GetUserById.cs @@ -4,7 +4,7 @@ namespace Modules.TenantIdentity.Features.DomainFeatures.Users.Application.Queries { - public class GetUserById : IQuery + public class GetUserById : Query { public Guid UserId { get; set; } } diff --git a/Source/Shared/Features/Messaging/Command/ICommand.cs b/Source/Shared/Features/Messaging/Commands/Command.cs similarity index 51% rename from Source/Shared/Features/Messaging/Command/ICommand.cs rename to Source/Shared/Features/Messaging/Commands/Command.cs index 26f18880..462a35cb 100644 --- a/Source/Shared/Features/Messaging/Command/ICommand.cs +++ b/Source/Shared/Features/Messaging/Commands/Command.cs @@ -1,10 +1,10 @@ namespace Shared.Features.Messaging.Command { - public interface ICommand + public class Command { } - public interface ICommand + public class Command { } } diff --git a/Source/Shared/Features/Messaging/Command/CommandDispatcher.cs b/Source/Shared/Features/Messaging/Commands/CommandDispatcher.cs similarity index 90% rename from Source/Shared/Features/Messaging/Command/CommandDispatcher.cs rename to Source/Shared/Features/Messaging/Commands/CommandDispatcher.cs index 1de002fb..a16f9105 100644 --- a/Source/Shared/Features/Messaging/Command/CommandDispatcher.cs +++ b/Source/Shared/Features/Messaging/Commands/CommandDispatcher.cs @@ -9,12 +9,12 @@ public CommandDispatcher(IServiceProvider serviceProvider) { this.serviceProvider = serviceProvider; } - public Task DispatchAsync(TCommand command, CancellationToken cancellation = default) where TCommand : ICommand + public Task DispatchAsync(TCommand command, CancellationToken cancellation = default) where TCommand : Command { var handler = serviceProvider.GetRequiredService>(); return handler.HandleAsync(command, cancellation); } - public Task DispatchAsync(TCommand command, CancellationToken cancellation = default) where TCommand : ICommand + public Task DispatchAsync(TCommand command, CancellationToken cancellation = default) where TCommand : Command { var handler = serviceProvider.GetRequiredService>(); return handler.HandleAsync(command, cancellation); diff --git a/Source/Shared/Features/Messaging/Command/ICommandDispatcher.cs b/Source/Shared/Features/Messaging/Commands/ICommandDispatcher.cs similarity index 78% rename from Source/Shared/Features/Messaging/Command/ICommandDispatcher.cs rename to Source/Shared/Features/Messaging/Commands/ICommandDispatcher.cs index 5e283e67..281e22bb 100644 --- a/Source/Shared/Features/Messaging/Command/ICommandDispatcher.cs +++ b/Source/Shared/Features/Messaging/Commands/ICommandDispatcher.cs @@ -2,7 +2,7 @@ { public interface ICommandDispatcher { - Task DispatchAsync(TCommand command, CancellationToken cancellation = default) where TCommand : ICommand; - Task DispatchAsync(TCommand command, CancellationToken cancellation = default) where TCommand : ICommand; + Task DispatchAsync(TCommand command, CancellationToken cancellation = default) where TCommand : Command; + Task DispatchAsync(TCommand command, CancellationToken cancellation = default) where TCommand : Command; } } diff --git a/Source/Shared/Features/Messaging/Command/ICommandHandler.cs b/Source/Shared/Features/Messaging/Commands/ICommandHandler.cs similarity index 89% rename from Source/Shared/Features/Messaging/Command/ICommandHandler.cs rename to Source/Shared/Features/Messaging/Commands/ICommandHandler.cs index 9ed569ae..725504d6 100644 --- a/Source/Shared/Features/Messaging/Command/ICommandHandler.cs +++ b/Source/Shared/Features/Messaging/Commands/ICommandHandler.cs @@ -1,10 +1,10 @@ namespace Shared.Features.Messaging.Command { - public interface ICommandHandler where TCommand : ICommand + public interface ICommandHandler where TCommand : Command { Task HandleAsync(TCommand command, CancellationToken cancellationToken); } - public interface ICommandHandler where TCommand : ICommand + public interface ICommandHandler where TCommand : Command { Task HandleAsync(TCommand command, CancellationToken cancellationToken); } diff --git a/Source/Shared/Features/Messaging/Query/IQueryDispatcher.cs b/Source/Shared/Features/Messaging/Queries/IQueryDispatcher.cs similarity index 89% rename from Source/Shared/Features/Messaging/Query/IQueryDispatcher.cs rename to Source/Shared/Features/Messaging/Queries/IQueryDispatcher.cs index b74226d0..f3dac8dd 100644 --- a/Source/Shared/Features/Messaging/Query/IQueryDispatcher.cs +++ b/Source/Shared/Features/Messaging/Queries/IQueryDispatcher.cs @@ -2,6 +2,6 @@ { public interface IQueryDispatcher { - Task DispatchAsync(TQuery query, CancellationToken cancellation = default) where TQuery : IQuery; + Task DispatchAsync(TQuery query, CancellationToken cancellation = default) where TQuery : Query; } } diff --git a/Source/Shared/Features/Messaging/Query/IQueryHandler.cs b/Source/Shared/Features/Messaging/Queries/IQueryHandler.cs similarity index 86% rename from Source/Shared/Features/Messaging/Query/IQueryHandler.cs rename to Source/Shared/Features/Messaging/Queries/IQueryHandler.cs index 1fe22cda..3356f44e 100644 --- a/Source/Shared/Features/Messaging/Query/IQueryHandler.cs +++ b/Source/Shared/Features/Messaging/Queries/IQueryHandler.cs @@ -1,6 +1,6 @@ namespace Shared.Features.Messaging.Query { - public interface IQueryHandler where TQuery : IQuery + public interface IQueryHandler where TQuery : Query { Task HandleAsync(TQuery query, CancellationToken cancellation); } diff --git a/Source/Shared/Features/Messaging/Query/IQuery.cs b/Source/Shared/Features/Messaging/Queries/Query.cs similarity index 61% rename from Source/Shared/Features/Messaging/Query/IQuery.cs rename to Source/Shared/Features/Messaging/Queries/Query.cs index 7d2ce0cb..ae49be4e 100644 --- a/Source/Shared/Features/Messaging/Query/IQuery.cs +++ b/Source/Shared/Features/Messaging/Queries/Query.cs @@ -1,6 +1,6 @@ namespace Shared.Features.Messaging.Query { - public interface IQuery + public class Query { } } diff --git a/Source/Shared/Features/Messaging/Query/QueryDispatcher.cs b/Source/Shared/Features/Messaging/Queries/QueryDispatcher.cs similarity index 96% rename from Source/Shared/Features/Messaging/Query/QueryDispatcher.cs rename to Source/Shared/Features/Messaging/Queries/QueryDispatcher.cs index af7a3d2c..0233347e 100644 --- a/Source/Shared/Features/Messaging/Query/QueryDispatcher.cs +++ b/Source/Shared/Features/Messaging/Queries/QueryDispatcher.cs @@ -13,7 +13,7 @@ public QueryDispatcher(IServiceProvider serviceProvider) this.serviceProvider = serviceProvider; } - public Task DispatchAsync(TQuery query, CancellationToken cancellation = default) where TQuery : IQuery + public Task DispatchAsync(TQuery query, CancellationToken cancellation = default) where TQuery : Query { var handler = serviceProvider.GetRequiredService>(); var executionContext = serviceProvider.GetRequiredService();