// <auto-generated> // Generated by the CoreWCF.BuildTools.OperationInvokerGenerator source generator. DO NOT EDIT! // </auto-generated> #nullable disable using System; using System.Threading.Tasks; namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] file sealed class ModuleInitializerAttribute : Attribute { } } namespace CoreWCF.Dispatcher { // This class is used to invoke the method NamedPipeConnectionTests.IEchoService.Echo(string). file sealed class OperationInvoker0 : CoreWCF.Dispatcher.IOperationInvoker { public ValueTask<(object returnValue, object[] outputs)> InvokeAsync(object instance, object[] inputs) { string p0; p0 = inputs[0] == null ? default(string) : (string)inputs[0]; var result = ((NamedPipeConnectionTests.IEchoService)instance).Echo(p0); var outputs = AllocateOutputs(); return new ValueTask<(object, object[])>((result, outputs)); } public object[] AllocateInputs() => new object[1]; private object[] AllocateOutputs() => Array.Empty<object>(); internal static void RegisterOperationInvoker() => CoreWCF.Dispatcher.DispatchOperationRuntimeHelpers.RegisterOperationInvoker("NamedPipeConnectionTests.IEchoService.Echo(string)", new OperationInvoker0()); } } namespace CoreWCF.Dispatcher { // This class is used to invoke the method NamedPipeConnectionTests.IEchoService.Echo(string). file sealed class OperationInvoker1 : CoreWCF.Dispatcher.IOperationInvoker { public ValueTask<(object returnValue, object[] outputs)> InvokeAsync(object instance, object[] inputs) { string p0; p0 = inputs[0] == null ? default(string) : (string)inputs[0]; var result = ((NamedPipeConnectionTests.IEchoService)instance).Echo(p0); var outputs = AllocateOutputs(); return new ValueTask<(object, object[])>((result, outputs)); } public object[] AllocateInputs() => new object[1]; private object[] AllocateOutputs() => Array.Empty<object>(); internal static void RegisterOperationInvoker() => CoreWCF.Dispatcher.DispatchOperationRuntimeHelpers.RegisterOperationInvoker("NamedPipeConnectionTests.IEchoService.Echo(string)", new OperationInvoker1()); } } namespace CoreWCF.Dispatcher { file sealed class OperationInvokerModuleInitializer { [System.Runtime.CompilerServices.ModuleInitializer] internal static void RegisterOperationInvokers() { OperationInvoker0.RegisterOperationInvoker(); OperationInvoker1.RegisterOperationInvoker(); } } } #nullable restore