Home
last modified time | relevance | path

Searched refs:ChannelOption (Results 1 – 25 of 26) sorted by relevance

12

/third_party/grpc/src/csharp/Grpc.Core.Tests/
DChannelOptionsTest.cs33 var option = new ChannelOption("somename", 1); in IntOption()
35 Assert.AreEqual(ChannelOption.OptionType.Integer, option.Type); in IntOption()
44 var option = new ChannelOption("somename", "ABCDEF"); in StringOption()
46 Assert.AreEqual(ChannelOption.OptionType.String, option.Type); in StringOption()
55 Assert.Throws(typeof(ArgumentNullException), () => { new ChannelOption(null, "abc"); }); in ConstructorPreconditions()
56 Assert.Throws(typeof(ArgumentNullException), () => { new ChannelOption(null, 1); }); in ConstructorPreconditions()
57 Assert.Throws(typeof(ArgumentNullException), () => { new ChannelOption("abc", null); }); in ConstructorPreconditions()
70 var options = new List<ChannelOption>(); in CreateChannelArgsEmpty()
78 var options = new List<ChannelOption> in CreateChannelArgs()
80 new ChannelOption("ABC", "XYZ"), in CreateChannelArgs()
[all …]
DChannelTest.cs39 var options = new ChannelOption[] in Constructor_RejectsDuplicateOptions()
41 new ChannelOption(ChannelOptions.PrimaryUserAgentString, "ABC"), in Constructor_RejectsDuplicateOptions()
42 new ChannelOption(ChannelOptions.PrimaryUserAgentString, "XYZ") in Constructor_RejectsDuplicateOptions()
DMockServiceHelper.cs40 readonly IEnumerable<ChannelOption> channelOptions;
55 …string host = null, Marshaller<string> marshaller = null, IEnumerable<ChannelOption> channelOption… in MockServiceHelper()
131 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in GetServer()
DServerBindFailedTest.cs43 var server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }); in Issue18100()
DUserAgentStringTest.cs71 … channelOptions: new[] { new ChannelOption(ChannelOptions.PrimaryUserAgentString, "XYZ") }); in ApplicationUserAgentString()
DServerTest.cs73 Server server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in StartThrowsWithUnboundPorts()
/third_party/grpc/src/csharp/Grpc.Core/
DChannelOptions.cs32 public sealed class ChannelOption : IEquatable<ChannelOption> class
60 public ChannelOption(string name, string stringValue) in ChannelOption() method in Grpc.Core.ChannelOption
72 public ChannelOption(string name, int intValue) in ChannelOption() method in Grpc.Core.ChannelOption
130 return Equals(obj as ChannelOption); in Equals()
136 public bool Equals(ChannelOption other) in Equals()
161 public static bool operator ==(ChannelOption option1, ChannelOption option2) in operator ==()
163 return EqualityComparer<ChannelOption>.Default.Equals(option1, option2); in operator ==()
169 public static bool operator !=(ChannelOption option1, ChannelOption option2) in operator !=()
219 internal static ChannelArgsSafeHandle CreateChannelArgs(ICollection<ChannelOption> options) in CreateChannelArgs()
232 if (option.Type == ChannelOption.OptionType.Integer) in CreateChannelArgs()
[all …]
DChannel.cs44 readonly Dictionary<string, ChannelOption> options;
66 …public Channel(string target, ChannelCredentials credentials, IEnumerable<ChannelOption> options) … in Channel()
106 …hannel(string host, int port, ChannelCredentials credentials, IEnumerable<ChannelOption> options) : in Channel()
309 private static void EnsureUserAgentChannelOption(Dictionary<string, ChannelOption> options) in EnsureUserAgentChannelOption()
314 ChannelOption option; in EnsureUserAgentChannelOption()
324 … options[ChannelOptions.PrimaryUserAgentString] = new ChannelOption(key, userAgentString); in EnsureUserAgentChannelOption()
327 …private static Dictionary<string, ChannelOption> CreateOptionsDictionary(IEnumerable<ChannelOption in CreateOptionsDictionary()
329 var dict = new Dictionary<string, ChannelOption>(); in CreateOptionsDictionary()
DServer.cs44 readonly List<ChannelOption> options;
68 public Server(IEnumerable<ChannelOption> options) in Server()
73 … this.options = options != null ? new List<ChannelOption>(options) : new List<ChannelOption>(); in Server()
/third_party/grpc/src/csharp/Grpc.IntegrationTesting/
DControlExtensions.cs30 public static ChannelOption ToChannelOption(this ChannelArg channelArgument) in ToChannelOption()
35 return new ChannelOption(channelArgument.Name, channelArgument.StrValue); in ToChannelOption()
37 return new ChannelOption(channelArgument.Name, channelArgument.IntValue); in ToChannelOption()
DInteropClientServerTest.cs45 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
52 var options = new List<ChannelOption> in Init()
54 … new ChannelOption(ChannelOptions.SslTargetNameOverride, TestCredentials.DefaultHostOverride) in Init()
DMetadataCredentialsTest.cs40 List<ChannelOption> options;
47 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
54 options = new List<ChannelOption> in Init()
56 … new ChannelOption(ChannelOptions.SslTargetNameOverride, TestCredentials.DefaultHostOverride) in Init()
DSslCredentialsTest.cs61 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in InitClientAndServer()
68 var options = new List<ChannelOption> in InitClientAndServer()
70 … new ChannelOption(ChannelOptions.SslTargetNameOverride, TestCredentials.DefaultHostOverride) in InitClientAndServer()
DXdsInteropClientTest.cs50 backendServer = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
67 lbStatsServer = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
DExternalDnsClientServerTest.cs49 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
DUnobservedTaskExceptionTest.cs46 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
DGeneratedServiceBaseTest.cs43 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
DClientRunners.cs93 var channelOptions = new List<ChannelOption>(); in CreateChannels()
96 …channelOptions.Add(new ChannelOption(ChannelOptions.SslTargetNameOverride, securityParams.ServerHo… in CreateChannels()
DExternalDnsWithTracingClientServerTest.cs66 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
DServerRunners.cs81 …var channelOptions = new List<ChannelOption>(config.ChannelArgs.Select((arg) => arg.ToChannelOptio… in CreateStarted()
DCustomErrorDetailsTest.cs49 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
DInteropClient.cs98 List<ChannelOption> channelOptions = null; in Run()
101 channelOptions = new List<ChannelOption> in Run()
103 … new ChannelOption(ChannelOptions.SslTargetNameOverride, options.ServerHostOverride) in Run()
/third_party/grpc/test/distrib/csharp/DistribTest/
DProgram.cs32 Server server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Main()
/third_party/grpc/src/csharp/Grpc.HealthCheck.Tests/
DHealthClientServerTest.cs46 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
/third_party/grpc/src/csharp/Grpc.Reflection.Tests/
DReflectionClientServerTest.cs47 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()

12