C# Class NRack.Server.Isolation.IsolationApp

Inheritance: System.MarshalByRefObject, IManagedApp, ILoggerProvider
Exibir arquivo Open project: kerryjiang/NRack Class Usage Examples

Private Properties

Property Type Description
GetAppWorkingDir string
GetAppWorkingDir string
IManagedAppBase StatusInfoCollection
IManagedAppBase void
Restart void
RunRecycleTriggers void

Public Methods

Method Description
CanBeRecycled ( ) : bool
GetMetadata ( ) : AppServerMetadata
InitializeLifetimeService ( ) : object

Obtains a lifetime service object to control the lifetime policy for this instance.

ReportPotentialConfigChange ( IServerConfig config ) : void
Setup ( IBootstrap bootstrap, IServerConfig config ) : bool
Start ( ) : bool

Protected Methods

Method Description
CollectStatus ( ) : StatusInfoCollection
CreateAndStartServerInstance ( ) : IManagedAppBase
GetAppAssemblyUpdateState ( ) : AppAssemblyUpdateState
GetAppConfigFile ( ) : string
IsolationApp ( AppServerMetadata metadata, string startupConfigFile ) : System
OnExceptionThrown ( Exception exc ) : void
OnStopped ( ) : void
Stop ( ) : void

Private Methods

Method Description
GetAppWorkingDir ( ) : string
GetAppWorkingDir ( IServerConfig config ) : string
IManagedAppBase ( ) : StatusInfoCollection
IManagedAppBase ( ) : void
Restart ( ) : void
RunRecycleTriggers ( StatusInfoCollection status ) : void

Method Details

CanBeRecycled() public method

public CanBeRecycled ( ) : bool
return bool

CollectStatus() protected abstract method

protected abstract CollectStatus ( ) : StatusInfoCollection
return StatusInfoCollection

CreateAndStartServerInstance() protected abstract method

protected abstract CreateAndStartServerInstance ( ) : IManagedAppBase
return IManagedAppBase

GetAppAssemblyUpdateState() protected method

GetAppConfigFile() protected method

protected GetAppConfigFile ( ) : string
return string

GetMetadata() public method

public GetMetadata ( ) : AppServerMetadata
return NRack.Base.AppServerMetadata

InitializeLifetimeService() public method

Obtains a lifetime service object to control the lifetime policy for this instance.
public InitializeLifetimeService ( ) : object
return object

IsolationApp() protected method

protected IsolationApp ( AppServerMetadata metadata, string startupConfigFile ) : System
metadata NRack.Base.AppServerMetadata
startupConfigFile string
return System

OnExceptionThrown() protected method

protected OnExceptionThrown ( Exception exc ) : void
exc System.Exception
return void

OnStopped() protected method

protected OnStopped ( ) : void
return void

ReportPotentialConfigChange() public method

public ReportPotentialConfigChange ( IServerConfig config ) : void
config IServerConfig
return void

Setup() public method

public Setup ( IBootstrap bootstrap, IServerConfig config ) : bool
bootstrap IBootstrap
config IServerConfig
return bool

Start() public method

public Start ( ) : bool
return bool

Stop() protected abstract method

protected abstract Stop ( ) : void
return void