Class TransitionMonitor
Class monitoring the state of a service transition.
Inheritance
Implements
Inherited Members
Namespace: Kephas.Services.Transitioning
Assembly: Kephas.Core.dll
Syntax
public class TransitionMonitor : ITransitionState
Constructors
| Improve this Doc View SourceTransitionMonitor(String)
Initializes a new instance of the TransitionMonitor class.
Declaration
public TransitionMonitor(string transitionName)
Parameters
Type | Name | Description |
---|---|---|
System.String | transitionName | Name of the transition. |
TransitionMonitor(String, String)
Initializes a new instance of the TransitionMonitor class.
Declaration
public TransitionMonitor(string transitionName, string serviceName)
Parameters
Type | Name | Description |
---|---|---|
System.String | transitionName | Name of the transition. |
System.String | serviceName | Name of the service. |
Properties
| Improve this Doc View SourceException
Gets the exception in the case the transitioning is faulted.
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
System.Exception | The exception. |
IsCompleted
Gets a value indicating whether the transition is completed.
Declaration
public bool IsCompleted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsCompletedSuccessfully
Gets a value indicating whether the transition is completed succcessfully.
Declaration
public bool IsCompletedSuccessfully { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsFaulted
Gets a value indicating whether the transition is faulted.
Declaration
public bool IsFaulted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsInProgress
Gets a value indicating whether the transition is in progress.
Declaration
public bool IsInProgress { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsNotStarted
Gets a value indicating whether the transition is not started.
Declaration
public bool IsNotStarted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
| Improve this Doc View SourceAssertIsCompleted()
Asserts that the service is completed.
Declaration
public void AssertIsCompleted()
AssertIsCompletedSuccessfully()
Asserts that the service is completed successfully.
Declaration
public void AssertIsCompletedSuccessfully()
AssertIsInProgress()
Asserts that the service is in progress.
Declaration
public void AssertIsInProgress()
AssertIsNotStarted()
Asserts that the service is not started.
Declaration
public void AssertIsNotStarted()
Complete()
Completes the transition successfully.
Declaration
public void Complete()
Fault(Exception)
Marks the transition as faulted.
Declaration
public void Fault(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception which occured. |
GetServiceName()
Gets service name.
Declaration
protected virtual string GetServiceName()
Returns
Type | Description |
---|---|
System.String | The service name. |
Reset()
Resets the transition to its initial state.
Declaration
public void Reset()
Start()
Starts the transition.
Declaration
public void Start()