Constructor SharedResource
SharedResource(Func<T>)
Initializes a new instance of the SharedResource<T> class.
Declaration
public SharedResource(Func<T> factory)
Parameters
Type | Name | Description |
---|---|---|
Func<T> | factory | A factory function that creates new instances of the shared resource. |