Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of the RetryInterceptor with specified parameters
 /// </summary>
 /// <param name="context">The orchestration context of the function call</param>
 /// <param name="retryOptions">The options for performing retries</param>
 /// <param name="retryCall">The code to execute</param>
 public RetryInterceptor(OrchestrationContext context, RetryOptions retryOptions, Func <Task <T> > retryCall)
 {
     this.context      = context;
     this.retryOptions = retryOptions;
     this.retryCall    = retryCall;
 }
Ejemplo n.º 2
0
 public ScheduleProxy(OrchestrationContext context, Type @interface)
     : this(context, @interface, false)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Abstract method for raising an event in the orchestration
 /// </summary>
 /// <param name="context">The orchestration context</param>
 /// <param name="name">Name for this event to be passed to the OnEvent handler</param>
 /// <param name="input">The serialized input</param>
 public abstract void RaiseEvent(OrchestrationContext context, string name, string input);
Ejemplo n.º 4
0
 /// <summary>
 /// Abstract method for executing an orchestration based on the context and serialized input
 /// </summary>
 /// <param name="context">The orchestration context</param>
 /// <param name="input">The serialized input</param>
 /// <returns>Serialized output from the execution</returns>
 public abstract Task <string> Execute(OrchestrationContext context, string input);
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScheduleProxy"/> class.
 /// </summary>
 /// <param name="context">The orchestration context.</param>
 /// <param name="useFullyQualifiedMethodNames">A flag indicating whether to use fully qualified method names.</param>
 public ScheduleProxy(OrchestrationContext context, bool useFullyQualifiedMethodNames)
 {
     this.context = context;
     this.useFullyQualifiedMethodNames = useFullyQualifiedMethodNames;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScheduleProxy"/> class.
 /// </summary>
 /// <param name="context">The orchestration context.</param>
 public ScheduleProxy(OrchestrationContext context)
     : this(context, false)
 {
 }