/third_party/grpc/src/csharp/Grpc.Core.Tests/ |
D | ChannelOptionsTest.cs | 33 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 …]
|
D | ChannelTest.cs | 39 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()
|
D | MockServiceHelper.cs | 40 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()
|
D | ServerBindFailedTest.cs | 43 var server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }); in Issue18100()
|
D | UserAgentStringTest.cs | 71 … channelOptions: new[] { new ChannelOption(ChannelOptions.PrimaryUserAgentString, "XYZ") }); in ApplicationUserAgentString()
|
D | ServerTest.cs | 73 Server server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in StartThrowsWithUnboundPorts()
|
/third_party/grpc/src/csharp/Grpc.Core/ |
D | ChannelOptions.cs | 32 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 …]
|
D | Channel.cs | 44 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()
|
D | Server.cs | 44 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/ |
D | ControlExtensions.cs | 30 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()
|
D | InteropClientServerTest.cs | 45 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()
|
D | MetadataCredentialsTest.cs | 40 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()
|
D | SslCredentialsTest.cs | 61 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()
|
D | XdsInteropClientTest.cs | 50 backendServer = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init() 67 lbStatsServer = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
|
D | ExternalDnsClientServerTest.cs | 49 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
|
D | UnobservedTaskExceptionTest.cs | 46 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
|
D | GeneratedServiceBaseTest.cs | 43 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
|
D | ClientRunners.cs | 93 var channelOptions = new List<ChannelOption>(); in CreateChannels() 96 …channelOptions.Add(new ChannelOption(ChannelOptions.SslTargetNameOverride, securityParams.ServerHo… in CreateChannels()
|
D | ExternalDnsWithTracingClientServerTest.cs | 66 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
|
D | ServerRunners.cs | 81 …var channelOptions = new List<ChannelOption>(config.ChannelArgs.Select((arg) => arg.ToChannelOptio… in CreateStarted()
|
D | CustomErrorDetailsTest.cs | 49 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
|
D | InteropClient.cs | 98 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/ |
D | Program.cs | 32 Server server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Main()
|
/third_party/grpc/src/csharp/Grpc.HealthCheck.Tests/ |
D | HealthClientServerTest.cs | 46 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
|
/third_party/grpc/src/csharp/Grpc.Reflection.Tests/ |
D | ReflectionClientServerTest.cs | 47 server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) }) in Init()
|