C# Class JsonFx.Compilation.ResourceBuildProvider

Inheritance: System.Web.Compilation.BuildProvider, IResourceBuildHelper
Afficher le fichier Open project: pocket-playlab/jsonfx-v1 Class Usage Examples

Private Properties

Свойство Type Description
AddDependency void
EnsureAssemblyDependencies void
EnsureDependencies void
FormatBytes string
IResourceBuildHelper System.Web.Compilation.CompilerType
IResourceBuildHelper TextReader
IResourceBuildHelper void
IResourceBuildHelper void
QuoteSnippetStringCStyle string

Méthodes publiques

Méthode Description
Compress ( string source, byte &gzipped, byte &deflated ) : void
ComputeHash ( string value ) : string

Generates a unique hash from string

GenerateCode ( AssemblyBuilder assemblyBuilder ) : void
GenerateTypeNameFromPath ( string virtualPath ) : string

Generates a Type name for the compiled resource

GetGeneratedType ( CompilerResults results ) : Type

Méthodes protégées

Méthode Description
AddAssemblyDependency ( Assembly assembly ) : void
AddAssemblyDependency ( string assemblyName ) : void
ComputeHash ( Stream value ) : string

Generates a unique hash from byte[]

ComputeHash ( byte value ) : string

Generates a unique hash from byte[]

Private Methods

Méthode Description
AddDependency ( string virtualPath ) : void
EnsureAssemblyDependencies ( ) : void
EnsureDependencies ( ) : void
FormatBytes ( byte value ) : string

Gets the hex digits for the given bytes

IResourceBuildHelper ( string language ) : System.Web.Compilation.CompilerType
IResourceBuildHelper ( string virtualPath ) : TextReader
IResourceBuildHelper ( Assembly assembly ) : void
IResourceBuildHelper ( string virtualPath ) : void
QuoteSnippetStringCStyle ( string value ) : string

Escapes a C# string using C-style escape sequences.

Adapted from Microsoft.CSharp.CSharpCodeGenerator.QuoteSnippetStringCStyle Primary difference is does not wrap at 80 chars as can cause C# compiler to fail.

Method Details

AddAssemblyDependency() protected méthode

protected AddAssemblyDependency ( Assembly assembly ) : void
assembly System.Reflection.Assembly
Résultat void

AddAssemblyDependency() protected méthode

protected AddAssemblyDependency ( string assemblyName ) : void
assemblyName string
Résultat void

Compress() public static méthode

public static Compress ( string source, byte &gzipped, byte &deflated ) : void
source string
gzipped byte
deflated byte
Résultat void

ComputeHash() protected static méthode

Generates a unique hash from byte[]
protected static ComputeHash ( Stream value ) : string
value Stream
Résultat string

ComputeHash() protected static méthode

Generates a unique hash from byte[]
protected static ComputeHash ( byte value ) : string
value byte
Résultat string

ComputeHash() public static méthode

Generates a unique hash from string
public static ComputeHash ( string value ) : string
value string
Résultat string

GenerateCode() public méthode

public GenerateCode ( AssemblyBuilder assemblyBuilder ) : void
assemblyBuilder System.Web.Compilation.AssemblyBuilder
Résultat void

GenerateTypeNameFromPath() public static méthode

Generates a Type name for the compiled resource
public static GenerateTypeNameFromPath ( string virtualPath ) : string
virtualPath string
Résultat string

GetGeneratedType() public méthode

public GetGeneratedType ( CompilerResults results ) : Type
results System.CodeDom.Compiler.CompilerResults
Résultat System.Type