public QuickStart(GrpcClient client) { grpcClient = client; connectSvc = new ConnectSvc(grpcClient.GetChannel()); deviceSvc = new DeviceSvc(grpcClient.GetChannel()); userSvc = new UserSvc(grpcClient.GetChannel()); fingerSvc = new FingerSvc(grpcClient.GetChannel()); cardSvc = new CardSvc(grpcClient.GetChannel()); eventSvc = new EventSvc(grpcClient.GetChannel()); }
public AsyncMenu(ConnectSvc svc) { connectSvc = svc; MenuItem[] items = new MenuItem[4]; items[0] = new MenuItem("1", "Add async connections", new MenuCallback(AddAsyncConnection), false); items[1] = new MenuItem("2", "Delete async connections", new MenuCallback(DeleteAsyncConnection), false); items[2] = new MenuItem("3", "Refresh the connection list", new MenuCallback(ShowAsyncConnection), false); items[3] = new MenuItem("q", "Return to Main Menu", null, true); menu = new Menu(items); }
public AcceptMenu(ConnectSvc svc) { connectSvc = svc; MenuItem[] items = new MenuItem[6]; items[0] = new MenuItem("1", "Add devices to the filter", new MenuCallback(AddDevices), false); items[1] = new MenuItem("2", "Delete devices from the filter", new MenuCallback(DeleteDevices), false); items[2] = new MenuItem("3", "Allow all devices", new MenuCallback(AllowAll), false); items[3] = new MenuItem("4", "Disallow all devices", new MenuCallback(DisallowAll), false); items[4] = new MenuItem("5", "Refresh the pending device list", new MenuCallback(ShowPendingList), false); items[5] = new MenuItem("q", "Return to Main Menu", null, true); menu = new Menu(items); }
public DeviceMenu(ConnectSvc svc) { connectSvc = svc; MenuItem[] items = new MenuItem[7]; items[0] = new MenuItem("1", "Set connection mode", new MenuCallback(SetConnectionMode), false); items[1] = new MenuItem("2", "Enable SSL", new MenuCallback(EnableSSL), false); items[2] = new MenuItem("3", "Disable SSL", new MenuCallback(DisableSSL), false); items[3] = new MenuItem("4", "Disconnect devices", new MenuCallback(Disconnect), false); items[4] = new MenuItem("5", "Disconnect all devices", new MenuCallback(DisconnectAll), false); items[5] = new MenuItem("6", "Refresh the managed device list", new MenuCallback(ShowDeviceList), false); items[6] = new MenuItem("q", "Return to Main Menu", null, true); menu = new Menu(items); }
public MainMenu(ConnectSvc svc) { connectSvc = svc; MenuItem[] items = new MenuItem[6]; items[0] = new MenuItem("1", "Search devices", new MenuCallback(SearchDevice), false); items[1] = new MenuItem("2", "Connect to a device synchronously", new MenuCallback(ConnectToDevice), false); items[2] = new MenuItem("3", "Manage asynchronous connections", new MenuCallback(ShowAsyncMenu), false); items[3] = new MenuItem("4", "Accept devices", ShowAcceptMenu, false); items[4] = new MenuItem("5", "Device menu", new MenuCallback(ShowDeviceMenu), false); items[5] = new MenuItem("q", "Quit", null, true); menu = new Menu(items); deviceMenu = new DeviceMenu(svc); asyncMenu = new AsyncMenu(svc); acceptMenu = new AcceptMenu(svc); }
public ConnectTest(GrpcClient client) { grpcClient = client; connectSvc = new ConnectSvc(grpcClient.GetChannel()); }