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

Inheritance: Microsoft.CodeAnalysis.MetadataReferenceResolver, IFunctionMetadataResolver
ファイルを表示 Open project: Azure/azure-webjobs-sdk-script Class Usage Examples

Public Methods

Method Description
CreateScriptOptions ( ) : Microsoft.CodeAnalysis.Scripting.ScriptOptions
Equals ( object other ) : bool
FunctionMetadataResolver ( FunctionMetadata metadata, ICollection bindingProviders, Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter ) : System
GetCompilationReferences ( ) : IReadOnlyCollection
GetHashCode ( ) : int
RequiresPackageRestore ( FunctionMetadata metadata ) : bool
ResolveAssembly ( string assemblyName ) : Assembly
ResolveReference ( string reference, string baseFilePath, MetadataReferenceProperties properties ) : ImmutableArray
RestorePackagesAsync ( ) : System.Threading.Tasks.Task
TryGetPackageReference ( string referenceName, PackageReference &package ) : bool

Attempts to resolve a package reference based on a reference name.

Private Methods

Method Description
GetBinDirectory ( FunctionMetadata metadata ) : string

Gets the private 'bin' path for a given script.

GetMetadataFromReferencePath ( string reference ) : ImmutableArray
GetProbingFilePaths ( string name ) : IEnumerable
HasValidAssemblyFileExtension ( string reference ) : bool
TryResolvePrivateAssembly ( string name, string &assemblyPath ) : bool

Method Details

CreateScriptOptions() public method

public CreateScriptOptions ( ) : Microsoft.CodeAnalysis.Scripting.ScriptOptions
return Microsoft.CodeAnalysis.Scripting.ScriptOptions

Equals() public method

public Equals ( object other ) : bool
other object
return bool

FunctionMetadataResolver() public method

public FunctionMetadataResolver ( FunctionMetadata metadata, ICollection bindingProviders, Microsoft.Azure.WebJobs.Host.TraceWriter traceWriter ) : System
metadata FunctionMetadata
bindingProviders ICollection
traceWriter Microsoft.Azure.WebJobs.Host.TraceWriter
return System

GetCompilationReferences() public method

public GetCompilationReferences ( ) : IReadOnlyCollection
return IReadOnlyCollection

GetHashCode() public method

public GetHashCode ( ) : int
return int

RequiresPackageRestore() public method

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

ResolveAssembly() public method

public ResolveAssembly ( string assemblyName ) : Assembly
assemblyName string
return System.Reflection.Assembly

ResolveReference() public method

public ResolveReference ( string reference, string baseFilePath, MetadataReferenceProperties properties ) : ImmutableArray
reference string
baseFilePath string
properties MetadataReferenceProperties
return ImmutableArray

RestorePackagesAsync() public method

public RestorePackagesAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

TryGetPackageReference() public method

Attempts to resolve a package reference based on a reference name.
public TryGetPackageReference ( string referenceName, PackageReference &package ) : bool
referenceName string The reference name
package PackageReference The package reference, if the /// matches a NuGet package reference name or one of the assemblies referenced by the package; otherwise, null.
return bool