ILifecycleState
Extensions
AssertCreated
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.
AssertCreatedOrInitialized
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.
AssertValid
Asserts that the given object is valid.
An object is considered valid if it is in one of the following lifecycle states:
-
LifecycleState.Disposing: the IDisposable.Dispose method is being called.
IsValid
Is this object valid (see remarks)?
An object is considered valid if it is in one of the following lifecycle states:
-
LifecycleState.Disposing (the IDisposable.Dispose method is being called).