public void OnDeserialization(object sender) { var registry = AppRemoteTerminalRegistry.Instance(App); registry.AdjustID(m_ID); registry.Register(this); }
public virtual RemoteTerminalInfo Connect(string who) { m_Who = who ?? SysConsts.UNKNOWN_ENTITY; var now = App.TimeSource.UTCNow; m_WhenConnected = now; m_WhenInteracted = now; AppRemoteTerminalRegistry.Instance(App).Register(this); return(new RemoteTerminalInfo { TerminalName = Name, WelcomeMsg = "Connected to '[{0}]{1}'@'{2}' on {3:G} {4:T} UTC. Session '{5}'".Args(SkySystem.MetabaseApplicationName, App.Name, App.HostName, App.TimeSource.Now, App.TimeSource.UTCNow, Name), Host = App.HostName, AppName = App.Name, ServerLocalTime = App.TimeSource.Now, ServerUTCTime = App.TimeSource.UTCNow }); }
public AppRemoteTerminal() { m_ID = AppRemoteTerminalRegistry.Instance(App).NextID(); m_Name = new ELink((ulong)m_ID, null).Link; m_Vars = new Vars(); m_ScriptRunner = new ScriptRunner(); }
protected override void Destructor() { AppRemoteTerminalRegistry.Instance(App).Unregister(this); base.Destructor(); }