Show / Hide Table of Contents

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 Source

DynamicLibrary

Gets the dynamic library instance.

Declaration
public TDynamicLibrary DynamicLibrary { get; }
Property Value
Type Description
TDynamicLibrary
| Improve this Doc View Source

LibraryState

Gets the library state instance.

Declaration
public TLibraryState LibraryState { get; }
Property Value
Type Description
TLibraryState

Methods

| Improve this Doc View Source

Dispose()

Disposes the instance, that is, releases the acquired read-lock to the state of the library.

Declaration
public void Dispose()

Implements

System.IDisposable
  • Improve this Doc
  • View Source
Back to top Copyright © 2017-2019 Juha Lähteenmäki
Generated by DocFX