Show / Hide Table of Contents

Interface IMessage

Сообщение для обмена данными между задачами

Namespace: Scheduler
Assembly: Scheduler.dll
Syntax
public interface IMessage

Properties

DataJson

Данные в формате JSON

Declaration
string DataJson { get; set; }
Property Value
Type Description
System.String

DataObject

Данные в классе Object

Declaration
object DataObject { get; set; }
Property Value
Type Description
System.Object

Error

Ошибка

Declaration
Exception Error { get; set; }
Property Value
Type Description
System.Exception

MsgType

Тип сообщения

Declaration
MsgType MsgType { get; set; }
Property Value
Type Description
MsgType

Methods

GetData<T>()

Получение данных из планировщика

Declaration
T GetData<T>()
Returns
Type Description
T

Данные

Type Parameters
Name Description
T

Тип получаемых данных

SendData<T>(T)

Отправка данных в планировщик

Declaration
IMessage SendData<T>(T data)
Parameters
Type Name Description
T data

Данные

Returns
Type Description
IMessage
Type Parameters
Name Description
T

Тип передаваемых данных

SendError(MsgType, Exception)

Отправить сообщение об ошибке в планировщик

Declaration
IMessage SendError(MsgType type, Exception ex)
Parameters
Type Name Description
MsgType type

Тип сообщения

System.Exception ex

Ошибка

Returns
Type Description
IMessage
In This Article
Back to top Generated by DocFX