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; }
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); }
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(); }
public RemoveWhenCompletedEndpointHealth(IReceiveEndpoint receiveEndpoint) { _receiveEndpoint = receiveEndpoint; }
protected async Task CreateEndPoints(IModel channel, IReceiveEndpoint receiveEndpoint) { await _titanFlashEndPointFactory.CreateEndPoints(channel, receiveEndpoint).ConfigureAwait(false); }
public ReadyObserver(IReceiveEndpoint endpoint) { _ready = new TaskCompletionSource <ReceiveEndpointReady>(); _handle = endpoint.ConnectReceiveEndpointObserver(this); }
public void AddReceiveEndpoint(IReceiveEndpoint receiveEndpoint) { _receiveEndpoints.Add(receiveEndpoint); }
public static EndpointHealthResult Degraded(IReceiveEndpoint receiveEndpoint, string description) { return(new EndpointHealthResult(BusHealthStatus.Degraded, receiveEndpoint, description)); }
public static EndpointHealthResult Unhealthy(IReceiveEndpoint receiveEndpoint, string description, Exception exception) { return(new EndpointHealthResult(BusHealthStatus.Unhealthy, receiveEndpoint, description, exception)); }
public ReceiveEndpointReadyObserver(IReceiveEndpoint receiveEndpoint) { _observer = new Observer(receiveEndpoint); }
public ReceiveEndpointReadyObserver(IReceiveEndpoint receiveEndpoint, CancellationToken cancellationToken) { _observer = new Observer(receiveEndpoint, cancellationToken); }
public ReceiveEndpointCompletedEvent(ReceiveTransportCompleted completed, IReceiveEndpoint receiveEndpoint) { _completed = completed; ReceiveEndpoint = receiveEndpoint; }
public ReceiveEndpointFaultedEvent(ReceiveTransportFaulted faulted, IReceiveEndpoint receiveEndpoint) { _faulted = faulted; ReceiveEndpoint = receiveEndpoint; }
public ReceiveEndpointReadyEvent(Uri inputAddress, IReceiveEndpoint receiveEndpoint) { InputAddress = inputAddress; ReceiveEndpoint = receiveEndpoint; }