internal async Task Connect(ConnectionInfo connectionInfo, Session session, ILogger logger) { var address = connectionInfo.Network == "unix" ? $"unix://{connectionInfo.Address}" : connectionInfo.Address; var channel = new Channel(address, ChannelCredentials.Insecure); await channel.ConnectAsync(); var interceptedChannel = channel.Intercept(new ExceptionLoggingInterceptor(logger)); Console.Error.WriteLine("[DEBUG] GRPC Channel Connected"); Whisper = new WhisperClient(interceptedChannel, session, logger); Clipboard = new ClipboardClient(interceptedChannel, session, logger); Filesystem = new FilesystemClient(interceptedChannel, session, logger); Cursor = new CursorClient(interceptedChannel, session, logger); Keyboard = new KeyboardClient(interceptedChannel, session, logger); Network = new NetworkClient(interceptedChannel, session, logger); Process = new ProcessClient(interceptedChannel, session, logger); Browser = new BrowserClient(interceptedChannel, session, logger); Hover = new HoverClient(interceptedChannel, session, logger); Window = new WindowClient(interceptedChannel, session, logger); Storage = new StorageClient(interceptedChannel, session, logger); UI = new UIClient(interceptedChannel, session, logger); }
public GuideManager(muUIClient m) { GuideManager.singleton = this; this._uiClient = m; this._currGuides = new Dictionary <string, GuideData>(); this._currGuideByTp = new Dictionary <string, Variant>(); this._guideUIs = new Dictionary <uint, IGuideUI>(); this._finGuides = new Variant(); this.funProcess.update = new Action <float>(this.process); }
public AppManager(UIClient client) { _uiClient = client; LoginService = new LoginService(); CardsService = new CardsService(); CommunityService = new CommunityService(); UserStore = new UserStore(); Repository = new Repository(); _current = this; }
public VMClient(VMMain VMMain, UIClient View) { this.View = View; this.View.ViewModel = this; this.VMMain = VMMain; // load clients and products in lists getDataFromDb(); // load selected client detail to listView and textboxes loadClientDetail((Client)View.getLBoxClient().SelectedValue); }
public void switchToClient() { if (User != null) { if (UIClient == null) { UIClient = new UIClient(); VMClient = new VMClient(this, UIClient); } UIMainForm.getPnUserControl().Controls.Clear(); UIMainForm.getPnUserControl().Controls.Add(UIClient); } else { switchToLogin(); } }
public ProdeTabBarDelegate(UIClient client) { _uiClient = client; }