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

Manages runtime assembly resolution for managed code functions, loading assemblies from their respective FunctionAssemblyLoadContext.
Inheritance: IDisposable
Mostra file Open project: Azure/azure-webjobs-sdk-script Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
FunctionAssemblyLoader ( string rootScriptPath ) : System
GetAssemblyNameFromMetadata ( FunctionMetadata metadata, string suffix ) : string
GetFunctionNameFromAssembly ( Assembly assembly ) : string
ReleaseContext ( FunctionMetadata metadata ) : bool

Private Methods

Method Description
CreateOrUpdateContext ( FunctionMetadata metadata, Assembly functionAssembly, IFunctionMetadataResolver metadataResolver, Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter ) : FunctionAssemblyLoadContext
Dispose ( bool disposing ) : void
GetFunctionContext ( Assembly requestingAssembly ) : FunctionAssemblyLoadContext
GetFunctionContext ( string functionName ) : FunctionAssemblyLoadContext
GetFunctionContextFromDependency ( Assembly requestingAssembly ) : FunctionAssemblyLoadContext
ResolveAssembly ( object sender, ResolveEventArgs args ) : Assembly

Method Details

Dispose() public method

public Dispose ( ) : void
return void

FunctionAssemblyLoader() public method

public FunctionAssemblyLoader ( string rootScriptPath ) : System
rootScriptPath string
return System

GetAssemblyNameFromMetadata() public static method

public static GetAssemblyNameFromMetadata ( FunctionMetadata metadata, string suffix ) : string
metadata FunctionMetadata
suffix string
return string

GetFunctionNameFromAssembly() public method

public GetFunctionNameFromAssembly ( Assembly assembly ) : string
assembly System.Reflection.Assembly
return string

ReleaseContext() public method

public ReleaseContext ( FunctionMetadata metadata ) : bool
metadata FunctionMetadata
return bool