Class CloudSystem
Inheritance
System.Object
CloudSystem
Implements
System.IDisposable
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: NFX.Web.dll
Syntax
public abstract class CloudSystem : ServiceWithInstrumentationBase<object>, IApplicationComponent, IDisposable, IService, ILocalizedTimeProvider, IWebClientCaller, ICloudSystemImplementation, ICloudSystem, INamed, IConfigurable, IInstrumentable, IExternallyParameterized
Constructors
CloudSystem(String, IConfigSectionNode)
Declaration
protected CloudSystem(string name, IConfigSectionNode node)
Parameters
CloudSystem(String, IConfigSectionNode, Object)
Declaration
protected CloudSystem(string name, IConfigSectionNode node, object director)
Parameters
Fields
CONFIG_AUTO_START_ATTR
Declaration
public const string CONFIG_AUTO_START_ATTR = "auto-start"
Field Value
Type |
Description |
System.String |
|
CONFIG_CLOUD_SECTION
Declaration
public const string CONFIG_CLOUD_SECTION = "cloud"
Field Value
Type |
Description |
System.String |
|
CONFIG_HOST_TEMPLATE_SECTION
Declaration
public const string CONFIG_HOST_TEMPLATE_SECTION = "host-template"
Field Value
Type |
Description |
System.String |
|
CONFIG_SYSTEM_SECTION
Declaration
public const string CONFIG_SYSTEM_SECTION = "system"
Field Value
Type |
Description |
System.String |
|
Sessions
Declaration
protected readonly List<CloudSession> Sessions
Field Value
Type |
Description |
System.Collections.Generic.List<CloudSession> |
|
Properties
DefaultSessionConnectParams
Declaration
protected CloudConnectionParameters DefaultSessionConnectParams { get; }
Property Value
DefaultSessionConnectParamsCfg
Declaration
[Config("default-session-connect-params")]
public IConfigSectionNode DefaultSessionConnectParamsCfg { get; set; }
Property Value
Instances
Declaration
public static IRegistry<ICloudSystem> Instances { get; }
Property Value
InstrumentationEnabled
Declaration
[Config(Default = false)]
[ExternalParameter(new string[]{"instrumentation", "pay"})]
public override bool InstrumentationEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
NFX.ServiceModel.ServiceWithInstrumentationBase<System.Object>.InstrumentationEnabled
KeepAlive
Declaration
[Config(Default = true)]
public bool KeepAlive { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
LogLevel
Specifies the log level for operations performed by Pay System.
Declaration
[Config(Default = MessageType.Warning)]
[ExternalParameter(new string[]{"pay"})]
public MessageType LogLevel { get; set; }
Property Value
Pipelined
Declaration
[Config(Default = true)]
public bool Pipelined { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Templates
Declaration
public IRegistry<CloudTemplate> Templates { get; }
Property Value
WebServiceCallTimeoutMs
Declaration
[Config(Default = 20000)]
public int WebServiceCallTimeoutMs { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
AutoStart()
Declaration
public static void AutoStart()
Deploy(CloudSession, String, CloudTemplate, IConfigSectionNode)
Declaration
public void Deploy(CloudSession session, string id, CloudTemplate template, IConfigSectionNode customData)
Parameters
Destructor()
Declaration
protected override void Destructor()
Overrides
Declaration
protected override void DoConfigure(IConfigSectionNode node)
Parameters
Overrides
DoDeploy(CloudSession, String, CloudTemplate, IConfigSectionNode)
Declaration
protected abstract void DoDeploy(CloudSession session, string id, CloudTemplate template, IConfigSectionNode customData)
Parameters
DoStart()
Declaration
protected override void DoStart()
Overrides
DoStartSession(CloudConnectionParameters)
Declaration
protected abstract CloudSession DoStartSession(CloudConnectionParameters cParams)
Parameters
Returns
DoWaitForCompleteStop()
Declaration
protected override void DoWaitForCompleteStop()
Overrides
Log(MessageType, String, String, Exception, Nullable<Guid>, String)
Declaration
protected Guid Log(MessageType type, string from, string message, Exception error = null, Guid? relatedMessageID = default (Guid? ), string parameters = null)
Parameters
Type |
Name |
Description |
MessageType |
type |
|
System.String |
from |
|
System.String |
message |
|
System.Exception |
error |
|
System.Nullable<System.Guid> |
relatedMessageID |
|
System.String |
parameters |
|
Returns
Type |
Description |
System.Guid |
|
Make<TSystem>(String, IConfigSectionNode)
Declaration
public static TSystem Make<TSystem>(string name, IConfigSectionNode node)where TSystem : CloudSystem
Parameters
Returns
Type Parameters
Make<TSystem>(String, String, String)
Declaration
public static TSystem Make<TSystem>(string name, string cfgStr, string format = "laconf")where TSystem : CloudSystem
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
cfgStr |
|
System.String |
format |
|
Returns
Type Parameters
MakeDefaultSessionConnectParams(IConfigSectionNode)
Declaration
protected abstract CloudConnectionParameters MakeDefaultSessionConnectParams(IConfigSectionNode paramsSection)
Parameters
Returns
MakeTemplate(IConfigSectionNode)
Declaration
protected abstract CloudTemplate MakeTemplate(IConfigSectionNode node)
Parameters
Returns
StartSession(CloudConnectionParameters)
Declaration
public CloudSession StartSession(CloudConnectionParameters cParams = null)
Parameters
Returns
Implements
System.IDisposable
Extension Methods