Base interface for classes that provide a lifecycle state.
interface
|
ILifecycleState
|
base of
|
IDisposable
|
See also:
LifecycleStateReturns the lifecycle state of this object.
property
|
LifecycleState
{
get
}
|
||
type
|
LifecycleState
|
||
value
|
The lifecycle state. |
Asserts that the given object is in the Created state.
method
|
AssertCreated
(string source)
|
||
params
|
source
|
Error source tag. |
Remarks:
Use this method to assert that an object is valid and must be initialized later.
Asserts that the given object is either in the Created or in the Initialized state.
method
|
AssertCreatedOrInitialized
(string source)
|
||
params
|
source
|
Error source tag. |
Remarks:
Use this method to assert that an object is valid and might have to be initialized later.
Asserts that the given object is valid.
method
|
AssertValid
(string source)
|
||
params
|
source
|
Error source tag. |
Remarks:
An object is considered valid if it is in one of the following lifecycle states:
Is this object valid (see remarks)?
method
|
IsValid
()
|
||
type
|
bool
|
||
returns
|
true
if
the
object
is
valid,
false
if
not. |
Remarks:
An object is considered valid if it is in one of the following lifecycle states: