Cached |
public struct CachedService<T, U> where T : class, U
The CachedServiceT, U type exposes the following members.
Name | Description | |
---|---|---|
CachedServiceT, U | Initializes a new instance of the CachedServiceT, U struct. |
Name | Description | |
---|---|---|
Instance | Gets the service that is cached here. | |
RequiredInstance | Gets the service that is cached here. An InvalidOperationException is thrown if the service could not be retrieved. |
Name | Description | |
---|---|---|
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType) | |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
StartCaching | Starts the caching of the service. Call this method if the service itself is not needed (so there is no need to use Instance), but the methods to attach the service and detach the service should be called. | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType) |
Name | Description | |
---|---|---|
(CachedServiceT, U to T) | Performs an implicit conversion from CachedServiceT, U to the service T. |