C# Class Microsoft.Azure.WebJobs.Script.Description.FunctionInvokerBase

Inheritance: IFunctionInvoker, IDisposable
Mostra file Open project: Azure/azure-webjobs-sdk-script Class Usage Examples

Private Properties

Property Type Description
FunctionInvokerBase System
LogFunctionFailed void
LogInvocationMetrics void

Public Methods

Method Description
Dispose ( ) : void
Invoke ( object parameters ) : System.Threading.Tasks.Task
OnError ( Exception ex ) : void

All unhandled invocation exceptions will flow through this method. We format the error and write it to our function specific TraceWriter.

Protected Methods

Method Description
CreateUserTraceWriter ( Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter ) : Microsoft.Azure.WebJobs.Host.TraceWriter
Dispose ( bool disposing ) : void
InitializeFileWatcherIfEnabled ( ) : bool
InvokeCore ( object parameters, FunctionInvocationContext context ) : System.Threading.Tasks.Task
OnScriptFileChanged ( object sender, FileSystemEventArgs e ) : void
TraceError ( string errorMessage ) : void
TraceOnPrimaryHost ( string message, TraceLevel level ) : void

Private Methods

Method Description
FunctionInvokerBase ( ScriptHost host, FunctionMetadata functionMetadata, ITraceWriterFactory traceWriterFactory = null ) : System
LogFunctionFailed ( FunctionStartedEvent startedEvent, string resultString, string invocationId ) : void
LogInvocationMetrics ( IMetricsLogger metrics, Collection bindings ) : void

Method Details

CreateUserTraceWriter() protected method

protected CreateUserTraceWriter ( Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter ) : Microsoft.Azure.WebJobs.Host.TraceWriter
traceWriter Microsoft.Azure.WebJobs.Host.TraceWriter
return Microsoft.Azure.WebJobs.Host.TraceWriter

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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

InitializeFileWatcherIfEnabled() protected method

protected InitializeFileWatcherIfEnabled ( ) : bool
return bool

Invoke() public method

public Invoke ( object parameters ) : System.Threading.Tasks.Task
parameters object
return System.Threading.Tasks.Task

InvokeCore() protected abstract method

protected abstract InvokeCore ( object parameters, FunctionInvocationContext context ) : System.Threading.Tasks.Task
parameters object
context FunctionInvocationContext
return System.Threading.Tasks.Task

OnError() public method

All unhandled invocation exceptions will flow through this method. We format the error and write it to our function specific TraceWriter.
public OnError ( Exception ex ) : void
ex System.Exception
return void

OnScriptFileChanged() protected method

protected OnScriptFileChanged ( object sender, FileSystemEventArgs e ) : void
sender object
e System.IO.FileSystemEventArgs
return void

TraceError() protected method

protected TraceError ( string errorMessage ) : void
errorMessage string
return void

TraceOnPrimaryHost() protected method

protected TraceOnPrimaryHost ( string message, TraceLevel level ) : void
message string
level TraceLevel
return void