Example #1
0
 public Server()
 {
     this.handle = ServerSafeHandle.NewServer(GetCompletionQueue(), IntPtr.Zero);
     this.newServerRpcHandler = HandleNewServerRpc;
     this.serverShutdownHandler = HandleServerShutdown;
 }
Example #2
0
 public Server()
 {
     this.handle = ServerSafeHandle.NewServer(GetCompletionQueue(), IntPtr.Zero);
     this.newServerRpcHandler   = HandleNewServerRpc;
     this.serverShutdownHandler = HandleServerShutdown;
 }
Example #3
0
 public void ShutdownAndNotify(ServerShutdownCallbackDelegate callback)
 {
     grpcsharp_server_shutdown_and_notify_CALLBACK(this, callback);
 }
Example #4
0
 static extern void grpcsharp_server_shutdown_and_notify_CALLBACK(ServerSafeHandle server, [MarshalAs(UnmanagedType.FunctionPtr)] ServerShutdownCallbackDelegate callback);
Example #5
0
 public void ShutdownAndNotify(ServerShutdownCallbackDelegate callback)
 {
     grpcsharp_server_shutdown_and_notify_CALLBACK(this, callback);
 }