28 references to ToApm
System.ServiceModel.Federation (1)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
229return GetTokenAsyncCore(timeout).ToApm(callback, state);
System.ServiceModel.Http (3)
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (3)
110return ReceiveAsync(timeout).ToApm(callback, state); 120return ReceiveAsync(timeout).ToApm(callback, state); 210return WaitForMessageAsync(timeout).ToApm(callback, state);
System.ServiceModel.NetFramingBase (3)
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (3)
113return ReceiveAsync(timeout).ToApm(callback, state); 123return ReceiveAsync(timeout).ToApm(callback, state); 212return WaitForMessageAsync(timeout).ToApm(callback, state);
System.ServiceModel.Primitives (21)
System\IdentityModel\Selectors\SecurityTokenProvider.cs (2)
75return GetTokenCoreInternalAsync(timeout).ToApm(callback, state); 163return RenewTokenCoreInternalAsync(timeout, tokenToBeRenewed).ToApm(callback, state);
System\ServiceModel\Channels\DelegatingStream.cs (1)
87public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state) => ReadAsync(buffer, offset, count).ToApm(callback, state);
System\ServiceModel\Channels\DuplexChannel.cs (3)
120return ReceiveAsync(timeout).ToApm(callback, state); 147return TryReceiveAsync(timeout).ToApm(callback, state); 174return WaitForMessageAsync(timeout).ToApm(callback, state);
System\ServiceModel\Channels\LayeredChannelFactory.cs (4)
159return ReceiveAsync().ToApm(callback, state); 164return ReceiveAsync(timeout).ToApm(callback, state); 174return TryReceiveAsync(timeout).ToApm(callback, state); 227return WaitForMessageAsync(timeout).ToApm(callback, state);
System\ServiceModel\Channels\RequestChannel.cs (1)
210return RequestAsyncInternal(message, timeout).ToApm(callback, state);
System\ServiceModel\Channels\SecurityChannelFactory.cs (3)
419return RequestAsyncInternal(message, timeout).ToApm(callback, state); 556return ReceiveAsync(timeout).ToApm(callback, state); 566return TryReceiveAsync(timeout).ToApm(callback, state);
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (1)
50return InvokeAsync(instance, inputs).ToApm(callback, state);
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
60return InvokeAsync(instance, inputs).ToApm(callback, state);
System\ServiceModel\Security\SecuritySessionClientSettings.cs (5)
1473IAsyncResult IRequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) => RequestAsync(message, timeout).ToApm(callback, state); 1585public IAsyncResult BeginReceive(AsyncCallback callback, object state) => ReceiveAsync().ToApm(callback, state); 1587public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, object state) => ReceiveAsync(timeout).ToApm(callback, state); 1591public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) => TryReceiveAsync(timeout).ToApm(callback, state); 1717public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) => WaitForMessageAsync(timeout).ToApm(callback, state);