ILifecycleState

Description

interface Tinman.Core.ILifecycleState

Extended by

IDisposable

Base interface for classes that provide a lifecycle state.

See also

LifecycleState

Public / Attributes

Lifecycle​State


public attribute LifecycleState → (get)

value : LifecycleState

The lifecycle state.

Returns the lifecycle state of this object.

Extensions

Assert​Created


public static method AssertCreated → (1)

source in : string

Error source tag.

Asserts that the given object is in the LifecycleState.Created state.

Use this method to assert that an object is valid and must be initialized later.

Assert​Created​Or​Initialized


public static method AssertCreatedOrInitialized → (1)

source in : string

Error source tag.

Asserts that the given object is either in the LifecycleState.Created or in the LifecycleState.Initialized state.

Use this method to assert that an object is valid and might have to be initialized later.

Assert​Valid


public static method AssertValid → (1)

source in : string

Error source tag.

Asserts that the given object is valid.

An object is considered valid if it is in one of the following lifecycle states:

Is​Valid


public static method IsValid → ()

returns → bool

true if the object is valid, false if not.

Is this object valid (see remarks)?

An object is considered valid if it is in one of the following lifecycle states: