Click or drag to resize

CachedServiceT, U Structure

Structure that caches a service provided by Current. It monitors if the services in Current change, and will then update the cached service.
Inheritance Hierarchy
SystemObject
  SystemValueType
    Altaxo.Main.ServicesCachedServiceT, U

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public struct CachedService<T, U>
where T : class, U

Type Parameters

T
Primary type under which to search for the service in Current.
U
Secondary type (usually an interface type) under which to search for the service in Current.

The CachedServiceT, U type exposes the following members.

Constructors
 NameDescription
Public methodCachedServiceT, U Initializes a new instance of the CachedServiceT, U struct.
Top
Properties
 NameDescription
Public propertyInstance Gets the service that is cached here.
Public propertyRequiredInstance Gets the service that is cached here. An InvalidOperationException is thrown if the service could not be retrieved.
Top
Methods
 NameDescription
Public methodEqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
Public methodGetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStartCachingStarts 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.
Public methodToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)
Top
Operators
 NameDescription
Public operatorStatic member(CachedServiceT, U to T) Performs an implicit conversion from CachedServiceT, U to the service T.
Top
See Also