Class AppRemoteTerminal
Provides base for terminal application management capabilities. This is a Glue server
Inheritance
System.Object
AppRemoteTerminal
Implements
System.IDisposable
System.Runtime.Serialization.IDeserializationCallback
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Azos.Sky.dll
Syntax
[Serializable]
public class AppRemoteTerminal : DisposableObject, IDisposable, IRemoteTerminal, ISkyService, INamed, IDeserializationCallback, IConfigurable
Constructors
AppRemoteTerminal()
Declaration
public AppRemoteTerminal()
Fields
CONFIG_APP_REMOTE_TERMINAL_SECTION
Declaration
public const string CONFIG_APP_REMOTE_TERMINAL_SECTION = "remote-terminal"
Field Value
Type |
Description |
System.String |
|
HELP_ARGS
Declaration
public const string HELP_ARGS = "/?"
Field Value
Type |
Description |
System.String |
|
MARKUP_PRAGMA
A string pragma which indicates that the returned content is markup (contains color and formatting information)
Declaration
public const string MARKUP_PRAGMA = "<!-- ###MARKUP### -->"
Field Value
Type |
Description |
System.String |
|
Properties
App
Declaration
public ISkyApplication App { get; }
Property Value
Cmdlets
Declaration
public virtual IEnumerable<Type> Cmdlets { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Type> |
|
ID
Returns unique terminal session ID
Declaration
Property Value
Type |
Description |
System.Int32 |
|
Name
Returns unique terminal session ID as an alpha link
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
Vars
Provides variable resolver
Declaration
public virtual Vars Vars { get; }
Property Value
WhenConnected
Returns UTC timestamp of connection initiation
Declaration
public DateTime WhenConnected { get; }
Property Value
Type |
Description |
System.DateTime |
|
WhenInteracted
Returns UTC timestamp of last interaction
Declaration
public DateTime WhenInteracted { get; }
Property Value
Type |
Description |
System.DateTime |
|
Who
Returns description about who is connected
Declaration
public string Who { get; }
Property Value
Type |
Description |
System.String |
|
Methods
Declaration
public void Configure(IConfigSectionNode fromNode)
Parameters
Connect(String)
Declaration
public virtual RemoteTerminalInfo Connect(string who)
Parameters
Type |
Name |
Description |
System.String |
who |
|
Returns
Destructor()
Declaration
protected override void Destructor()
Overrides
Disconnect()
Declaration
public virtual string Disconnect()
Returns
Type |
Description |
System.String |
|
Declaration
protected virtual void DoConfigure(IConfigSectionNode fromNode)
Parameters
DoExecute(IConfigSectionNode)
Declaration
protected virtual string DoExecute(IConfigSectionNode command)
Parameters
Returns
Type |
Description |
System.String |
|
Execute(IConfigSectionNode)
Declaration
public string Execute(IConfigSectionNode command)
Parameters
Returns
Type |
Description |
System.String |
|
Execute(String)
Declaration
[AppRemoteTerminalPermission]
public virtual string Execute(string command)
Parameters
Type |
Name |
Description |
System.String |
command |
|
Returns
Type |
Description |
System.String |
|
MakeNewTerminal(IApplication)
Makes an instance of remote terminal which is configured under app/remote-terminal section.
If section is not defined then makes AppRemoteTerminal instance
Declaration
public static AppRemoteTerminal MakeNewTerminal(IApplication app)
Parameters
Returns
OnDeserialization(Object)
Declaration
public void OnDeserialization(object sender)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
Implements
System.IDisposable
System.Runtime.Serialization.IDeserializationCallback
Extension Methods