Table of Contents

Class ExpiringDisposableObject<T>

Namespace
Root
Assembly
SPZGameAssembly.dll
public class ExpiringDisposableObject<T> : IExpiringResource where T : class, IDisposable

Type Parameters

T
Inheritance
object
ExpiringDisposableObject<T>
Implements
Extension Methods

Constructors

ExpiringDisposableObject(IResourceLifetime)

public ExpiringDisposableObject(IResourceLifetime lifetime)

Parameters

lifetime IResourceLifetime

Properties

HasValue

public bool HasValue { get; }

Property Value

bool

LastUsed

public double LastUsed { get; }

Property Value

double

Lifetime

public IResourceLifetime Lifetime { get; }

Property Value

IResourceLifetime

Name

public string Name { get; }

Property Value

string

Methods

Assign(T)

public void Assign(T value)

Parameters

value T

Clear()

public void Clear()

Dispose()

public void Dispose()

OnExpire()

public void OnExpire()

TryGet(out T)

public bool TryGet(out T result)

Parameters

result T

Returns

bool