Beispiel #1
0
 static async Task Main(string[] args)
 {
     channel     = GrpcChannel.ForAddress("https://localhost:5001");
     client      = new Server.Server.ServerClient(channel);
     currentMenu = LoginMenu;
     // Let's test memory locking
     //SecureString locked = "Test";
     //string unlocked = locked;
     //Console.WriteLine(unlocked);
     //Console.WriteLine(locked);
     //_ = Console.ReadKey();
     MainLoop();
 }
Beispiel #2
0
 public void ChangeChannel(string address)
 {
     _channel = GrpcChannel.ForAddress(address);
     Client   = new Server.Server.ServerClient(_channel);
 }
Beispiel #3
0
 private RPCHandler()
 {
     _channel = GrpcChannel.ForAddress("https://localhost:5001");
     Client   = new Server.Server.ServerClient(_channel);
 }