Exemple #1
0
 /// <summary>
 /// TCP调用服务端
 /// </summary>
 /// <param name="attribute">TCP调用服务器端配置信息</param>
 /// <param name="verify">TCP验证实例</param>
 public @TypeNameAsynchronous(fastCSharp.setup.cSharp.tcpServer attribute = null, fastCSharp.setup.cSharp.tcpBase.ITcpVerifyAsynchronous verify = null)
     : base(attribute ?? fastCSharp.setup.cSharp.tcpServer.GetConfig("@Attribute.ServiceName", typeof(@type.FullName)), verify /*IF:Attribute.VerifyType*/ ?? new @TcpVerifyType() /*IF:Attribute.VerifyType*/)
 {
     _value_.SetTcpServer(this);
     #region FROMNAME OnCommands
     #endregion FROMNAME OnCommands
 }
Exemple #2
0
 /// <summary>
 /// TCP调用服务端
 /// </summary>
 /// <param name="attribute">TCP调用服务器端配置信息</param>
 /// <param name="verify">TCP验证实例</param>
 public /*PUSH:type*/ @TypeOnlyName/*PUSH:type*/ (fastCSharp.setup.cSharp.tcpServer attribute = null, fastCSharp.setup.cSharp.tcpBase.ITcpVerify verify = null)
     : base(attribute ?? fastCSharp.setup.cSharp.tcpServer.GetConfig("@Attribute.ServiceName", typeof(@type.FullName)), verify /*IF:Attribute.VerifyType*/ ?? new @TcpVerifyType() /*IF:Attribute.VerifyType*/)
 {
     _value_.SetTcpServer(this);
     #region NAME OnCommands
     list <keyValue <hashBytes, keyValue <action <socket, int>, bool> > > .unsafer onCommands = new list <keyValue <hashBytes, keyValue <action <socket, int>, bool> > >(@MethodIndexs.Length + 1).Unsafer;
     onCommands.Add(new keyValue <hashBytes, keyValue <action <socket, int>, bool> >(closeCommandData, new keyValue <action <socket, int>, bool>(new action <socket, int>(close), false)));
     #region LOOP MethodIndexs
     onCommands.Add(new keyValue <hashBytes, keyValue <action <socket, int>, bool> >(formatMethodKeyName("@Method.MethodKeyName"), new keyValue <action <socket, int>, bool>(@MethodIndexName, @IsInputParameter)));
     #endregion LOOP MethodIndexs
     this.onCommands = new staticDictionary <hashBytes, keyValue <action <socket, int>, bool> >(onCommands.List);
     #endregion NAME OnCommands
 }