14 references to FromAsync
System.ServiceModel.NetFramingBase (3)
System\ServiceModel\Channels\NetFramingTransportChannelFactory.cs (2)
336
return Task.Factory.
FromAsync
(localUpgrade.BeginOpen, localUpgrade.EndOpen, timeout, null);
357
await Task.Factory.
FromAsync
(localUpgrade.BeginClose, localUpgrade.EndClose, timeoutHelper.RemainingTime(), null);
System\ServiceModel\Security\SecurityUtilsEx.cs (1)
107
return Task.Factory.
FromAsync
(obj.BeginOpen, obj.EndOpen, timeout, null);
System.ServiceModel.Primitives (8)
Internals\System\Runtime\TaskHelpers.cs (2)
199
return Task.Factory.
FromAsync
(communicationObject.BeginClose, communicationObject.EndClose, timeout, null);
211
return Task.Factory.
FromAsync
(communicationObject.BeginOpen, communicationObject.EndOpen, timeout, null);
System\ServiceModel\Channels\CommunicationObject.cs (4)
327
await Task.Factory.
FromAsync
(OnBeginClose, OnEndClose, timeout, TaskCreationOptions.RunContinuationsAsynchronously);
576
await Task.Factory.
FromAsync
(OnBeginOpen, OnEndOpen, timeout, TaskCreationOptions.RunContinuationsAsynchronously);
1041
return Task.Factory.
FromAsync
(other.BeginOpen, other.EndOpen, timeout, null);
1071
return Task.Factory.
FromAsync
(other.BeginClose, other.EndClose, timeout, null);
System\ServiceModel\Channels\ServiceChannelFactory.cs (1)
504
await Task.Factory.
FromAsync
(base.OnBeginClose, base.OnEndClose, timeoutHelper.RemainingTime(), TaskCreationOptions.None);
System\ServiceModel\Dispatcher\ListenerHandler.cs (1)
150
await Task.Factory.
FromAsync
(duplexSession.BeginCloseOutputSession, duplexSession.EndCloseOutputSession, timeout, null);
System.ServiceModel.Primitives.Tests (3)
ServiceModel\ThrowingOnCloseBindingElement.cs (3)
79
return ToApm(Task.Factory.
FromAsync
(_innerFactory.BeginOpen, _innerFactory.EndOpen, timeout, null), callback, state);
121
await Task.Factory.
FromAsync
(base.OnBeginClose, base.OnEndClose, timeout, null);
122
await Task.Factory.
FromAsync
(_innerFactory.BeginClose, _innerFactory.EndClose, timeout, null);