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

Inheritance: JobHost
Mostrar archivo Open project: Azure/azure-webjobs-sdk-script Class Usage Examples

Public Properties

Property Type Description
Version string

Private Properties

Property Type Description
AddFunctionError void
ApplyConfiguration void
BlobLeaseManagerHasLeaseChanged void
CreateTypeAttributes Collection
DeterminePrimaryScriptFile string
GetAssemblyFileVersion string
GetRelativeDirectory string
HandleHostError void
HandleHostError void
HttpRoutesConflict bool
IsDisabled bool
IsDynamicSku bool
LoadBindingProviders Collection
NotifyInvoker void
OnDebugModeFileChanged void
OnFileChanged void
OnUnhandledException void
ParseFunctionMetadata Microsoft.Azure.WebJobs.Script.Description.FunctionMetadata
ParseScriptType ScriptType
PurgeOldLogDirectories void
ReadFunctions Collection
ReadFunctions Collection
RestartHost void
TryGetFunctionFromException bool
TryParseFunctionMetadata bool
ValidateFunctionName void

Public Methods

Method Description
CallAsync ( string method, object>.Dictionary arguments, CancellationToken cancellationToken = default(CancellationToken) ) : Task
Create ( ScriptSettingsManager settingsManager = null, Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration scriptConfig = null ) : ScriptHost
NotifyDebug ( ) : void

Notifies this host that it should be in debug mode.

Protected Methods

Method Description
Dispose ( bool disposing ) : void
Initialize ( ) : void
ScriptHost ( Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration scriptConfig ) : System

Private Methods

Method Description
AddFunctionError ( string functionName, string error, bool isFunctionShortName = false ) : void
ApplyConfiguration ( Newtonsoft.Json.Linq.JObject config, Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration scriptConfig ) : void
BlobLeaseManagerHasLeaseChanged ( object sender, EventArgs e ) : void
CreateTypeAttributes ( Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration scriptConfig ) : Collection
DeterminePrimaryScriptFile ( Newtonsoft.Json.Linq.JObject functionConfig, string functionFiles ) : string

Determines which script should be considered the "primary" entry point script.

GetAssemblyFileVersion ( Assembly assembly ) : string
GetRelativeDirectory ( string path, string scriptRoot ) : string
HandleHostError ( Exception exception ) : void
HandleHostError ( Microsoft traceFilter ) : void
HttpRoutesConflict ( HttpTriggerBindingMetadata functionMetadata, HttpTriggerBindingMetadata otherFunctionMetadata ) : bool
IsDisabled ( JToken isDisabledValue ) : bool
IsDynamicSku ( ) : bool
LoadBindingProviders ( Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration config, Newtonsoft.Json.Linq.JObject hostMetadata, Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter ) : Collection
NotifyInvoker ( string functionName, Exception ex ) : void
OnDebugModeFileChanged ( object sender, FileSystemEventArgs e ) : void

Whenever the debug marker file changes we update our debug timeout

OnFileChanged ( object sender, FileSystemEventArgs e ) : void
OnUnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
ParseFunctionMetadata ( string functionName, Newtonsoft.Json.Linq.JObject configMetadata ) : FunctionMetadata
ParseScriptType ( string scriptFilePath ) : ScriptType
PurgeOldLogDirectories ( ) : void

Iterate through all function log directories and remove any that don't correspond to a function.

ReadFunctions ( IEnumerable descriptorProviders ) : Collection
ReadFunctions ( List functions, IEnumerable descriptorProviders ) : Collection
RestartHost ( ) : void
TryGetFunctionFromException ( Collection functions, Exception exception, FunctionDescriptor &function ) : bool
TryParseFunctionMetadata ( string functionName, Newtonsoft.Json.Linq.JObject functionConfig, HttpTriggerBindingMetadata>.Dictionary mappedHttpFunctions, Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter, Lazy functionFilesProvider, FunctionMetadata &functionMetadata, string &error ) : bool
ValidateFunctionName ( string functionName ) : void

Method Details

CallAsync() public method

public CallAsync ( string method, object>.Dictionary arguments, CancellationToken cancellationToken = default(CancellationToken) ) : Task
method string
arguments object>.Dictionary
cancellationToken System.Threading.CancellationToken
return Task

Create() public static method

public static Create ( ScriptSettingsManager settingsManager = null, Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration scriptConfig = null ) : ScriptHost
settingsManager Microsoft.Azure.WebJobs.Script.Config.ScriptSettingsManager
scriptConfig Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration
return ScriptHost

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Initialize() protected method

protected Initialize ( ) : void
return void

NotifyDebug() public method

Notifies this host that it should be in debug mode.
public NotifyDebug ( ) : void
return void

ScriptHost() protected method

protected ScriptHost ( Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration scriptConfig ) : System
scriptConfig Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration
return System

Property Details

Version public_oe static_oe property

public static string Version
return string