grpc_server from grpc/grpc.h
Наследование: Grpc.Core.Internal.SafeHandleZeroIsInvalid
Пример #1
0
 /// <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
 /// <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
 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);