コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelInstance"/> class.
 /// </summary>
 /// <param name="channel">The channel.</param>
 /// <param name="instanceId">The instance identifier.</param>
 public ChannelInstance(IManagedChannel channel, Guid instanceId)
 {
     Channel = channel;
     InstanceId = instanceId;
     CreatedAt = DateTimeOffset.Now;
     State = "Created";
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PipelineManager" /> class.
 /// </summary>
 /// <param name="channel">The channel.</param>
 public PipelineManager(IManagedChannel channel)
 {
     _dataflowPipelines = new ConcurrentDictionary<string, IDataflowPipeline>();
     _channel = channel;
 }