Class ALambdaScheduleFunction
The ALambdaScheduleFunction is the abstract base class for handling scheduled events.
Implements
Inherited Members
Namespace: LambdaSharp.Schedule
Assembly: LambdaSharp.Schedule.dll
Syntax
public abstract class ALambdaScheduleFunction : ALambdaFunction, ILambdaSharpLogger
Constructors
ALambdaScheduleFunction()
Initializes a new ALambdaScheduleFunction instance using the default implementation of ILambdaFunctionDependencyProvider.
Declaration
protected ALambdaScheduleFunction()
ALambdaScheduleFunction(ILambdaFunctionDependencyProvider)
Initializes a new ALambdaScheduleFunction instance using a custom implementation of ILambdaFunctionDependencyProvider.
Declaration
protected ALambdaScheduleFunction(ILambdaFunctionDependencyProvider provider)
Parameters
Type | Name | Description |
---|---|---|
ILambdaFunctionDependencyProvider | provider | Custom implementation of ILambdaFunctionDependencyProvider. |
Methods
ProcessEventAsync(LambdaScheduleEvent)
The ProcessEventAsync(LambdaScheduleEvent) method is invoked when a scheduled event occurs.
Declaration
public abstract Task ProcessEventAsync(LambdaScheduleEvent schedule)
Parameters
Type | Name | Description |
---|---|---|
LambdaScheduleEvent | schedule | The LambdaScheduleEvent instance. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The task object representing the asynchronous operation. |
ProcessMessageStreamAsync(Stream)
The ProcessMessageStreamAsync(Stream) method is overridden to provide specific behavior for this base class.
Declaration
public sealed override async Task<Stream> ProcessMessageStreamAsync(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream with the request payload. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.IO.Stream> | The task object representing the asynchronous operation. |
Overrides
Remarks
This method cannot be overridden.