public Message.Message(string id, object sender = null)
Creates a new Message instance using the supplied arguments.
idstring- Specifies id.
senderobject- Specifies sender. Optional; the default is shown in the signature.
Carry a named request and its arguments between components. Read inputs and outputs using the agreed message contract.
Namespace: DreamPoeBot.Loki.Bot
public class MessageView DPB1 version →public Message.Message(string id, object sender = null)
Creates a new Message instance using the supplied arguments.
idstringsenderobjectpublic Message.Message(string id, object sender, params dynamic[] input)
Creates a new Message instance using the supplied arguments.
idstringsenderobjectinputdynamic[]public void Message.AddInput<T>(T input, string name)
Adds input using the supplied arguments.
inputTnamestringpublic void Message.AddInputs(params dynamic[] input)
Adds inputs using the supplied arguments.
inputdynamic[]public void Message.AddOutput<T>(IMessageHandler handler, T output, string name = "")
Adds output using the supplied arguments.
handlerIMessageHandleroutputTnamestringpublic void Message.AddOutputs(IMessageHandler handler, params dynamic[] output)
Adds outputs using the supplied arguments.
handlerIMessageHandleroutputdynamic[]public T Message.GetInput<T>(int index = 0)
Returns input using the supplied arguments.
indexintReturns: The T result.
public T Message.GetInput<T>(string name)
Returns input using the supplied arguments.
namestringReturns: The T result.
public T Message.GetOutput<T>(int index = 0)
Returns output using the supplied arguments.
indexintReturns: The T result.
public T Message.GetOutput<T>(string name)
Returns output using the supplied arguments.
namestringReturns: The T result.
public bool Message.TryGetInput<T>(int index, out T input)
Attempts to retrieve input using the supplied arguments.
indexintinputTReturns: True when the request succeeds; read any out parameters only after checking the result.
public bool Message.TryGetInput<T>(string name, out T input)
Attempts to retrieve input using the supplied arguments.
namestringinputTReturns: True when the request succeeds; read any out parameters only after checking the result.
public bool Message.TryGetOutput<T>(int index, out T input)
Attempts to retrieve output using the supplied arguments.
indexintinputTReturns: True when the request succeeds; read any out parameters only after checking the result.
public bool Message.TryGetOutput<T>(string name, out T output)
Attempts to retrieve output using the supplied arguments.
namestringoutputTReturns: True when the request succeeds; read any out parameters only after checking the result.
public string Message.Id { get; }
Gets id for Message.
public IReadOnlyList<Tuple<object, string>> Message.Inputs { get; }
Gets the inputs collection. Its element types are linked below.
public IReadOnlyList<Tuple<IMessageHandler, object, string>> Message.Outputs { get; }
Gets the outputs collection. Its element types are linked below.
public object Message.Sender { get; }
Gets sender for Message.
DPB2 0.4.5.88 · Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.