C# Class Microsoft.Azure.WebJobs.Script.ScriptHostManager

Class encapsulating a ScriptHost an keeping a singleton instance always alive, restarting as necessary.
Inheritance: IDisposable
Afficher le fichier Open project: Azure/azure-webjobs-sdk-script Class Usage Examples

Méthodes publiques

Méthode Description
CanInvoke ( ) : bool

Returns a value indicating whether the host can accept function invoke requests.

The host doesn't have to be fully started for it to allow direct function invocations to be processed.

Dispose ( ) : void
RunAndBlock ( CancellationToken cancellationToken = default(CancellationToken) ) : void
ScriptHostManager ( Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration config ) : System
ScriptHostManager ( Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration config, ScriptSettingsManager settingsManager, IScriptHostFactory scriptHostFactory ) : System
Stop ( ) : void
StopAsync ( ) : Task

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
OnHostCreated ( ) : void
OnHostStarted ( ) : void
OnInitializeConfig ( Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration config ) : void

Private Methods

Méthode Description
GetLiveInstancesAndClear ( ) : Microsoft.Azure.WebJobs.Script.ScriptHost[]
LogErrors ( ScriptHost host ) : void
Orphan ( ScriptHost instance, bool forceStop = false ) : Task

Remove the ScriptHost instance from the live instances collection, allowing it to finish currently executing functions before stopping and disposing of it.

StopAndDisposeAsync ( ScriptHost instance ) : Task

Method Details

CanInvoke() public méthode

Returns a value indicating whether the host can accept function invoke requests.
The host doesn't have to be fully started for it to allow direct function invocations to be processed.
public CanInvoke ( ) : bool
Résultat bool

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

OnHostCreated() protected méthode

protected OnHostCreated ( ) : void
Résultat void

OnHostStarted() protected méthode

protected OnHostStarted ( ) : void
Résultat void

OnInitializeConfig() protected méthode

protected OnInitializeConfig ( Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration config ) : void
config Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration
Résultat void

RunAndBlock() public méthode

public RunAndBlock ( CancellationToken cancellationToken = default(CancellationToken) ) : void
cancellationToken System.Threading.CancellationToken
Résultat void

ScriptHostManager() public méthode

public ScriptHostManager ( Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration config ) : System
config Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration
Résultat System

ScriptHostManager() public méthode

public ScriptHostManager ( Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration config, ScriptSettingsManager settingsManager, IScriptHostFactory scriptHostFactory ) : System
config Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration
settingsManager ScriptSettingsManager
scriptHostFactory IScriptHostFactory
Résultat System

Stop() public méthode

public Stop ( ) : void
Résultat void

StopAsync() public méthode

public StopAsync ( ) : Task
Résultat Task