Interface ITimerFunctionBuilder
Namespace: FunctionMonkey.Abstractions.Builders
Assembly: FunctionMonkey.Abstractions.dll
Syntax
public interface ITimerFunctionBuilder
Methods
| Improve this Doc View SourceTimer<TCommand>(String)
Creates a Timer function that fires each specified interval with a command created with its default constructor
Declaration
ITimerFunctionOptionsBuilder<TCommand> Timer<TCommand>(string cronExpression)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | cronExpression | The periodicity of the function |
Returns
| Type | Description |
|---|---|
| ITimerFunctionOptionsBuilder<TCommand> | A function builder |
Type Parameters
| Name | Description |
|---|---|
| TCommand | The type of command |
Timer<TCommand, TTimerCommandFactoryType>(String)
Creates a Timer function that fires each specified interval with a command created using the factory
Declaration
ITimerFunctionOptionsBuilder<TCommand> Timer<TCommand, TTimerCommandFactoryType>(string cronExpression)
where TTimerCommandFactoryType : ITimerCommandFactory<TCommand>
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | cronExpression | The periodicity of the function |
Returns
| Type | Description |
|---|---|
| ITimerFunctionOptionsBuilder<TCommand> | A function builder |
Type Parameters
| Name | Description |
|---|---|
| TCommand | The type of command |
| TTimerCommandFactoryType | Factory implementation for the command |