Show / Hide Table of Contents

Class ResourcesMonitor<TModel, TContext, TQuery>

Inheritance
object
ResourcesMonitor<TModel, TContext, TQuery>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Exchange
Assembly: PayrollEngine.Client.Core.dll
Syntax
public class ResourcesMonitor<TModel, TContext, TQuery> where TModel : class where TContext : IServiceContext where TQuery : Query, new()
Type Parameters
Name Description
TModel
TContext
TQuery

Constructors

ResourcesMonitor(IReadService<TModel, TContext, TQuery>, TContext, Action<ICollection<TModel>>)

Declaration
public ResourcesMonitor(IReadService<TModel, TContext, TQuery> service, TContext context, Action<ICollection<TModel>> changeHandler)
Parameters
Type Name Description
IReadService<TModel, TContext, TQuery> service
TContext context
Action<ICollection<TModel>> changeHandler

Properties

ChangeHandler

Declaration
public Action<ICollection<TModel>> ChangeHandler { get; }
Property Value
Type Description
Action<ICollection<TModel>>

Context

Declaration
public TContext Context { get; set; }
Property Value
Type Description
TContext

Interval

Declaration
public TimeSpan Interval { get; set; }
Property Value
Type Description
TimeSpan

IsRunning

Declaration
public bool IsRunning { get; }
Property Value
Type Description
bool

MinInterval

Declaration
public static TimeSpan MinInterval { get; }
Property Value
Type Description
TimeSpan

Service

Declaration
public IReadService<TModel, TContext, TQuery> Service { get; }
Property Value
Type Description
IReadService<TModel, TContext, TQuery>

Methods

StartAsync(CancellationToken)

Declaration
public Task StartAsync(CancellationToken token)
Parameters
Type Name Description
CancellationToken token
Returns
Type Description
Task

Extension Methods

ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
☀
☾
Back to top Generated by DocFX