示例#1
0
 /// <summary>
 /// Raises an event in another orchestration
 /// </summary>
 /// <param name="eventName">Unique name of the event</param>
 /// <param name="orchestrationId">The id of the orchestrtaion to signal</param>
 /// <param name="eventArgs">The event arguments</param>
 /// <returns></returns>
 public async Task RaiseEventAsync(string eventName, string orchestrationId, object eventArgs)
 {
     await _amazonSimpleWorkflowClient.SignalWorkflowExecutionAsync(new SignalWorkflowExecutionRequest
     {
         Input      = JsonConvert.SerializeObject(eventArgs),
         WorkflowId = orchestrationId,
         Domain     = Constants.LAMBDA_BIZ_DOMAIN,
         SignalName = eventName
     });
 }