Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 5
0
 ServerSafeHandle IPlatformInvocation.grpcsharp_server_create(CompletionQueueSafeHandle cq,
                                                              ChannelArgsSafeHandle args)
 {
     return(grpcsharp_server_create(cq, args));
 }
Ejemplo n.º 6
0
 public static ChannelSafeHandle CreateSecure(CredentialsSafeHandle credentials, string target, ChannelArgsSafeHandle channelArgs)
 {
     return(grpcsharp_secure_channel_create(credentials, target, channelArgs));
 }
Ejemplo n.º 7
0
 static extern ChannelSafeHandle grpcsharp_secure_channel_create(CredentialsSafeHandle credentials, string target, ChannelArgsSafeHandle channelArgs);
Ejemplo n.º 8
0
 internal static extern ChannelSafeHandle grpcsharp_secure_channel_create(ChannelCredentialsSafeHandle credentials, string target, ChannelArgsSafeHandle channelArgs);
Ejemplo n.º 9
0
 internal static extern void grpcsharp_channel_args_set_integer(ChannelArgsSafeHandle args, UIntPtr index, string key, int value);
Ejemplo n.º 10
0
 static extern ServerSafeHandle grpcsharp_server_create(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args);
Ejemplo n.º 11
0
 ChannelSafeHandle IPlatformInvocation.grpcsharp_insecure_channel_create(string target,
     ChannelArgsSafeHandle channelArgs)
 {
     return grpcsharp_insecure_channel_create(target, channelArgs);
 }
Ejemplo n.º 12
0
 public static ChannelSafeHandle Create(string target, ChannelArgsSafeHandle channelArgs)
 {
     return grpcsharp_channel_create(target, channelArgs);
 }
Ejemplo n.º 13
0
 public static ServerSafeHandle NewServer(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args)
 {
     return grpcsharp_server_create(cq, args);
 }
Ejemplo n.º 14
0
 public static ServerSafeHandle NewServer(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args)
 {
     return(grpcsharp_server_create(cq, args));
 }
Ejemplo n.º 15
0
 internal static extern ServerSafeHandle grpcsharp_server_create(ChannelArgsSafeHandle args);
Ejemplo n.º 16
0
 static extern void grpcsharp_channel_args_set_integer(ChannelArgsSafeHandle args, UIntPtr index, string key, int value);
Ejemplo n.º 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);
 }
Ejemplo n.º 18
0
 public static ChannelSafeHandle CreateSecure(CredentialsSafeHandle credentials, string target, ChannelArgsSafeHandle channelArgs)
 {
     return grpcsharp_secure_channel_create(credentials, target, channelArgs);
 }
Ejemplo n.º 19
0
 ChannelSafeHandle IPlatformInvocation.grpcsharp_secure_channel_create(ChannelCredentialsSafeHandle credentials,
     string target, ChannelArgsSafeHandle channelArgs)
 {
     return grpcsharp_secure_channel_create(credentials, target, channelArgs);
 }
Ejemplo n.º 20
0
 static extern void grpcsharp_channel_args_set_string(ChannelArgsSafeHandle args, UIntPtr index, string key, string value);
Ejemplo n.º 21
0
 ServerSafeHandle IPlatformInvocation.grpcsharp_server_create(CompletionQueueSafeHandle cq,
     ChannelArgsSafeHandle args)
 {
     return grpcsharp_server_create(cq, args);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 23
0
 internal static extern ChannelSafeHandle grpcsharp_insecure_channel_create(string target, ChannelArgsSafeHandle channelArgs);
Ejemplo n.º 24
0
 ChannelSafeHandle IPlatformInvocation.grpcsharp_insecure_channel_create(string target,
                                                                         ChannelArgsSafeHandle channelArgs)
 {
     return(grpcsharp_insecure_channel_create(target, channelArgs));
 }
Ejemplo n.º 25
0
 static extern ChannelSafeHandle grpcsharp_insecure_channel_create(string target, ChannelArgsSafeHandle channelArgs);
Ejemplo n.º 26
0
 ChannelSafeHandle IPlatformInvocation.grpcsharp_secure_channel_create(ChannelCredentialsSafeHandle credentials,
                                                                       string target, ChannelArgsSafeHandle channelArgs)
 {
     return(grpcsharp_secure_channel_create(credentials, target, channelArgs));
 }
Ejemplo n.º 27
0
 static extern ServerSafeHandle grpcsharp_server_create(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args);
Ejemplo n.º 28
0
 public static ChannelSafeHandle CreateInsecure(string target, ChannelArgsSafeHandle channelArgs)
 {
     return(grpcsharp_insecure_channel_create(target, channelArgs));
 }