public RelayedOnewayTcpSender(BindingContext context, RelayedOnewayTransportBindingElement transportBindingElement, Uri uri, bool transportProtectionEnabled, EventTraceActivity activity)
 {
     this.client             = new RelayedOnewayTcpSender.RelayedOnewayTcpSenderClient(context, transportBindingElement, uri, transportProtectionEnabled, activity);
     this.client.Connecting += new EventHandler(this.OnConnecting);
     this.client.Online     += new EventHandler(this.OnOnline);
     this.client.Offline    += new EventHandler(this.OnOffline);
 }
 public RelayedOnewayListener(BindingContext context, RelayedOnewayTransportBindingElement transportBindingElement, System.Uri uri, EventTraceActivity activity)
 {
     this.nameSettings = context.BindingParameters.Find <Microsoft.ServiceBus.NameSettings>();
     if (this.nameSettings == null)
     {
         this.nameSettings = new Microsoft.ServiceBus.NameSettings();
         this.nameSettings.ServiceSettings.ListenerType = ListenerType.Unicast;
     }
     this.listenerTable      = new Microsoft.ServiceBus.Channels.UriPrefixTable <RelayedOnewayListener.RelayedOnewayChannelListenerCollection>();
     this.client             = new RelayedOnewayListener.RelayedOnewayAmqpListenerClient(context, transportBindingElement, uri, this, activity);
     this.client.Connecting += new EventHandler(this.OnConnecting);
     this.client.Online     += new EventHandler(this.OnOnline);
     this.client.Offline    += new EventHandler(this.OnOffline);
 }