Class ResourcesMonitor<TModel, TContext, TQuery>
Inheritance
ResourcesMonitor<TModel, TContext, TQuery>
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
Properties
ChangeHandler
Declaration
public Action<ICollection<TModel>> ChangeHandler { get; }
Property Value
Context
Declaration
public TContext Context { get; set; }
Property Value
| Type |
Description |
| TContext |
|
Interval
Declaration
public TimeSpan Interval { get; set; }
Property Value
IsRunning
Declaration
public bool IsRunning { get; }
Property Value
MinInterval
Declaration
public static TimeSpan MinInterval { get; }
Property Value
Service
Declaration
public IReadService<TModel, TContext, TQuery> Service { get; }
Property Value
Methods
StartAsync(CancellationToken)
Declaration
public Task StartAsync(CancellationToken token)
Parameters
Returns
Extension Methods