Interface ITodoHost
Represents the Todo hosting entity
Inherited Members
Namespace: Azos.Sky.Workers
Assembly: Azos.Sky.dll
Syntax
public interface ITodoHost : IApplicationComponent
Properties
InstrumentationEnabled
Returns true if host is instrumented
Declaration
bool InstrumentationEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
LocalEnqueue(Todo)
WARNING: this method should not be used by a typical business code as it enqueues messages locally bypassing all routing and networking stack. This method is used for performance optimization for some limited Todo instances that do not rely on sequencing and sharding and are guaranteed to have a local queue capable of processing this message
Declaration
void LocalEnqueue(Todo todos)
Parameters
Type | Name | Description |
---|---|---|
Todo | todos |
LocalEnqueue(IEnumerable<Todo>)
WARNING: this method should not be used by a typical business code as it enqueues messages locally bypassing all routing and networking stack. This method is used for performance optimization for some limited Todo instances that do not rely on sequencing and sharding and are guaranteed to have a local queue capable of processing this message
Declaration
void LocalEnqueue(IEnumerable<Todo> todos)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Todo> | todos |
LocalEnqueueAsync(IEnumerable<Todo>)
WARNING: this method should not be used by a typical business code as it enqueues messages locally bypassing all routing and networking stack. This method is used for performance optimization for some limited Todo instances that do not rely on sequencing and sharding and are guaranteed to have a local queue capable of processing this message
Declaration
Task LocalEnqueueAsync(IEnumerable<Todo> todos)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Todo> | todos |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |