public ReceiveEndpointCompletedEvent(Uri inputAddress, long deliveryCount, long concurrentDeliveryCount, IReceiveEndpoint receiveEndpoint)
 {
     InputAddress = inputAddress;
     DeliveryCount = deliveryCount;
     ConcurrentDeliveryCount = concurrentDeliveryCount;
     ReceiveEndpoint = receiveEndpoint;
 }
 public ReceiveEndpointFaultedEvent(Uri inputAddress, Exception exception, IReceiveEndpoint receiveEndpoint)
 {
     InputAddress = inputAddress;
     Exception = exception;
     ReceiveEndpoint = receiveEndpoint;
 }
예제 #3
0
        public void AddReceiveEndpoint(string endpointKey, IReceiveEndpoint receiveEndpoint)
        {
            if (endpointKey == null)
                throw new ArgumentNullException(nameof(endpointKey));

            if (_receiveEndpoints.ContainsKey(endpointKey))
                throw new ConfigurationException($"A receive endpoint with the same key was already added: {endpointKey}");

            _receiveEndpoints.Add(endpointKey, receiveEndpoint);
        }
예제 #4
0
 protected async Task ReCreateEndPoints(IModel channel, IReceiveEndpoint receiveEndpoint, string consumerTag)
 {
     await _titanFlashEndPointFactory.ReCreateEndPoints(channel, receiveEndpoint, consumerTag).ConfigureAwait(false);
 }
 public void Apply(IBusBuilder builder)
 {
     _receiveEndpoint = _configuration.Build();
 }
예제 #6
0
 public RemoveWhenCompletedEndpointHealth(IReceiveEndpoint receiveEndpoint)
 {
     _receiveEndpoint = receiveEndpoint;
 }
예제 #7
0
 protected async Task CreateEndPoints(IModel channel, IReceiveEndpoint receiveEndpoint)
 {
     await _titanFlashEndPointFactory.CreateEndPoints(channel, receiveEndpoint).ConfigureAwait(false);
 }
예제 #8
0
 public ReadyObserver(IReceiveEndpoint endpoint)
 {
     _ready  = new TaskCompletionSource <ReceiveEndpointReady>();
     _handle = endpoint.ConnectReceiveEndpointObserver(this);
 }
예제 #9
0
 public void AddReceiveEndpoint(IReceiveEndpoint receiveEndpoint)
 {
     _receiveEndpoints.Add(receiveEndpoint);
 }
예제 #10
0
 public static EndpointHealthResult Degraded(IReceiveEndpoint receiveEndpoint, string description)
 {
     return(new EndpointHealthResult(BusHealthStatus.Degraded, receiveEndpoint, description));
 }
예제 #11
0
 public static EndpointHealthResult Unhealthy(IReceiveEndpoint receiveEndpoint, string description, Exception exception)
 {
     return(new EndpointHealthResult(BusHealthStatus.Unhealthy, receiveEndpoint, description, exception));
 }
예제 #12
0
 public ReceiveEndpointReadyObserver(IReceiveEndpoint receiveEndpoint)
 {
     _observer = new Observer(receiveEndpoint);
 }
예제 #13
0
 public ReceiveEndpointReadyObserver(IReceiveEndpoint receiveEndpoint, CancellationToken cancellationToken)
 {
     _observer = new Observer(receiveEndpoint, cancellationToken);
 }
예제 #14
0
 public ReceiveEndpointCompletedEvent(ReceiveTransportCompleted completed, IReceiveEndpoint receiveEndpoint)
 {
     _completed      = completed;
     ReceiveEndpoint = receiveEndpoint;
 }
예제 #15
0
 public void AddReceiveEndpoint(IReceiveEndpoint receiveEndpoint)
 {
     _receiveEndpoints.Add(receiveEndpoint);
 }
예제 #16
0
 public ReceiveEndpointFaultedEvent(ReceiveTransportFaulted faulted, IReceiveEndpoint receiveEndpoint)
 {
     _faulted        = faulted;
     ReceiveEndpoint = receiveEndpoint;
 }
 public ReceiveEndpointReadyEvent(Uri inputAddress, IReceiveEndpoint receiveEndpoint)
 {
     InputAddress = inputAddress;
     ReceiveEndpoint = receiveEndpoint;
 }
예제 #18
0
 public ReceiveEndpointReadyEvent(Uri inputAddress, IReceiveEndpoint receiveEndpoint)
 {
     InputAddress    = inputAddress;
     ReceiveEndpoint = receiveEndpoint;
 }