public Logic.Logic(string id, object sender = null)
Creates a new Logic instance using the supplied arguments.
idstring- Specifies id.
senderobject- Specifies sender. Optional; the default is shown in the signature.
Describe a named logic request passed between components. The receiving component decides whether it can handle the request.
Namespace: DreamPoeBot.Loki.Bot
public class LogicView DPB1 version →public Logic.Logic(string id, object sender = null)
Creates a new Logic instance using the supplied arguments.
idstringsenderobjectpublic Logic.Logic(string id, object sender, params dynamic[] input)
Creates a new Logic instance using the supplied arguments.
idstringsenderobjectinputdynamic[]public void Logic.AddInput<T>(T input, string name)
Adds input using the supplied arguments.
inputTnamestringpublic void Logic.AddInputs(params dynamic[] input)
Adds inputs using the supplied arguments.
inputdynamic[]public void Logic.AddOutput<T>(ILogicProvider handler, T output, string name = "")
Adds output using the supplied arguments.
handlerILogicProvideroutputTnamestringpublic void Logic.AddOutputs(ILogicProvider handler, params dynamic[] output)
Adds outputs using the supplied arguments.
handlerILogicProvideroutputdynamic[]public T Logic.GetInput<T>(int index = 0)
Returns input using the supplied arguments.
indexintReturns: The T result.
public T Logic.GetInput<T>(string name)
Returns input using the supplied arguments.
namestringReturns: The T result.
public T Logic.GetOutput<T>(int index = 0)
Returns output using the supplied arguments.
indexintReturns: The T result.
public T Logic.GetOutput<T>(string name)
Returns output using the supplied arguments.
namestringReturns: The T result.
public bool Logic.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 Logic.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 Logic.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 Logic.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 Logic.Id { get; }
Gets id for Logic.
public IReadOnlyList<Tuple<object, string>> Logic.Inputs { get; }
Gets the inputs collection. Its element types are linked below.
public IReadOnlyList<Tuple<ILogicProvider, object, string>> Logic.Outputs { get; }
Gets the outputs collection. Its element types are linked below.
public object Logic.Sender { get; }
Gets sender for Logic.
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.