Exemple #1
0
 public static ServerSafeHandle NewServer(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args)
 {
     // Increment reference count for the native gRPC environment to make sure we don't do grpc_shutdown() before destroying the server handle.
     // Doing so would make object finalizer crash if we end up abandoning the handle.
     GrpcEnvironment.GrpcNativeInit();
     return(pinvoke.grpcsharp_server_create(cq, args));
 }
Exemple #2
0
 public static ChannelSafeHandle CreateInsecure(string target, ChannelArgsSafeHandle channelArgs)
 {
     // Increment reference count for the native gRPC environment to make sure we don't do grpc_shutdown() before destroying the server handle.
     // Doing so would make object finalizer crash if we end up abandoning the handle.
     GrpcEnvironment.GrpcNativeInit();
     return(grpcsharp_insecure_channel_create(target, channelArgs));
 }
Exemple #3
0
 public static ServerSafeHandle NewServer(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args)
 {
     // Increment reference count for the native gRPC environment to make sure we don't do grpc_shutdown() before destroying the server handle.
     // Doing so would make object finalizer crash if we end up abandoning the handle.
     GrpcEnvironment.GrpcNativeInit();
     return Native.grpcsharp_server_create(cq, args);
 }
Exemple #4
0
 public static ChannelSafeHandle CreateSecure(CredentialsSafeHandle credentials, string target, ChannelArgsSafeHandle channelArgs)
 {
     // Increment reference count for the native gRPC environment to make sure we don't do grpc_shutdown() before destroying the server handle.
     // Doing so would make object finalizer crash if we end up abandoning the handle.
     GrpcEnvironment.GrpcNativeInit();
     return grpcsharp_secure_channel_create(credentials, target, channelArgs);
 }
Exemple #5
0
 ServerSafeHandle IPlatformInvocation.grpcsharp_server_create(CompletionQueueSafeHandle cq,
                                                              ChannelArgsSafeHandle args)
 {
     return(grpcsharp_server_create(cq, args));
 }
Exemple #6
0
 public static ChannelSafeHandle CreateSecure(CredentialsSafeHandle credentials, string target, ChannelArgsSafeHandle channelArgs)
 {
     return(grpcsharp_secure_channel_create(credentials, target, channelArgs));
 }
Exemple #7
0
 static extern ChannelSafeHandle grpcsharp_secure_channel_create(CredentialsSafeHandle credentials, string target, ChannelArgsSafeHandle channelArgs);
Exemple #8
0
 internal static extern ChannelSafeHandle grpcsharp_secure_channel_create(ChannelCredentialsSafeHandle credentials, string target, ChannelArgsSafeHandle channelArgs);
Exemple #9
0
 internal static extern void grpcsharp_channel_args_set_integer(ChannelArgsSafeHandle args, UIntPtr index, string key, int value);
Exemple #10
0
 static extern ServerSafeHandle grpcsharp_server_create(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args);
Exemple #11
0
 ChannelSafeHandle IPlatformInvocation.grpcsharp_insecure_channel_create(string target,
     ChannelArgsSafeHandle channelArgs)
 {
     return grpcsharp_insecure_channel_create(target, channelArgs);
 }
Exemple #12
0
 public static ChannelSafeHandle Create(string target, ChannelArgsSafeHandle channelArgs)
 {
     return grpcsharp_channel_create(target, channelArgs);
 }
Exemple #13
0
 public static ServerSafeHandle NewServer(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args)
 {
     return grpcsharp_server_create(cq, args);
 }
Exemple #14
0
 public static ServerSafeHandle NewServer(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args)
 {
     return(grpcsharp_server_create(cq, args));
 }
 internal static extern ServerSafeHandle grpcsharp_server_create(ChannelArgsSafeHandle args);
Exemple #16
0
 static extern void grpcsharp_channel_args_set_integer(ChannelArgsSafeHandle args, UIntPtr index, string key, int value);
Exemple #17
0
 void IPlatformInvocation.grpcsharp_channel_args_set_integer(ChannelArgsSafeHandle args, UIntPtr index,
     string key, int value)
 {
     grpcsharp_channel_args_set_integer(args, index, key, value);
 }
Exemple #18
0
 public static ChannelSafeHandle CreateSecure(CredentialsSafeHandle credentials, string target, ChannelArgsSafeHandle channelArgs)
 {
     return grpcsharp_secure_channel_create(credentials, target, channelArgs);
 }
Exemple #19
0
 ChannelSafeHandle IPlatformInvocation.grpcsharp_secure_channel_create(ChannelCredentialsSafeHandle credentials,
     string target, ChannelArgsSafeHandle channelArgs)
 {
     return grpcsharp_secure_channel_create(credentials, target, channelArgs);
 }
Exemple #20
0
 static extern void grpcsharp_channel_args_set_string(ChannelArgsSafeHandle args, UIntPtr index, string key, string value);
Exemple #21
0
 ServerSafeHandle IPlatformInvocation.grpcsharp_server_create(CompletionQueueSafeHandle cq,
     ChannelArgsSafeHandle args)
 {
     return grpcsharp_server_create(cq, args);
 }
Exemple #22
0
 void IPlatformInvocation.grpcsharp_channel_args_set_integer(ChannelArgsSafeHandle args, UIntPtr index,
                                                             string key, int value)
 {
     grpcsharp_channel_args_set_integer(args, index, key, value);
 }
Exemple #23
0
 internal static extern ChannelSafeHandle grpcsharp_insecure_channel_create(string target, ChannelArgsSafeHandle channelArgs);
Exemple #24
0
 ChannelSafeHandle IPlatformInvocation.grpcsharp_insecure_channel_create(string target,
                                                                         ChannelArgsSafeHandle channelArgs)
 {
     return(grpcsharp_insecure_channel_create(target, channelArgs));
 }
Exemple #25
0
 static extern ChannelSafeHandle grpcsharp_insecure_channel_create(string target, ChannelArgsSafeHandle channelArgs);
Exemple #26
0
 ChannelSafeHandle IPlatformInvocation.grpcsharp_secure_channel_create(ChannelCredentialsSafeHandle credentials,
                                                                       string target, ChannelArgsSafeHandle channelArgs)
 {
     return(grpcsharp_secure_channel_create(credentials, target, channelArgs));
 }
Exemple #27
0
 static extern ServerSafeHandle grpcsharp_server_create(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args);
Exemple #28
0
 public static ChannelSafeHandle CreateInsecure(string target, ChannelArgsSafeHandle channelArgs)
 {
     return(grpcsharp_insecure_channel_create(target, channelArgs));
 }