grpc_server from grpc/grpc.h
Inheritance: Grpc.Core.Internal.SafeHandleZeroIsInvalid
示例#1
0
文件: Server.cs 项目: kdavison/grpc
 /// <summary>
 /// Create a new server.
 /// </summary>
 /// <param name="options">Channel options.</param>
 public Server(IEnumerable<ChannelOption> options = null)
 {
     using (var channelArgs = ChannelOptions.CreateChannelArgs(options))
     {
         this.handle = ServerSafeHandle.NewServer(GetCompletionQueue(), channelArgs);
     }
 }
示例#2
0
文件: Server.cs 项目: hmings888/grpc
 /// <summary>
 /// Create a new server.
 /// </summary>
 /// <param name="options">Channel options.</param>
 public Server(IEnumerable<ChannelOption> options = null)
 {
     this.environment = GrpcEnvironment.GetInstance();
     using (var channelArgs = ChannelOptions.CreateChannelArgs(options))
     {
         this.handle = ServerSafeHandle.NewServer(environment.CompletionQueue, channelArgs);
     }
 }
示例#3
0
 int IPlatformInvocation.grpcsharp_server_add_secure_http2_port(ServerSafeHandle server, string addr,
     ServerCredentialsSafeHandle creds)
 {
     return grpcsharp_server_add_secure_http2_port(server, addr, creds);
 }
示例#4
0
 static extern void grpcsharp_server_shutdown_and_notify_callback(ServerSafeHandle server, CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx);
示例#5
0
 static extern GRPCCallError grpcsharp_server_request_call(ServerSafeHandle server, CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx);
示例#6
0
 static extern int grpcsharp_server_add_secure_http2_port(ServerSafeHandle server, string addr, ServerCredentialsSafeHandle creds);
示例#7
0
 void IPlatformInvocation.grpcsharp_server_shutdown_and_notify_callback(ServerSafeHandle server,
                                                                        CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx)
 {
     grpcsharp_server_shutdown_and_notify_callback(server, cq, ctx);
 }
示例#8
0
 GRPCCallError IPlatformInvocation.grpcsharp_server_request_call(ServerSafeHandle server,
                                                                 CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx)
 {
     return(grpcsharp_server_request_call(server, cq, ctx));
 }
示例#9
0
 static extern void grpcsharp_server_shutdown(ServerSafeHandle server);
示例#10
0
 static extern GRPCCallError grpcsharp_server_request_call(ServerSafeHandle server, CompletionQueueSafeHandle cq, [MarshalAs(UnmanagedType.FunctionPtr)] CompletionCallbackDelegate callback);
示例#11
0
 static extern void grpcsharp_server_shutdown_and_notify_CALLBACK(ServerSafeHandle server, [MarshalAs(UnmanagedType.FunctionPtr)] ServerShutdownCallbackDelegate callback);
示例#12
0
 static extern void grpcsharp_server_shutdown(ServerSafeHandle server);
示例#13
0
 static extern GRPCCallError grpcsharp_server_request_call(ServerSafeHandle server, CompletionQueueSafeHandle cq, [MarshalAs(UnmanagedType.FunctionPtr)] CompletionCallbackDelegate callback);
示例#14
0
 internal static extern CallError grpcsharp_server_request_call(ServerSafeHandle server, CompletionQueueSafeHandle cq, RequestCallContextSafeHandle ctx);
示例#15
0
 internal static extern void grpcsharp_server_register_completion_queue(ServerSafeHandle server, CompletionQueueSafeHandle cq);
示例#16
0
 GRPCCallError IPlatformInvocation.grpcsharp_server_request_call(ServerSafeHandle server,
     CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx)
 {
     return grpcsharp_server_request_call(server, cq, ctx);
 }
示例#17
0
 void IPlatformInvocation.grpcsharp_server_shutdown_and_notify_callback(ServerSafeHandle server,
     CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx)
 {
     grpcsharp_server_shutdown_and_notify_callback(server, cq, ctx);
 }
示例#18
0
 static extern void grpcsharp_server_shutdown_and_notify_callback(ServerSafeHandle server, [MarshalAs(UnmanagedType.FunctionPtr)] CompletionCallbackDelegate callback);
示例#19
0
 void IPlatformInvocation.grpcsharp_server_start(ServerSafeHandle server)
 {
     grpcsharp_server_start(server);
 }
示例#20
0
 static extern int grpcsharp_server_add_insecure_http2_port(ServerSafeHandle server, string addr);
示例#21
0
 void IPlatformInvocation.grpcsharp_server_cancel_all_calls(ServerSafeHandle server)
 {
     grpcsharp_server_cancel_all_calls(server);
 }
示例#22
0
 static extern int grpcsharp_server_add_secure_http2_port(ServerSafeHandle server, string addr, ServerCredentialsSafeHandle creds);
示例#23
0
 static extern int grpcsharp_server_add_insecure_http2_port(ServerSafeHandle server, string addr);
示例#24
0
 static extern void grpcsharp_server_start(ServerSafeHandle server);
示例#25
0
 static extern void grpcsharp_server_start(ServerSafeHandle server);
示例#26
0
 static extern GRPCCallError grpcsharp_server_request_call(ServerSafeHandle server, CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx);
示例#27
0
 static extern void grpcsharp_server_cancel_all_calls(ServerSafeHandle server);
示例#28
0
 static extern void grpcsharp_server_cancel_all_calls(ServerSafeHandle server);
示例#29
0
 int IPlatformInvocation.grpcsharp_server_add_insecure_http2_port(ServerSafeHandle server, string addr)
 {
     return grpcsharp_server_add_insecure_http2_port(server, addr);
 }
示例#30
0
 static extern void grpcsharp_server_shutdown_and_notify_callback(ServerSafeHandle server, CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx);
示例#31
0
 void IPlatformInvocation.grpcsharp_server_start(ServerSafeHandle server)
 {
     grpcsharp_server_start(server);
 }
示例#32
0
 int IPlatformInvocation.grpcsharp_server_add_insecure_http2_port(ServerSafeHandle server, string addr)
 {
     return(grpcsharp_server_add_insecure_http2_port(server, addr));
 }
示例#33
0
 void IPlatformInvocation.grpcsharp_server_cancel_all_calls(ServerSafeHandle server)
 {
     grpcsharp_server_cancel_all_calls(server);
 }
示例#34
0
 int IPlatformInvocation.grpcsharp_server_add_secure_http2_port(ServerSafeHandle server, string addr,
                                                                ServerCredentialsSafeHandle creds)
 {
     return(grpcsharp_server_add_secure_http2_port(server, addr, creds));
 }
示例#35
0
文件: Server.cs 项目: jwatt/kythe
 public Server()
 {
     this.handle = ServerSafeHandle.NewServer(GetCompletionQueue(), IntPtr.Zero);
     this.newServerRpcHandler = HandleNewServerRpc;
     this.serverShutdownHandler = HandleServerShutdown;
 }
示例#36
0
 static extern Int32 grpcsharp_server_add_http2_port(ServerSafeHandle server, string addr);