Ejemplo n.º 1
0
        public void OnDeserialization(object sender)
        {
            var registry = AppRemoteTerminalRegistry.Instance(App);

            registry.AdjustID(m_ID);
            registry.Register(this);
        }
Ejemplo n.º 2
0
        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
            });
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
 protected override void Destructor()
 {
     AppRemoteTerminalRegistry.Instance(App).Unregister(this);
     base.Destructor();
 }