Show / Hide Table of Contents

Class IGameObjectCacheExtensions

Extension methods for IGameObjectCache.

Inheritance
object
IGameObjectCacheExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.GameStateTracker.Cache
Assembly: GameStateTracker.Abstractions.dll
Syntax
public static class IGameObjectCacheExtensions

Methods

View Source

ClearClass(IGameObjectCache, string)

Removes all matching objects from the cache.

Declaration
public static void ClearClass(this IGameObjectCache cache, string className)
Parameters
Type Name Description
IGameObjectCache cache

The cache being extended.

string className

The class name to search for.

View Source

GetClassAge(IGameObjectCache, string?)

Gets the age of a set of objects in the cache.

Declaration
public static TimeSpan? GetClassAge(this IGameObjectCache cache, string? className)
Parameters
Type Name Description
IGameObjectCache cache

The cache being extended.

string className

The class name to search for.

Returns
Type Description
TimeSpan?

The time since the objects were last refreshed.

View Source

GetClassAge(IGameObjectCache, string?, DateTime)

Gets the age of a set of objects in the cache.

Declaration
public static TimeSpan? GetClassAge(this IGameObjectCache cache, string? className, DateTime now)
Parameters
Type Name Description
IGameObjectCache cache

The cache being extended.

string className

The class name to search for.

DateTime now

The current time to compare to.

Returns
Type Description
TimeSpan?

The time since the objects were last refreshed.

View Source

RefreshClass(IGameObjectCache, string)

Updates the age of all matching objects in the cache.

Declaration
public static void RefreshClass(this IGameObjectCache cache, string className)
Parameters
Type Name Description
IGameObjectCache cache

The cache being extended.

string className

The class name to search for.

View Source

RefreshClass(IGameObjectCache, string, DateTime)

Updates the age of all matching objects in the cache.

Declaration
public static void RefreshClass(this IGameObjectCache cache, string className, DateTime now)
Parameters
Type Name Description
IGameObjectCache cache

The cache being extended.

string className

The class name to search for.

DateTime now

The current time to compare to.

  • View Source
In this article
Back to top Generated by DocFX