Exemple #1
0
 public TaskHubProxyListener(StatefulServiceContext context,
                             FabricOrchestrationProviderSettings fabricOrchestrationProviderSettings,
                             RegisterOrchestrations registerOrchestrations)
 {
     this.fabricOrchestrationProviderSettings = fabricOrchestrationProviderSettings ?? throw new ArgumentNullException(nameof(fabricOrchestrationProviderSettings));
     this.registerOrchestrations = registerOrchestrations ?? throw new ArgumentNullException(nameof(registerOrchestrations));
 }
Exemple #2
0
 /// <summary>
 /// Creates instance of <see cref="TaskHubProxyListener"/>
 /// </summary>
 /// <param name="fabricOrchestrationProviderSettings">instance of <see cref="FabricOrchestrationProviderSettings"/></param>
 /// <param name="registerOrchestrations">Delegate invoked before starting the worker.</param>
 /// <param name="enableHttps">Whether to enable https or http</param>
 public TaskHubProxyListener(FabricOrchestrationProviderSettings fabricOrchestrationProviderSettings,
                             RegisterOrchestrations registerOrchestrations,
                             bool enableHttps = true)
 {
     this.fabricOrchestrationProviderSettings = fabricOrchestrationProviderSettings ?? throw new ArgumentNullException(nameof(fabricOrchestrationProviderSettings));
     this.registerOrchestrations = registerOrchestrations ?? throw new ArgumentNullException(nameof(registerOrchestrations));
     this.enableHttps            = enableHttps;
 }