35 references to UnixDomainSocketSecurityMode
Binding.UDS.IntegrationTests (5)
UDSBindingTests.cs (5)
38
System.ServiceModel.UnixDomainSocketBinding binding = new UnixDomainSocketBinding(
UnixDomainSocketSecurityMode
.None);
75
System.ServiceModel.UnixDomainSocketBinding binding = new UnixDomainSocketBinding(System.ServiceModel.
UnixDomainSocketSecurityMode
.Transport);
106
System.ServiceModel.UnixDomainSocketBinding binding = new System.ServiceModel.UnixDomainSocketBinding(System.ServiceModel.
UnixDomainSocketSecurityMode
.Transport);
156
System.ServiceModel.UnixDomainSocketBinding binding = new UnixDomainSocketBinding(
UnixDomainSocketSecurityMode
.TransportCredentialOnly);
188
System.ServiceModel.UnixDomainSocketBinding binding = new UnixDomainSocketBinding(
UnixDomainSocketSecurityMode
.None);
System.ServiceModel.UnixDomainSocket (16)
System\ServiceModel\UnixDomainSocketBinding.cs (1)
21
public UnixDomainSocketBinding(
UnixDomainSocketSecurityMode
securityMode)
System\ServiceModel\UnixDomainSocketSecurity.cs (11)
13
private static
UnixDomainSocketSecurityMode
s_defaultMode =
15
UnixDomainSocketSecurityMode
.Transport :
UnixDomainSocketSecurityMode
.TransportCredentialOnly;
18
private
UnixDomainSocketSecurityMode
_mode;
26
private UnixDomainSocketSecurity(
UnixDomainSocketSecurityMode
mode, UnixDomainSocketTransportSecurity transportSecurity)
40
public
UnixDomainSocketSecurityMode
Mode
57
if (_mode ==
UnixDomainSocketSecurityMode
.Transport || _mode ==
UnixDomainSocketSecurityMode
.TransportCredentialOnly)
59
if((_mode ==
UnixDomainSocketSecurityMode
.TransportCredentialOnly && Transport.ClientCredentialType != UnixDomainSocketClientCredentialType.PosixIdentity)
61
(_mode ==
UnixDomainSocketSecurityMode
.Transport && Transport.ClientCredentialType == UnixDomainSocketClientCredentialType.PosixIdentity))
67
else if(_mode ==
UnixDomainSocketSecurityMode
.None)
System\ServiceModel\UnixDomainSocketSecurityMode.cs (4)
16
public static bool IsDefined(
UnixDomainSocketSecurityMode
value)
18
return (value ==
UnixDomainSocketSecurityMode
.None ||
19
value ==
UnixDomainSocketSecurityMode
.Transport ||
20
value ==
UnixDomainSocketSecurityMode
.TransportCredentialOnly);
System.ServiceModel.UnixDomainSocket.Tests (14)
ServiceModel\UnixDomainSocketBindingTest.cs (5)
15
[InlineData(
UnixDomainSocketSecurityMode
.None)]
16
[InlineData(
UnixDomainSocketSecurityMode
.Transport)]
17
[InlineData(
UnixDomainSocketSecurityMode
.TransportCredentialOnly)]
18
public static void Ctor_Default_Initializes_Properties(
UnixDomainSocketSecurityMode
securityMode)
28
Assert.Equal<
UnixDomainSocketSecurityMode
>(securityMode, binding.Security.Mode);
ServiceModel\UnixDomainSocketSecurityTest.cs (9)
18
UnixDomainSocketSecurityMode
mode = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
19
UnixDomainSocketSecurityMode
.Transport :
UnixDomainSocketSecurityMode
.TransportCredentialOnly;
20
Assert.Equal<
UnixDomainSocketSecurityMode
>(mode, security.Mode);
24
[InlineData(
UnixDomainSocketSecurityMode
.None)]
25
[InlineData(
UnixDomainSocketSecurityMode
.Transport)]
26
public static void Mode_Property_Sets(
UnixDomainSocketSecurityMode
mode)
30
Assert.Equal<
UnixDomainSocketSecurityMode
>(mode, security.Mode);
37
Assert.Throws<ArgumentOutOfRangeException>(() => security.Mode = (
UnixDomainSocketSecurityMode
)999);