grpc_server from grpc/grpc.h
Inheritance: Grpc.Core.Internal.SafeHandleZeroIsInvalid
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
 }
Example #4
0
 static extern void grpcsharp_server_shutdown_and_notify_callback(ServerSafeHandle server, CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx);
Example #5
0
 static extern GRPCCallError grpcsharp_server_request_call(ServerSafeHandle server, CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx);
Example #6
0
 static extern int grpcsharp_server_add_secure_http2_port(ServerSafeHandle server, string addr, ServerCredentialsSafeHandle creds);
Example #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);
 }
Example #8
0
 GRPCCallError IPlatformInvocation.grpcsharp_server_request_call(ServerSafeHandle server,
                                                                 CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx)
 {
     return(grpcsharp_server_request_call(server, cq, ctx));
 }
Example #9
0
 static extern void grpcsharp_server_shutdown(ServerSafeHandle server);
Example #10
0
 static extern GRPCCallError grpcsharp_server_request_call(ServerSafeHandle server, CompletionQueueSafeHandle cq, [MarshalAs(UnmanagedType.FunctionPtr)] CompletionCallbackDelegate callback);
Example #11
0
 static extern void grpcsharp_server_shutdown_and_notify_CALLBACK(ServerSafeHandle server, [MarshalAs(UnmanagedType.FunctionPtr)] ServerShutdownCallbackDelegate callback);
Example #12
0
 static extern void grpcsharp_server_shutdown(ServerSafeHandle server);
Example #13
0
 static extern GRPCCallError grpcsharp_server_request_call(ServerSafeHandle server, CompletionQueueSafeHandle cq, [MarshalAs(UnmanagedType.FunctionPtr)] CompletionCallbackDelegate callback);
 internal static extern CallError grpcsharp_server_request_call(ServerSafeHandle server, CompletionQueueSafeHandle cq, RequestCallContextSafeHandle ctx);
 internal static extern void grpcsharp_server_register_completion_queue(ServerSafeHandle server, CompletionQueueSafeHandle cq);
Example #16
0
 GRPCCallError IPlatformInvocation.grpcsharp_server_request_call(ServerSafeHandle server,
     CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx)
 {
     return grpcsharp_server_request_call(server, cq, ctx);
 }
Example #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);
 }
Example #18
0
 static extern void grpcsharp_server_shutdown_and_notify_callback(ServerSafeHandle server, [MarshalAs(UnmanagedType.FunctionPtr)] CompletionCallbackDelegate callback);
Example #19
0
 void IPlatformInvocation.grpcsharp_server_start(ServerSafeHandle server)
 {
     grpcsharp_server_start(server);
 }
Example #20
0
 static extern int grpcsharp_server_add_insecure_http2_port(ServerSafeHandle server, string addr);
Example #21
0
 void IPlatformInvocation.grpcsharp_server_cancel_all_calls(ServerSafeHandle server)
 {
     grpcsharp_server_cancel_all_calls(server);
 }
Example #22
0
 static extern int grpcsharp_server_add_secure_http2_port(ServerSafeHandle server, string addr, ServerCredentialsSafeHandle creds);
Example #23
0
 static extern int grpcsharp_server_add_insecure_http2_port(ServerSafeHandle server, string addr);
Example #24
0
 static extern void grpcsharp_server_start(ServerSafeHandle server);
Example #25
0
 static extern void grpcsharp_server_start(ServerSafeHandle server);
Example #26
0
 static extern GRPCCallError grpcsharp_server_request_call(ServerSafeHandle server, CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx);
Example #27
0
 static extern void grpcsharp_server_cancel_all_calls(ServerSafeHandle server);
Example #28
0
 static extern void grpcsharp_server_cancel_all_calls(ServerSafeHandle server);
Example #29
0
 int IPlatformInvocation.grpcsharp_server_add_insecure_http2_port(ServerSafeHandle server, string addr)
 {
     return grpcsharp_server_add_insecure_http2_port(server, addr);
 }
Example #30
0
 static extern void grpcsharp_server_shutdown_and_notify_callback(ServerSafeHandle server, CompletionQueueSafeHandle cq, BatchContextSafeHandle ctx);
Example #31
0
 void IPlatformInvocation.grpcsharp_server_start(ServerSafeHandle server)
 {
     grpcsharp_server_start(server);
 }
Example #32
0
 int IPlatformInvocation.grpcsharp_server_add_insecure_http2_port(ServerSafeHandle server, string addr)
 {
     return(grpcsharp_server_add_insecure_http2_port(server, addr));
 }
Example #33
0
 void IPlatformInvocation.grpcsharp_server_cancel_all_calls(ServerSafeHandle server)
 {
     grpcsharp_server_cancel_all_calls(server);
 }
Example #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));
 }
Example #35
0
 public Server()
 {
     this.handle = ServerSafeHandle.NewServer(GetCompletionQueue(), IntPtr.Zero);
     this.newServerRpcHandler = HandleNewServerRpc;
     this.serverShutdownHandler = HandleServerShutdown;
 }
Example #36
0
 static extern Int32 grpcsharp_server_add_http2_port(ServerSafeHandle server, string addr);