Esempio n. 1
0
 public void Send(EventsMessage message, CancellationToken cancellationToken)
 {
     message.ClientId = this.ClientOptions.PopulateClientId(message.ClientId);
     message.Validate();
     try
     {
         this.Client.SendEvent(message.ToEvent(), this.ClientOptions.GetGrpcMetadata(), null,
                               cancellationToken);
     }
     catch (RpcException ex) {
         throw new RpcException(ex.Status);
     } catch (Exception ex) {
         throw new Exception(ex.Message);
     }
 }
Esempio n. 2
0
 public void  Send(EventsMessage message)
 {
     Send(message, new CancellationToken());
 }