public AmqpRelayedConnection(RelayedOnewayListener.RelayedOnewayAmqpListenerClient client, System.Uri via, ConnectivitySettings connectivitySettings, HttpConnectivitySettings httpConnectivitySettings) : base(via) { this.communicationState = CommunicationState.Created; this.client = client; this.receivedMessages = new InputQueue <Message>(); this.amqpRelay = new AmqpRelay(client.Uri, client.TokenProvider, connectivitySettings, httpConnectivitySettings); this.amqpRelay.Connecting += new EventHandler((object s, EventArgs e) => base.RaiseClosed(this, e)); this.amqpRelay.Offline += new EventHandler((object s, EventArgs e) => base.RaiseFaulted(this, e)); ServiceSettings serviceSettings = client.listener.nameSettings.ServiceSettings; if (serviceSettings.RelayClientAuthenticationType == RelayClientAuthenticationType.None) { this.amqpRelay.RelayClientAuthorizationRequired = false; } this.amqpRelay.DisplayName = client.listener.nameSettings.DisplayName; this.amqpRelay.ListenerType = serviceSettings.ListenerType; this.amqpRelay.IsDynamic = serviceSettings.IsDynamic; this.amqpRelay.ClientAgent = serviceSettings.ClientAgent; this.amqpRelay.PublishToRegistry = serviceSettings.IsDiscoverable; this.amqpRelay.TransportSecurityRequired = serviceSettings.TransportProtection == RelayTransportProtectionMode.EndToEnd; }
public ConnectTask(AmqpRelay relay, TimeSpan timeout) { this.relay = relay; this.timeout = timeout; this.OnSetException += AmqpRelay.ConnectTask.onException; }
public OpenTask(AmqpRelay relay, TimeSpan timeout) { this.relay = relay; this.timeout = timeout; }
public CloseAbortTask(AmqpRelay relay, bool aborting, TimeSpan timeout) { this.relay = relay; this.aborting = aborting; this.timeout = timeout; }