CrossAppDomainCleanUp
Helper class to cleanup locked files and folders after the current AppDomain has been unloaded. (Because of locking they can't be deleted while the current AppDomain is up, see https://github.com/Antaris/RazorEngine/issues/244)
Constructors
Constructor | Description |
new(toWatch, printer)
Signature: (toWatch:AppDomain * printer:IPrinter) -> unit
|
Create a new CrossAppDomainCleanUp object for the current AppDomain. |
Instance members
Instance member | Description |
Dispose()
Signature: unit -> unit
Modifiers: abstract |
Dispose the current instance. |
RegisterCleanupPath(path)
Signature: path:string -> unit
|
Register the given path for cleanup. |
Static members
Static member | Description |
CurrentCleanup
Signature: CrossAppDomainCleanUp
|
A cleanup instance for the current AppDomain |
CurrentPrinter()
Signature: unit -> unit
|
Gets or sets the printer that is used by default when creating new CrossAppDomainCleanUp objects. Do not use this property unless you know what you are doing. Settings this to a serializable object is safe, however setting this to a marshalbyrefobject can lead to errors if the object lives in the domain that is watched for unloading |
FromAssembly(ass)
Signature: ass:Assembly -> StrongName
|
Get the StrongName of the given assembly. Returns: |
RegisterCleanup(item, throwOnDefault)
Signature: (item:string * throwOnDefault:bool) -> unit
|
A helper method to register items to cleanup for the current AppDomain. |