public void Callback(fastCSharp.setup.cSharp.tcpBase.asynchronousReturn /*IF:MethodIsReturn*/ <@MethodReturnType.GenericParameterType.FullName> /*IF:MethodIsReturn*/ returnValue) { #region IF MethodIsReturn byte[] data = null; if (returnValue.IsReturn) { try { data = (/*NOTE*/ (fastCSharp.setup.cSharp.serialize.ISerialize) /*NOTE*/ new /*NOTE*/ ServiceName./*NOTE*/ @OutputParameterTypeName { @ReturnName = returnValue.Value }).Serialize(); } catch (Exception error) { returnValue.IsReturn = false; fastCSharp.log.Default.Add(error, null, true); } } #endregion IF MethodIsReturn if (returnValue.IsReturn) { Server.send(Socket, Server.receiveCommand, fastCSharp.net.tcpServer.status.Success, Identity /*IF:MethodIsReturn*/, data /*IF:MethodIsReturn*/); } else { Server.send(Socket, socket.Close, fastCSharp.net.tcpServer.status.Error, Identity); } }
protected static void funcAsynchronousInt(fastCSharp.setup.cSharp.tcpBase.asynchronousReturn <int> value) { isReturn = value.IsReturn && value.Value == outputInt; }
protected static void funcAsynchronousString(fastCSharp.setup.cSharp.tcpBase.asynchronousReturn <string> value) { isReturn = value.IsReturn && value.Value == outputString; }
protected static void actionAsynchronousReturn(fastCSharp.setup.cSharp.tcpBase.asynchronousReturn value) { isReturn = value.IsReturn; }