Show / Hide Table of Contents

Class TransitionMonitor

Class monitoring the state of a service transition.

Inheritance
System.Object
TransitionMonitor
TransitionMonitor<TContract>
TransitionMonitor<TContract, TServiceImplementation>
Implements
ITransitionState
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Services.Transitioning
Assembly: Kephas.Core.dll
Syntax
public class TransitionMonitor : ITransitionState

Constructors

| Improve this Doc View Source

TransitionMonitor(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.

| Improve this Doc View Source

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 Source

Exception

Gets the exception in the case the transitioning is faulted.

Declaration
public Exception Exception { get; }
Property Value
Type Description
System.Exception

The exception.

| Improve this Doc View Source

IsCompleted

Gets a value indicating whether the transition is completed.

Declaration
public bool IsCompleted { get; }
Property Value
Type Description
System.Boolean

true if the transition is completed; otherwise, false.

| Improve this Doc View Source

IsCompletedSuccessfully

Gets a value indicating whether the transition is completed succcessfully.

Declaration
public bool IsCompletedSuccessfully { get; }
Property Value
Type Description
System.Boolean

true if the transition is completed succcessfully; otherwise, false.

| Improve this Doc View Source

IsFaulted

Gets a value indicating whether the transition is faulted.

Declaration
public bool IsFaulted { get; }
Property Value
Type Description
System.Boolean

true if the transition is faulted; otherwise, false.

| Improve this Doc View Source

IsInProgress

Gets a value indicating whether the transition is in progress.

Declaration
public bool IsInProgress { get; }
Property Value
Type Description
System.Boolean

true if the transition is in progress; otherwise, false.

| Improve this Doc View Source

IsNotStarted

Gets a value indicating whether the transition is not started.

Declaration
public bool IsNotStarted { get; }
Property Value
Type Description
System.Boolean

true if the transition is not started; otherwise, false.

Methods

| Improve this Doc View Source

AssertIsCompleted()

Asserts that the service is completed.

Declaration
public void AssertIsCompleted()
| Improve this Doc View Source

AssertIsCompletedSuccessfully()

Asserts that the service is completed successfully.

Declaration
public void AssertIsCompletedSuccessfully()
| Improve this Doc View Source

AssertIsInProgress()

Asserts that the service is in progress.

Declaration
public void AssertIsInProgress()
| Improve this Doc View Source

AssertIsNotStarted()

Asserts that the service is not started.

Declaration
public void AssertIsNotStarted()
| Improve this Doc View Source

Complete()

Completes the transition successfully.

Declaration
public void Complete()
| Improve this Doc View Source

Fault(Exception)

Marks the transition as faulted.

Declaration
public void Fault(Exception exception)
Parameters
Type Name Description
System.Exception exception

The exception which occured.

| Improve this Doc View Source

GetServiceName()

Gets service name.

Declaration
protected virtual string GetServiceName()
Returns
Type Description
System.String

The service name.

| Improve this Doc View Source

Reset()

Resets the transition to its initial state.

Declaration
public void Reset()
| Improve this Doc View Source

Start()

Starts the transition.

Declaration
public void Start()

Implements

ITransitionState

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX