Represents an IAssembly
- Inheritance:
-
object
Assembly
Repository objectBase
- Implements:
-
IAssembly
Repository
Constructors
FileBasedAssemblyRepository(string)
Initializes a new instance of the FileBasedAssemblyRepository
class.
Parameter | Type | Description |
---|---|---|
cachePath | string | The path to use for assembly and documentation cache files. |
Properties
CachePath
Gets or sets the path to use for assembly and documentation cache files.
Property Value
- string:
The path to use for assembly and documentation cache files.
SyncRoot
Gets an object that can be used to synchronize access to the repository.
Property Value
- object:
An object that can be used to synchronize access to the repository.
Methods
Add(IBinaryAssembly)
Adds a reference to an IBinary
Parameter | Type | Description |
---|---|---|
assembly | IBinary |
The IBinary |
Remarks
The specified assembly will be tracked while there are remaining references to it. While tracked, the various Load(string) methods will return the already-loaded instance when appropriate.
Create(Assembly, IAssemblyName, IBinaryAssemblyMetadata)
Creates a new IBinaryAssembly
.
Parameter | Type | Description |
---|---|---|
assembly | Assembly | The |
assemblyName | IAssembly |
The IAssembly |
metadata | IBinary |
The assembly metadata. |
Returns
GetOrCreate(Assembly, IAssemblyName, string)
Gets an existing or creates a new IBinaryAssembly
.
Parameter | Type | Description |
---|---|---|
assembly | Assembly | The |
assemblyName | IAssembly |
The IAssembly |
location | string | The assembly location, if known. |
Returns
PruneCache()
Deletes any cache-related files in the Cache
Remarks
Call this method upon the shutdown of your application to ensure out-of-date cache files aren't retained.
Remove(IBinaryAssembly)
Removes a reference to an IBinary
Parameter | Type | Description |
---|---|---|
assembly | IBinary |
The IBinary |
Remarks
When no references remain for the assembly, it will no longer be tracked.
Inherited Members
-
Assembly
Repository Base. Load(Assembly) -
Assembly
Repository Base. Load(Assembly, IAssembly Name) -
Assembly
Repository Base. Load(string) -
Assembly
Repository Base. Load From(string) -
object.
Get Type() -
object.
Memberwise Clone() -
object.
To String() -
object.
Equals(object) -
object.
Equals(object, object) -
object.
Reference Equals(object, object) -
object.
Get Hash Code()