Пример #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;
 }
Пример #2
0
 public ScheduleProxy(OrchestrationContext context, Type @interface)
     : this(context, @interface, false)
 {
 }
Пример #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);
Пример #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);
Пример #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;
 }
Пример #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)
 {
 }