コード例 #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));
 }
コード例 #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));
 }
コード例 #3
0
ファイル: ServerSafeHandle.cs プロジェクト: rwightman/grpc
 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);
 }
コード例 #4
0
ファイル: ChannelSafeHandle.cs プロジェクト: gpndata/grpc
 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);
 }
コード例 #5
0
 ServerSafeHandle IPlatformInvocation.grpcsharp_server_create(CompletionQueueSafeHandle cq,
                                                              ChannelArgsSafeHandle args)
 {
     return(grpcsharp_server_create(cq, args));
 }
コード例 #6
0
ファイル: ChannelSafeHandle.cs プロジェクト: muisaja7/grpc
 public static ChannelSafeHandle CreateSecure(CredentialsSafeHandle credentials, string target, ChannelArgsSafeHandle channelArgs)
 {
     return(grpcsharp_secure_channel_create(credentials, target, channelArgs));
 }
コード例 #7
0
ファイル: ChannelSafeHandle.cs プロジェクト: gpndata/grpc
 static extern ChannelSafeHandle grpcsharp_secure_channel_create(CredentialsSafeHandle credentials, string target, ChannelArgsSafeHandle channelArgs);
コード例 #8
0
 internal static extern ChannelSafeHandle grpcsharp_secure_channel_create(ChannelCredentialsSafeHandle credentials, string target, ChannelArgsSafeHandle channelArgs);
コード例 #9
0
 internal static extern void grpcsharp_channel_args_set_integer(ChannelArgsSafeHandle args, UIntPtr index, string key, int value);
コード例 #10
0
ファイル: PlatformInvocationLinux.cs プロジェクト: cj525/grpc
 static extern ServerSafeHandle grpcsharp_server_create(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args);
コード例 #11
0
ファイル: PlatformInvocationLinux.cs プロジェクト: cj525/grpc
 ChannelSafeHandle IPlatformInvocation.grpcsharp_insecure_channel_create(string target,
     ChannelArgsSafeHandle channelArgs)
 {
     return grpcsharp_insecure_channel_create(target, channelArgs);
 }
コード例 #12
0
ファイル: ChannelSafeHandle.cs プロジェクト: jwatt/kythe
 public static ChannelSafeHandle Create(string target, ChannelArgsSafeHandle channelArgs)
 {
     return grpcsharp_channel_create(target, channelArgs);
 }
コード例 #13
0
ファイル: ServerSafeHandle.cs プロジェクト: rootusr/grpc
 public static ServerSafeHandle NewServer(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args)
 {
     return grpcsharp_server_create(cq, args);
 }
コード例 #14
0
ファイル: ServerSafeHandle.cs プロジェクト: sidrakesh93/grpc
 public static ServerSafeHandle NewServer(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args)
 {
     return(grpcsharp_server_create(cq, args));
 }
コード例 #15
0
 internal static extern ServerSafeHandle grpcsharp_server_create(ChannelArgsSafeHandle args);
コード例 #16
0
ファイル: PlatformInvocationLinux.cs プロジェクト: cj525/grpc
 static extern void grpcsharp_channel_args_set_integer(ChannelArgsSafeHandle args, UIntPtr index, string key, int value);
コード例 #17
0
ファイル: PlatformInvocationLinux.cs プロジェクト: cj525/grpc
 void IPlatformInvocation.grpcsharp_channel_args_set_integer(ChannelArgsSafeHandle args, UIntPtr index,
     string key, int value)
 {
     grpcsharp_channel_args_set_integer(args, index, key, value);
 }
コード例 #18
0
ファイル: ChannelSafeHandle.cs プロジェクト: jwatt/kythe
 public static ChannelSafeHandle CreateSecure(CredentialsSafeHandle credentials, string target, ChannelArgsSafeHandle channelArgs)
 {
     return grpcsharp_secure_channel_create(credentials, target, channelArgs);
 }
コード例 #19
0
ファイル: PlatformInvocationLinux.cs プロジェクト: cj525/grpc
 ChannelSafeHandle IPlatformInvocation.grpcsharp_secure_channel_create(ChannelCredentialsSafeHandle credentials,
     string target, ChannelArgsSafeHandle channelArgs)
 {
     return grpcsharp_secure_channel_create(credentials, target, channelArgs);
 }
コード例 #20
0
 static extern void grpcsharp_channel_args_set_string(ChannelArgsSafeHandle args, UIntPtr index, string key, string value);
コード例 #21
0
ファイル: PlatformInvocationLinux.cs プロジェクト: cj525/grpc
 ServerSafeHandle IPlatformInvocation.grpcsharp_server_create(CompletionQueueSafeHandle cq,
     ChannelArgsSafeHandle args)
 {
     return grpcsharp_server_create(cq, args);
 }
コード例 #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);
 }
コード例 #23
0
 internal static extern ChannelSafeHandle grpcsharp_insecure_channel_create(string target, ChannelArgsSafeHandle channelArgs);
コード例 #24
0
 ChannelSafeHandle IPlatformInvocation.grpcsharp_insecure_channel_create(string target,
                                                                         ChannelArgsSafeHandle channelArgs)
 {
     return(grpcsharp_insecure_channel_create(target, channelArgs));
 }
コード例 #25
0
ファイル: ChannelSafeHandle.cs プロジェクト: gpndata/grpc
 static extern ChannelSafeHandle grpcsharp_insecure_channel_create(string target, ChannelArgsSafeHandle channelArgs);
コード例 #26
0
 ChannelSafeHandle IPlatformInvocation.grpcsharp_secure_channel_create(ChannelCredentialsSafeHandle credentials,
                                                                       string target, ChannelArgsSafeHandle channelArgs)
 {
     return(grpcsharp_secure_channel_create(credentials, target, channelArgs));
 }
コード例 #27
0
 static extern ServerSafeHandle grpcsharp_server_create(CompletionQueueSafeHandle cq, ChannelArgsSafeHandle args);
コード例 #28
0
ファイル: ChannelSafeHandle.cs プロジェクト: muisaja7/grpc
 public static ChannelSafeHandle CreateInsecure(string target, ChannelArgsSafeHandle channelArgs)
 {
     return(grpcsharp_insecure_channel_create(target, channelArgs));
 }