private NovaServer() { Network = new NetworkServer(0); NovaManager = new NovaManager(Network); LiveControlManager = new LiveControlManager(Network); }
private NovaClient() { Network = new NetworkClient(); NovaManager = new NovaManager(Network); LiveControlManager = new LiveControlManager(Network); }
private async void FormMain_Shown(object sender, EventArgs e) { PasswordGeneratedEventArgs passArgs = await NovaManager.GeneratePassword(); LabelPassword.Text = passArgs.NewPassword; IntroducerRegistrationResponsedEventArgs regArgs = await NovaManager.RegisterWithIntroducerAsTask(); LabelNovaId.Text = regArgs.NovaId; CheckMirrorDriverExists(); }
public async Task InitNetworkManagerServer() { NovaManagerServer = Managers.NovaServer.Instance.NovaManager; LiveControlManagerServer = Managers.NovaServer.Instance.LiveControlManager; NovaManagerServer.OnIntroducerRegistrationResponded += NovaManager_OnIntroducerRegistrationResponded; NovaManagerServer.OnNewPasswordGenerated += new EventHandler <PasswordGeneratedEventArgs>(ServerManager_OnNewPasswordGenerated); NovaManagerServer.Network.OnConnected += new EventHandler <Network.ConnectedEventArgs>(Network_OnConnected); PasswordGeneratedEventArgs passArgs = await NovaManagerServer.GeneratePassword(); //LabelPassword.Content = passArgs.NewPassword; IntroducerRegistrationResponsedEventArgs regArgs = await NovaManagerServer.RegisterWithIntroducerAsTask(); //LabelNovaId.Content = regArgs.NovaId; Status.Content = "Host is live"; }
private void Timer_KeepAlive_Tick(object sender, EventArgs e) { NovaManager.SendKeepAliveMessage(); }
private NovaIntroducer() { Network = new NetworkServer(16168); NovaManager = new NovaManager(Network); }