Interface IProcessHost
Represents the Todo hosting entity
Assembly: Azos.Sky.dll
Syntax
public interface IProcessHost
Properties
InstrumentationEnabled
Returns true if host is instrumented
Declaration
bool InstrumentationEnabled { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
Finalize(Process)
Declaration
void Finalize(Process process)
Parameters
| Type |
Name |
Description |
| Process |
process |
|
LocalDispatch(Signal)
Declaration
ResultSignal LocalDispatch(Signal signal)
Parameters
| Type |
Name |
Description |
| Signal |
signal |
|
Returns
LocalSpawn(Process, Nullable<AuthenticationToken>)
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 LocalSpawn(Process process, AuthenticationToken? token = default(AuthenticationToken? ))
Parameters
Log(MessageType, Process, String, String, Exception, Nullable<Guid>, String)
Emits a local log message based on host's logging policy
Declaration
Guid Log(MessageType type, Process todo, string from, string message, Exception error = null, Guid? relatedMessageID = default(Guid? ), string parameters = null)
Parameters
| Type |
Name |
Description |
| MessageType |
type |
|
| Process |
todo |
|
| System.String |
from |
|
| System.String |
message |
|
| System.Exception |
error |
|
| System.Nullable<System.Guid> |
relatedMessageID |
|
| System.String |
parameters |
|
Returns
| Type |
Description |
| System.Guid |
|
Log(MessageType, String, String, Exception, Nullable<Guid>, String)
Emits a local log message based on host's logging policy
Declaration
Guid Log(MessageType type, string from, string message, Exception error = null, Guid? relatedMessageID = default(Guid? ), string parameters = null)
Parameters
| Type |
Name |
Description |
| MessageType |
type |
|
| System.String |
from |
|
| System.String |
message |
|
| System.Exception |
error |
|
| System.Nullable<System.Guid> |
relatedMessageID |
|
| System.String |
parameters |
|
Returns
| Type |
Description |
| System.Guid |
|
Update(Process, Boolean)
Declaration
void Update(Process process, bool sysOnly = false)
Parameters
| Type |
Name |
Description |
| Process |
process |
|
| System.Boolean |
sysOnly |
|
Extension Methods