public static async Task PublishGameRatingUpdatedAsync(
     this IServiceBusClient serviceBusClient,
     GameRatingUpdatedMessage gameRating)
 {
     await serviceBusClient.PublishAsync(
         gameRating,
         RateServiceBusConstants.GameRatingUpdatedLabel,
         RateServiceBusConstants.GameTopicName);
 }
 public static async Task PublishGameCreatedAsync(
     this IServiceBusClient serviceBusClient,
     GameCreatedMessage account)
 {
     await serviceBusClient.PublishAsync(
         account,
         GameServiceBusConstants.GameCreatedLabel,
         GameServiceBusConstants.GameTopicName);
 }
Exemple #3
0
 public static async Task PublishOrderPaidAsync(
     this IServiceBusClient serviceBusClient,
     OrderPaidMessage message)
 {
     await serviceBusClient.PublishAsync(
         message,
         PaymentServiceBusConstants.OrderPaidLabel,
         PaymentServiceBusConstants.OrderTopicName);
 }
 public static async Task PublishAccountUpdatedAsync(
     this IServiceBusClient serviceBusClient,
     AccountUpdatedMessage account)
 {
     await serviceBusClient.PublishAsync(
         account,
         AccountServiceBusConstants.AccountUpdatedLabel,
         AccountServiceBusConstants.AccountTopicName);
 }
Exemple #5
0
 public static async Task PublishTemplateCreatedAsync(
     this IServiceBusClient serviceBusClient,
     TemplateCreatedMessage template)
 {
     await serviceBusClient.PublishAsync(template, TemplateCreatedLabel, TemplateTopicName);
 }
Exemple #6
0
 public static async Task PublishUserCreatedAsync(
     this IServiceBusClient serviceBusClient, CreateUserDto createUserDto)
 {
     await serviceBusClient.PublishAsync(
         createUserDto, "Created_User", "testtopic");
 }