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