Skip to content

Class IRInvocation<TCaptures, TDelegate, TReturn>

Namespace: DotBoxD.Abstractions
Assembly: DotBoxD.Abstractions.dll

Public carrier for a generated anonymous server invocation whose delegate is paired with an explicit capture bag.

public sealed class IRInvocation<TCaptures, TDelegate, TReturn> where TCaptures : class where TDelegate : Delegate

TCaptures

TDelegate

TReturn

objectIRInvocation<TCaptures, TDelegate, TReturn>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

public Func<TCaptures, TDelegate, ReadOnlyMemory<byte>, TReturn> DecodeResult { get; }

Func<TCaptures, TDelegate, ReadOnlyMemory<byte>, TReturn>

public Func<TCaptures, TDelegate, byte[]> EncodeArguments { get; }

Func<TCaptures, TDelegate, byte[]>

public Func<object> PackageFactory { get; }

Func<object>

public string PluginId { get; }

string

FromGenerated(string, Func<object>, Func<TCaptures, TDelegate, byte[]>, Func<TCaptures, TDelegate, ReadOnlyMemory<byte>, TReturn>)

Section titled “ FromGenerated(string, Func<object>, Func<TCaptures, TDelegate, byte[]>, Func<TCaptures, TDelegate, ReadOnlyMemory<byte>, TReturn>)”
public static IRInvocation<TCaptures, TDelegate, TReturn> FromGenerated(string pluginId, Func<object> packageFactory, Func<TCaptures, TDelegate, byte[]> encodeArguments, Func<TCaptures, TDelegate, ReadOnlyMemory<byte>, TReturn> decodeResult)

pluginId string

packageFactory Func<object>

encodeArguments Func<TCaptures, TDelegate, byte[]>

decodeResult Func<TCaptures, TDelegate, ReadOnlyMemory<byte>, TReturn>

IRInvocation<TCaptures, TDelegate, TReturn>