Class TooltipPartCacheKey
Servers as a key for lookup in tooltip part cache on both server and client.
Given this key, cached content of a tooltip part can be retrieved from cache, if it is present.
Inheritance
System.Object
TooltipPartCacheKey
Assembly: Eco.Shared.dll
public sealed class TooltipPartCacheKey : ValueType, IEquatable<TooltipPartCacheKey>
Constructors
Declaration
public TooltipPartCacheKey(int partId, int viewId, TooltipOrigin origin)
Parameters
Type |
Name |
Description |
System.Int32 |
partId |
ControllerID of tooltip part.
|
System.Int32 |
viewId |
ControllerID of view for which tooltip part content was generated or 0, depending on the cache mode used.
|
TooltipOrigin |
origin |
TooltipOrigin for which tooltip part content was generated.>
|
Declaration
public TooltipPartCacheKey(int partId, int viewId, TooltipOrigin origin, CacheAs cacheMode)
Parameters
Type |
Name |
Description |
System.Int32 |
partId |
|
System.Int32 |
viewId |
|
TooltipOrigin |
origin |
|
CacheAs |
cacheMode |
|
Fields
Declaration
public readonly TooltipOrigin Origin
Field Value
ControllerID of tooltip part.
Declaration
public readonly int PartId
Field Value
Type |
Description |
System.Int32 |
|
ControllerID of view for which tooltip part content was generated or 0, depending on the cache mode used.
Declaration
public readonly int ViewId
Field Value
Type |
Description |
System.Int32 |
|
Methods
Declaration
public bool Equals(TooltipPartCacheKey other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Operators
Declaration
public static bool operator ==(TooltipPartCacheKey left, TooltipPartCacheKey right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(TooltipPartCacheKey left, TooltipPartCacheKey right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<>
Extension Methods