Exemplo n.º 1
0
        public virtual void RaiseOnGameUpdated(GameUpdatedMessage msg)
        {
            EventHandler <GameUpdatedMessage> handler = OnGameUpdated;

            if (handler != null)
            {
                handler(this, msg);
            }
        }
 public static async Task PublishGameUpdatedAsync(
     this IServiceBusClient serviceBusClient,
     GameUpdatedMessage account)
 {
     await serviceBusClient.PublishAsync(
         account,
         GameServiceBusConstants.GameUpdatedLabel,
         GameServiceBusConstants.GameTopicName);
 }
Exemplo n.º 3
0
 protected override async Task ExecuteAsync(GameUpdatedEvent request, CancellationToken ct)
 {
     GameUpdatedMessage gameUpdatedMessage = _mapper.Map <GameUpdatedMessage>(request);
     await _serviceBusClient.PublishGameUpdatedAsync(gameUpdatedMessage);
 }