91 references to MaskingMode
System.ServiceModel.Primitives (91)
System\ServiceModel\Channels\ClientReliableChannelBinder.cs (11)
21
MaskingMode
maskingMode, TolerateFaultsMode faultMode, ChannelParameterCollection channelParameters,
79
IChannelFactory<TChannel> factory,
MaskingMode
maskingMode, TolerateFaultsMode faultMode,
131
MaskingMode
maskingMode)
141
public async Task<Message> RequestAsync(Message message, TimeSpan timeout,
MaskingMode
maskingMode)
228
IChannelFactory<TDuplexChannel> factory,
MaskingMode
maskingMode, TolerateFaultsMode faultMode,
312
IChannelFactory<IDuplexChannel> factory,
MaskingMode
maskingMode,
343
IChannelFactory<IDuplexSessionChannel> factory,
MaskingMode
maskingMode, TolerateFaultsMode faultMode,
387
IChannelFactory<TRequestChannel> factory,
MaskingMode
maskingMode, TolerateFaultsMode faultMode,
450
TimeSpan timeout,
MaskingMode
maskingMode)
489
IChannelFactory<IRequestChannel> factory,
MaskingMode
maskingMode,
520
IChannelFactory<IRequestSessionChannel> factory,
MaskingMode
maskingMode, TolerateFaultsMode faultMode,
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (7)
736
await Binder.CloseAsync(timeoutHelper.RemainingTime(),
MaskingMode
.Handled);
844
MaskingMode
maskingMode = maskUnhandledException ?
MaskingMode
.Unhandled :
MaskingMode
.None;
848
maskingMode |=
MaskingMode
.Handled;
882
await Binder.SendAsync(message, timeout,
MaskingMode
.Handled);
994
await Binder.SendAsync(message, timeout,
MaskingMode
.Handled);
System\ServiceModel\Channels\IReliableChannelBinder.cs (5)
27
Task CloseAsync(TimeSpan timeout,
MaskingMode
maskingMode);
30
Task SendAsync(Message message, TimeSpan timeout,
MaskingMode
maskingMode);
33
Task<(bool success, RequestContext requestContext)> TryReceiveAsync(TimeSpan timeout,
MaskingMode
maskingMode);
38
void SetMaskingMode(RequestContext context,
MaskingMode
maskingMode);
50
Task<Message> RequestAsync(Message message, TimeSpan timeout,
MaskingMode
maskingMode);
System\ServiceModel\Channels\ReliableChannelBinder.cs (39)
35
protected ReliableChannelBinder(TChannel channel,
MaskingMode
maskingMode,
39
if ((maskingMode !=
MaskingMode
.None) && (maskingMode !=
MaskingMode
.All))
82
public
MaskingMode
DefaultMaskingMode { get; }
241
public async Task CloseAsync(TimeSpan timeout,
MaskingMode
maskingMode)
310
HandleException(e,
MaskingMode
.All);
349
private Exception GetClosedException(
MaskingMode
maskingMode)
367
private Exception GetClosedOrFaultedException(
MaskingMode
maskingMode)
385
private Exception GetFaultedException(
MaskingMode
maskingMode)
402
HandleException(e,
MaskingMode
.All);
405
protected bool HandleException(Exception e,
MaskingMode
maskingMode)
427
protected bool HandleException(Exception e,
MaskingMode
maskingMode, bool autoAborted)
475
HandleException(e,
MaskingMode
.All);
502
private bool OnOpening(
MaskingMode
maskingMode)
576
if (DefaultMaskingMode ==
MaskingMode
.None)
606
public async Task SendAsync(Message message, TimeSpan timeout,
MaskingMode
maskingMode)
661
public void SetMaskingMode(RequestContext context,
MaskingMode
maskingMode)
669
private bool ThrowIfNotOpenedAndNotMasking(
MaskingMode
maskingMode, bool throwDisposed)
735
public virtual async Task<(bool, RequestContext)> TryReceiveAsync(TimeSpan timeout,
MaskingMode
maskingMode)
804
return ThrowIfNotOpenedAndNotMasking(
MaskingMode
.All, false);
807
protected bool ValidateOutputOperation(Message message, TimeSpan timeout,
MaskingMode
maskingMode)
845
if (!TolerateFaults && DefaultMaskingMode ==
MaskingMode
.None)
855
private
MaskingMode
_maskingMode;
871
protected
MaskingMode
MaskingMode
879
public void SetMaskingMode(
MaskingMode
maskingMode)
881
if (Binder.DefaultMaskingMode !=
MaskingMode
.All)
1508
private bool ThrowIfNecessary(
MaskingMode
maskingMode)
1537
return TryGetChannelAsync(canGetChannel, false, timeout,
MaskingMode
.All);
1540
public Task<(bool success, TChannel channel)> TryGetChannelForOutputAsync(TimeSpan timeout,
MaskingMode
maskingMode)
1546
MaskingMode
maskingMode)
1712
private
MaskingMode
_maskingMode;
1718
TChannel channel, TimeSpan timeout,
MaskingMode
maskingMode,
1920
if ((binder.DefaultMaskingMode !=
MaskingMode
.All) && !binder.TolerateFaults)
2160
internal static bool MaskHandled(
MaskingMode
maskingMode)
2162
return (maskingMode &
MaskingMode
.Handled) ==
MaskingMode
.Handled;
2165
internal static bool MaskUnhandled(
MaskingMode
maskingMode)
2167
return (maskingMode &
MaskingMode
.Unhandled) ==
MaskingMode
.Unhandled;
System\ServiceModel\Channels\ReliableChannelFactory.cs (1)
116
InnerChannelFactory,
MaskingMode
.All,
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (4)
1044
return GetReply(await ClientBinder.RequestAsync(request, timeout,
MaskingMode
.None), last);
1089
await Binder.SendAsync(request, timeoutHelper.RemainingTime(),
MaskingMode
.None);
1093
(_, requestContext) = await Binder.TryReceiveAsync(receiveTimeout,
MaskingMode
.None);
1160
await Binder.SendAsync(request, timeoutHelper.RemainingTime(),
MaskingMode
.None);
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (14)
256
await _binder.CloseAsync(timeoutHelper.RemainingTime(),
MaskingMode
.Handled);
299
protected abstract Task OnConnectionSendMessageAsync(Message message, TimeSpan timeout,
MaskingMode
maskingMode);
381
await OnConnectionSendMessageAsync(request, DefaultSendTimeout,
MaskingMode
.All);
583
await OnConnectionSendMessageAsync(message, timeout,
MaskingMode
.Handled);
658
MaskingMode
maskingMode = maskUnhandledException ?
MaskingMode
.Unhandled :
MaskingMode
.None;
684
maskingMode |=
MaskingMode
.Handled;
694
protected override async Task OnConnectionSendMessageAsync(Message message, TimeSpan timeout,
MaskingMode
maskingMode)
736
MaskingMode
maskingMode = maskUnhandledException ?
MaskingMode
.Unhandled :
MaskingMode
.None;
761
maskingMode |=
MaskingMode
.Handled;
766
protected override Task OnConnectionSendMessageAsync(Message message, TimeSpan timeout,
MaskingMode
maskingMode)
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (6)
261
await binder.CloseAsync(timeoutHelper.RemainingTime(),
MaskingMode
.Handled);
294
MaskingMode
maskingMode = maskUnhandledException ?
MaskingMode
.Unhandled :
MaskingMode
.None;
298
maskingMode |=
MaskingMode
.Handled;
401
var reply = await binder.RequestAsync(message, DefaultSendTimeout,
MaskingMode
.All);
System\ServiceModel\Security\SecuritySessionClientSettings.cs (4)
500
MaskingMode
.None, faultMode, _channelParameters, DefaultCloseTimeout, DefaultSendTimeout);
505
MaskingMode
.None, faultMode, _channelParameters, DefaultCloseTimeout, DefaultSendTimeout);
511
MaskingMode
.None, faultMode, _channelParameters, DefaultCloseTimeout, DefaultSendTimeout);
516
MaskingMode
.None, faultMode, _channelParameters, DefaultCloseTimeout, DefaultSendTimeout);