Пример #1
0
 /// <summary>
 /// Send a new trigger into the workflow engine
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='tenantId'>
 /// The tenant within which the request should operate
 /// </param>
 /// <param name='body'>
 /// New trigger to be processed by the engine
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RaiseTriggerHeaders> RaiseTriggerAsync(this IMarainWorkflowService operations, string tenantId, Trigger body, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.RaiseTriggerWithHttpMessagesAsync(tenantId, body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
Пример #2
0
 /// <summary>
 /// View swagger definition for this API
 /// </summary>
 /// <remarks>
 /// View swagger definition for this API
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> GetSwaggerAsync(this IMarainWorkflowService operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetSwaggerWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #3
0
 /// <summary>
 /// Send a request to start a new workflow instance into the workflow engine
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='tenantId'>
 /// The tenant within which the request should operate
 /// </param>
 /// <param name='body'>
 /// Details of the new workflow instance to be started
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SendStartNewWorkflowInstanceRequestHeaders> SendStartNewWorkflowInstanceRequestAsync(this IMarainWorkflowService operations, string tenantId, StartNewWorkflowInstanceRequest body, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.SendStartNewWorkflowInstanceRequestWithHttpMessagesAsync(tenantId, body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
Пример #4
0
 /// <summary>
 /// Send a request to start a new workflow instance into the workflow engine
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='tenantId'>
 /// The tenant within which the request should operate
 /// </param>
 /// <param name='body'>
 /// Details of the new workflow instance to be started
 /// </param>
 public static SendStartNewWorkflowInstanceRequestHeaders SendStartNewWorkflowInstanceRequest(this IMarainWorkflowService operations, string tenantId, StartNewWorkflowInstanceRequest body)
 {
     return(operations.SendStartNewWorkflowInstanceRequestAsync(tenantId, body).GetAwaiter().GetResult());
 }
Пример #5
0
 /// <summary>
 /// Send a new trigger into the workflow engine
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='tenantId'>
 /// The tenant within which the request should operate
 /// </param>
 /// <param name='body'>
 /// New trigger to be processed by the engine
 /// </param>
 public static RaiseTriggerHeaders RaiseTrigger(this IMarainWorkflowService operations, string tenantId, Trigger body)
 {
     return(operations.RaiseTriggerAsync(tenantId, body).GetAwaiter().GetResult());
 }
Пример #6
0
 /// <summary>
 /// View swagger definition for this API
 /// </summary>
 /// <remarks>
 /// View swagger definition for this API
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static object GetSwagger(this IMarainWorkflowService operations)
 {
     return(operations.GetSwaggerAsync().GetAwaiter().GetResult());
 }