public IConnection EndConnect(IAsyncResult result)
 {
     using (ServiceModelActivity.BoundOperation(this.activity))
     {
         TracingConnection connection = new TracingConnection(this.connectionInitiator.EndConnect(result), false);
         connection.ActivityStart(this.connectedUri);
         return connection;
     }
 }
Exemplo n.º 2
0
 public IConnection EndConnect(IAsyncResult result)
 {
     using (ServiceModelActivity.BoundOperation(this.activity))
     {
         TracingConnection connection = new TracingConnection(this.connectionInitiator.EndConnect(result), false);
         connection.ActivityStart(this.connectedUri);
         return(connection);
     }
 }
 public IConnection Connect(Uri uri, TimeSpan timeout)
 {
     using (ServiceModelActivity.BoundOperation(this.activity))
     {
         IConnection retval = this.connectionInitiator.Connect(uri, timeout);
         if (!this.isClient)
         {
             TracingConnection tracingConnection = new TracingConnection(retval, false);
             tracingConnection.ActivityStart(uri);
             retval = tracingConnection;
         }
         return retval;
     }
 }
 public IConnection Connect(Uri uri, TimeSpan timeout)
 {
     using (ServiceModelActivity.BoundOperation(this.activity))
     {
         IConnection connection = this.connectionInitiator.Connect(uri, timeout);
         if (!this.isClient)
         {
             TracingConnection connection2 = new TracingConnection(connection, false);
             connection2.ActivityStart(uri);
             connection = connection2;
         }
         return connection;
     }
 }
Exemplo n.º 5
0
 public IConnection Connect(Uri uri, TimeSpan timeout)
 {
     using (ServiceModelActivity.BoundOperation(this.activity))
     {
         IConnection connection = this.connectionInitiator.Connect(uri, timeout);
         if (!this.isClient)
         {
             TracingConnection connection2 = new TracingConnection(connection, false);
             connection2.ActivityStart(uri);
             connection = connection2;
         }
         return(connection);
     }
 }
Exemplo n.º 6
0
 public IConnection Connect(Uri uri, TimeSpan timeout)
 {
     using (ServiceModelActivity.BoundOperation(this.activity))
     {
         IConnection retval = this.connectionInitiator.Connect(uri, timeout);
         if (!this.isClient)
         {
             TracingConnection tracingConnection = new TracingConnection(retval, false);
             tracingConnection.ActivityStart(uri);
             retval = tracingConnection;
         }
         return(retval);
     }
 }