System\ServiceModel\Channels\SecurityChannelFactory.cs (17)
128await CloseProtocolFactoryAsync(false, timeoutHelper.RemainingTime());
131await _sessionClientSettings.CloseAsync(timeoutHelper.RemainingTime());
176await OnOpenCoreAsync(timeoutHelper.RemainingTime());
177await base.OnOpenAsync(timeoutHelper.RemainingTime());
228return SessionClientSettings.OpenAsync(this, InnerChannelFactory, ChannelBuilder, timeoutHelper.RemainingTime());
233return SecurityProtocolFactory.OpenAsync(true, timeoutHelper.RemainingTime());
289timeoutHelper.RemainingTime());
291await SecurityProtocol.OpenAsync(timeoutHelper.RemainingTime());
292await base.OnOpenAsync(timeoutHelper.RemainingTime());
367message = await SecurityProtocol.SecureOutgoingMessageAsync(message, timeoutHelper.RemainingTime());
370await asyncOutputChannel.SendAsync(message, timeoutHelper.RemainingTime());
374await Task.Factory.FromAsync(InnerChannel.BeginSend, InnerChannel.EndSend, message, timeoutHelper.RemainingTime(), null);
470(correlationState, message) = await SecurityProtocol.SecureOutgoingMessageAsync(message, timeoutHelper.RemainingTime(), null);
471Message reply = await Task.Factory.FromAsync(InnerChannel.BeginRequest, InnerChannel.EndRequest, message, timeoutHelper.RemainingTime(), null);
473return ProcessReply(reply, correlationState, timeoutHelper.RemainingTime());
619(success, message) = await asyncDuplexChannel.TryReceiveAsync(timeoutHelper.RemainingTime());
627message = ProcessMessage(message, timeoutHelper.RemainingTime());
System\ServiceModel\Security\SecuritySessionClientSettings.cs (31)
238return _sessionProtocolFactory.OpenAsync(true, timeoutHelper.RemainingTime());
443_securityProtocol = Settings.SessionProtocolFactory.CreateSecurityProtocol(RemoteAddress, Via, null, true, timeoutHelper.RemainingTime());
449await _securityProtocol.OpenAsync(timeoutHelper.RemainingTime());
450await ChannelBinder.OpenAsync(timeoutHelper.RemainingTime());
482await SecurityUtils.OpenTokenProviderIfRequiredAsync(_sessionTokenProvider, timeoutHelper.RemainingTime());
486SecurityToken sessionToken = await _sessionTokenProvider.GetTokenAsync(timeoutHelper.RemainingTime());
489await OpenCoreAsync(sessionToken, timeoutHelper.RemainingTime());
624(closeCorrelationState, closeMessage) = await _securityProtocol.SecureOutgoingMessageAsync(closeMessage, timeoutHelper.RemainingTime(), null);
625await ChannelBinder.SendAsync(closeMessage, timeoutHelper.RemainingTime());
644(dummy, message) = await _securityProtocol.SecureOutgoingMessageAsync(message, timeoutHelper.RemainingTime(), null);
645await ChannelBinder.SendAsync(message, timeoutHelper.RemainingTime());
906return ProcessIncomingMessage(message, timeoutHelper.RemainingTime(), correlationState, out dummyProtocolFault);
936requestContext.Close(timeoutHelper.RemainingTime());
1072await RenewKeyAsync(timeoutHelper.RemainingTime());
1074return await _securityProtocol.SecureOutgoingMessageAsync(message, timeoutHelper.RemainingTime(), null);
1102await ChannelBinder.CloseAsync(timeoutHelper.RemainingTime());
1106SecurityUtils.CloseTokenProviderIfRequired(_sessionTokenProvider, timeoutHelper.RemainingTime());
1125(bool success, RequestContext requestContext) = await ChannelBinder.TryReceiveAsync(timeoutHelper.RemainingTime());
1133Message message = ProcessRequestContext(requestContext, timeoutHelper.RemainingTime(), correlationState);
1141if (timeoutHelper.RemainingTime() == TimeSpan.Zero)
1166await CloseOutputSessionAsync(timeoutHelper.RemainingTime());
1167bool sessionClosed = await _inputSessionClosedHandle.WaitAsync(timeoutHelper.RemainingTime(), false);
1281if (!await _outputSessionCloseHandle.WaitAsync(timeoutHelper.RemainingTime(), false))
1299await CloseCoreAsync(timeoutHelper.RemainingTime());
1447SecurityProtocolCorrelationState correlationState = await base.CloseOutputSessionAsync(timeoutHelper.RemainingTime());
1449Message message = await ReceiveInternalAsync(timeoutHelper.RemainingTime(), correlationState);
1525(correlationState, message) = await SecureOutgoingMessageAsync(message, timeoutHelper.RemainingTime());
1526Message reply = await ChannelBinder.RequestAsync(message, timeoutHelper.RemainingTime());
1527return ProcessReply(reply, timeoutHelper.RemainingTime(), correlationState);
1639(dummy, message) = await SecureOutgoingMessageAsync(message, timeoutHelper.RemainingTime());
1640await ChannelBinder.SendAsync(message, timeoutHelper.RemainingTime());