Property | Type | Description | |
---|---|---|---|
DEFAULT_ASSEMBLY_NAME | String | ||
DEFAULT_FILE_NAME | String |
Method | Description | |
---|---|---|
DefineType ( bool inSignedModulePreferably, string name, TypeAttributes flags ) : |
||
GetFromCache ( Castle.DynamicProxy.Generators.CacheKey key ) : |
Returns a type from this scope's type cache, or null if the key cannot be found.
|
|
GetKeyPair ( ) : byte[] |
Gets the key pair used to sign the strong-named assembly generated by this ModuleScope.
|
|
LoadAssemblyIntoCache ( |
Loads the generated types from the given assembly into this ModuleScope's cache. This method can be used to load previously generated and persisted proxy types from disk into this scope's type cache, eg. in order to avoid the performance hit associated with proxy generation. |
|
ModuleScope ( ) : System |
Initializes a new instance of the ModuleScope class; assemblies created by this instance will not be saved.
|
|
ModuleScope ( bool savePhysicalAssembly ) : System |
Initializes a new instance of the ModuleScope class, allowing to specify whether the assemblies generated by this instance should be saved.
|
|
ModuleScope ( bool savePhysicalAssembly, bool disableSignedModule ) : System |
Initializes a new instance of the ModuleScope class, allowing to specify whether the assemblies generated by this instance should be saved.
|
|
ModuleScope ( bool savePhysicalAssembly, bool disableSignedModule, INamingScope namingScope, string strongAssemblyName, string strongModulePath, string weakAssemblyName, string weakModulePath ) : System |
Initializes a new instance of the ModuleScope class, allowing to specify whether the assemblies generated by this instance should be saved and what simple names are to be assigned to them.
|
|
ModuleScope ( bool savePhysicalAssembly, bool disableSignedModule, string strongAssemblyName, string strongModulePath, string weakAssemblyName, string weakModulePath ) : System |
Initializes a new instance of the ModuleScope class, allowing to specify whether the assemblies generated by this instance should be saved and what simple names are to be assigned to them.
|
|
ObtainDynamicModule ( bool isStrongNamed ) : |
Gets the specified module generated by this scope, creating a new one if none has yet been generated.
|
|
ObtainDynamicModuleWithStrongName ( ) : |
Gets the strong-named module generated by this scope, creating a new one if none has yet been generated.
|
|
ObtainDynamicModuleWithWeakName ( ) : |
Gets the weak-named module generated by this scope, creating a new one if none has yet been generated.
|
|
RegisterInCache ( Castle.DynamicProxy.Generators.CacheKey key, |
Registers a type in this scope's type cache.
|
|
SaveAssembly ( ) : string |
Saves the generated assembly with the name and directory information given when this ModuleScope instance was created (or with the DEFAULT_FILE_NAME and current directory if none was given). This method stores the generated assembly in the directory passed as part of the module information specified when this instance was constructed (if any, else the current directory is used). If both a strong-named and a weak-named assembly have been generated, it will throw an exception; in this case, use the SaveAssembly (bool) overload. If this ModuleScope was created without indicating that the assembly should be saved, this method does nothing. |
|
SaveAssembly ( bool strongNamed ) : string |
Saves the specified generated assembly with the name and directory information given when this This method stores the specified generated assembly in the directory passed as part of the module information specified when this instance was constructed (if any, else the current directory is used). If this ModuleScope was created without indicating that the assembly should be saved, this method does nothing. |
Method | Description | |
---|---|---|
AddCacheMappings ( |
||
CreateModule ( bool signStrongName ) : |
||
GetAssemblyName ( bool signStrongName ) : |
public DefineType ( bool inSignedModulePreferably, string name, TypeAttributes flags ) : |
||
inSignedModulePreferably | bool | |
name | string | |
flags | TypeAttributes | |
return |
public GetFromCache ( Castle.DynamicProxy.Generators.CacheKey key ) : |
||
key | Castle.DynamicProxy.Generators.CacheKey | The key to be looked up in the cache. |
return |
public LoadAssemblyIntoCache ( |
||
assembly | The assembly to load types from. This assembly must have been saved via |
|
return | void |
public ModuleScope ( bool savePhysicalAssembly ) : System | ||
savePhysicalAssembly | bool | If set to |
return | System |
public ModuleScope ( bool savePhysicalAssembly, bool disableSignedModule ) : System | ||
savePhysicalAssembly | bool | If set to |
disableSignedModule | bool | If set to |
return | System |
public ModuleScope ( bool savePhysicalAssembly, bool disableSignedModule, INamingScope namingScope, string strongAssemblyName, string strongModulePath, string weakAssemblyName, string weakModulePath ) : System | ||
savePhysicalAssembly | bool | If set to |
disableSignedModule | bool | If set to |
namingScope | INamingScope | Naming scope used to provide unique names to generated types and their members (usually via sub-scopes). |
strongAssemblyName | string | The simple name of the strong-named assembly generated by this |
strongModulePath | string | The path and file name of the manifest module of the strong-named assembly generated by this |
weakAssemblyName | string | The simple name of the weak-named assembly generated by this |
weakModulePath | string | The path and file name of the manifest module of the weak-named assembly generated by this |
return | System |
public ModuleScope ( bool savePhysicalAssembly, bool disableSignedModule, string strongAssemblyName, string strongModulePath, string weakAssemblyName, string weakModulePath ) : System | ||
savePhysicalAssembly | bool | If set to |
disableSignedModule | bool | If set to |
strongAssemblyName | string | The simple name of the strong-named assembly generated by this |
strongModulePath | string | The path and file name of the manifest module of the strong-named assembly generated by this |
weakAssemblyName | string | The simple name of the weak-named assembly generated by this |
weakModulePath | string | The path and file name of the manifest module of the weak-named assembly generated by this |
return | System |
public ObtainDynamicModule ( bool isStrongNamed ) : |
||
isStrongNamed | bool | If set to true, a strong-named module is returned; otherwise, a weak-named module is returned. |
return |
public ObtainDynamicModuleWithStrongName ( ) : |
||
return |
public ObtainDynamicModuleWithWeakName ( ) : |
||
return |
public RegisterInCache ( Castle.DynamicProxy.Generators.CacheKey key, |
||
key | Castle.DynamicProxy.Generators.CacheKey | The key to be associated with the type. |
type | The type to be stored in the cache. | |
return | void |
public SaveAssembly ( bool strongNamed ) : string | ||
strongNamed | bool | True if the generated assembly with a strong name should be saved (see |
return | string |
public static String DEFAULT_ASSEMBLY_NAME | ||
return | String |