/// <summary>
 /// Constructor for Command Processor
 /// </summary>
 /// <param name="fabricClient">Fabric client object used for carrying out service fabric client requests</param>
 /// <param name="serviceEventSource">Eventsource used for logging</param>
 public CommandProcessor(FabricClient fabricClient, IPatchOrchestrationEvents serviceEventSource)
 {
     this.fabricClient            = fabricClient;
     ServiceEventSource.Current   = serviceEventSource;
     this.cancellationTokenSource = new CancellationTokenSource();
 }
Beispiel #2
0
 /// <summary>
 /// Constructor for Command Processor
 /// </summary>
 /// <param name="fabricClient">Fabric client object used for carrying out service fabric client requests</param>
 /// <param name="serviceEventSource">Eventsource used for logging</param>
 public CommandProcessor(FabricClient fabricClient, IPatchOrchestrationEvents serviceEventSource)
 {
     this.fabricClient = fabricClient;
     Microsoft.ServiceFabric.PatchOrchestration.NodeAgentSFUtility.Helpers.ServiceEventSource.Current = serviceEventSource;
     this.cancellationTokenSource = new CancellationTokenSource();
 }