Generated by DocFX

Interface IActionManager

Repository manager for Scheduled and Delayed actions.

Namespace: ISynergy.Framework.Automations.Abstractions
Assembly: ISynergy.Framework.Automations.dll
Syntax
public interface IActionManager

Methods

View Source

AddAsync(IAction)

Declaration
Task<bool> AddAsync(IAction automationQueue)
Parameters
Type Name Description
IAction automationQueue
Returns
Type Description
Task<System.Boolean>
View Source

GetFirstUpcomingTaskAsync()

Declaration
Task<IAction> GetFirstUpcomingTaskAsync()
Returns
Type Description
Task<IAction>
View Source

GetItemAsync(Guid)

Declaration
Task<IAction> GetItemAsync(Guid actionId)
Parameters
Type Name Description
Guid actionId
Returns
Type Description
Task<IAction>
View Source

GetItemsAsync(Boolean)

Get all scheduled and delayes actions. Default: only non-executed ones.

Declaration
Task<List<IAction>> GetItemsAsync(bool onlyActive = true)
Parameters
Type Name Description
System.Boolean onlyActive
Returns
Type Description
Task<List<IAction>>
View Source

GetTimePreviousCompletedTaskAsync(Guid)

Gets the time of the previous completed task in this Automation.

Declaration
Task<DateTimeOffset?> GetTimePreviousCompletedTaskAsync(Guid automationId)
Parameters
Type Name Description
Guid automationId
Returns
Type Description
Task<System.Nullable<DateTimeOffset>>
View Source

RemoveAsync(Guid)

Declaration
Task<bool> RemoveAsync(Guid actionId)
Parameters
Type Name Description
Guid actionId
Returns
Type Description
Task<System.Boolean>
View Source

SetActionExcecutedAsync(Guid)

Sets the action as executed and saves the time it finished execution.

Declaration
Task SetActionExcecutedAsync(Guid actionId)
Parameters
Type Name Description
Guid actionId
Returns
Type Description
Task
View Source

UpdateAsync(IAction)

Declaration
Task<bool> UpdateAsync(IAction automationQueue)
Parameters
Type Name Description
IAction automationQueue
Returns
Type Description
Task<System.Boolean>

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)