Class DynamicLibraryContext<TDynamicLibrary, TLibraryState>
Defines a class that simplifies the implementation of dynamic library services. The class acquires a read-lock to the state of the dynamic library and provides access both to the handle and state of the library. In other words, the class saves a developer of a dynamic library from storing the instances of the current handle and state within the library.
Inheritance
System.Object
DynamicLibraryContext<TDynamicLibrary, TLibraryState>
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Juhta.Net.Startup
Assembly: Juhta.Net.Startup.dll
Syntax
public class DynamicLibraryContext<TDynamicLibrary, TLibraryState> : IDisposable where TDynamicLibrary : IDynamicLibrary where TLibraryState : ILibraryState
Type Parameters
Name | Description |
---|---|
TDynamicLibrary | Specifies a dynamic library type. |
TLibraryState | Specifies a library state type. |
Properties
| Improve this Doc View SourceDynamicLibrary
Gets the dynamic library instance.
Declaration
public TDynamicLibrary DynamicLibrary { get; }
Property Value
Type | Description |
---|---|
TDynamic |
LibraryState
Gets the library state instance.
Declaration
public TLibraryState LibraryState { get; }
Property Value
Type | Description |
---|---|
TLibrary |
Methods
| Improve this Doc View SourceDispose()
Disposes the instance, that is, releases the acquired read-lock to the state of the library.
Declaration
public void Dispose()
Implements
System.IDisposable