Generated by DocFX

Class Automation

This class is responsible for managing and executing automations. Automations are a set of conditions and actions that should happen automatically under certain circumstances. The AutomationService takes in dependencies for:

  • IAutomationManager: This manages getting a list of defined automations
  • IOptions: This provides configuration options
  • ILogger: This is used for logging It has a method called RefreshAutomationsAsync() which will call the IAutomationManager to get an updated list of all automations that are defined. The ValidateConditionsAsync method takes an automation and a value, and checks if all the conditions defined in that automation evaluate to true for the provided value.This determines if the automation should execute based on the conditions. The ExecuteAsync method takes an automation, a value, and a cancellation token. It will execute the series of actions defined in the automation one by one until complete or cancelled.The actions transform the provided value in some way to accomplish the purpose of the automation. Overall, this class handles getting the defined automations, evaluating if an automation should execute based on conditions, and then executing the actions of an automation if triggered.It provides the core logic to enable automations in an application.
Inheritance
System.Object
ObservableClass
Automation
Implements
IObservableClass
IBindable
INotifyPropertyChanged
IDisposable
IDataErrorInfo
INotifyDataErrorInfo
Inherited Members
ObservableClass.AutomaticValidationTrigger
ObservableClass.Properties
ObservableClass.Validator
ObservableClass.IsDirty
ObservableClass.IsValid
ObservableClass.Equals(Object)
ObservableClass.GetHashCode()
ObservableClass.GetValue<T>(String)
ObservableClass.SetValue<T>(T, String)
ObservableClass.SetValue<T>(T, T, String)
ObservableClass.ClearErrors()
ObservableClass.Validate(Boolean)
ObservableClass.Revert()
ObservableClass.MarkAsClean()
ObservableClass.AddValidationError(String, String)
ObservableClass.Errors
ObservableClass.Error
ObservableClass.Item[String]
ObservableClass.ErrorsChanged
ObservableClass.OnErrorsChanged(String)
ObservableClass.GetErrors(String)
ObservableClass.HasErrors
ObservableClass.PropertyChanged
ObservableClass.OnPropertyChanged(String)
ObservableClass.Dispose()
ObservableClass.Dispose(Boolean)
Namespace: ISynergy.Framework.Automations
Assembly: ISynergy.Framework.Automations.dll
Syntax
public class Automation : ObservableClass, IObservableClass, IBindable

Constructors

View Source

Automation()

Default constructor for Automation.

Declaration
public Automation()

Properties

View Source

Actions

Gets or sets the Actions property value.

Declaration
public ObservableCollection<IAction> Actions { get; set; }
Property Value
Type Description
ObservableCollection<IAction>
View Source

AutomationId

Gets or sets the AutomationId property value.

Declaration
public Guid AutomationId { get; }
Property Value
Type Description
Guid
View Source

Conditions

Gets or sets the Conditions property value.

Declaration
public ObservableCollection<ICondition> Conditions { get; set; }
Property Value
Type Description
ObservableCollection<ICondition>
View Source

Description

Gets or sets the Description property value.

Declaration
public string Description { get; set; }
Property Value
Type Description
System.String
View Source

ExecutionTimeout

Gets or sets the Excecution Timeout property value.

Declaration
public TimeSpan ExecutionTimeout { get; set; }
Property Value
Type Description
TimeSpan
View Source

IsActive

Gets or sets the IsActive property value.

Declaration
public bool IsActive { get; set; }
Property Value
Type Description
System.Boolean
View Source

Mode

Gets or sets the Mode property value.

Declaration
public RunModes Mode { get; set; }
Property Value
Type Description
RunModes
View Source

Name

Gets or sets the Name property value.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String
View Source

Triggers

Gets or sets the Triggers property value.

Declaration
public ObservableCollection<object> Triggers { get; set; }
Property Value
Type Description
ObservableCollection<System.Object>

Implements

IObservableClass
IBindable
INotifyPropertyChanged
IDisposable
IDataErrorInfo
INotifyDataErrorInfo

Extension Methods

Matrix.Replace<T>(T, Object, Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
EntityBaseExtensions.HasProperty(Object, String)
ArrayExtensions.Concatenate<T>(T, T[])
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>)
ObjectExtensions.Clone<T>(T)
ObjectExtensions.To<T>(Object)
ObjectExtensions.To(Object, Type)
ObjectExtensions.HasMethod(Object, String)
ObjectExtensions.AddressOf<T>(T)
ReflectionExtensions.GetIdentityValue<T>(T)
ReflectionExtensions.GetIdentityValue<T, TResult>(T)
ReflectionExtensions.GetIdentityProperty<T>(T)
ReflectionExtensions.HasIdentityProperty<T>(T)
ReflectionExtensions.GetPropertyValue<T, TResult>(T, String, TResult)
ReflectionExtensions.GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)
ReflectionExtensions.GetTitleValue<T>(T)
ReflectionExtensions.HasParentIdentityProperty<T>(T)
ReflectionExtensions.GetParentIdentityProperty<T>(T)
ReflectionExtensions.IsFreeApplication<T>(T)