|
@@ -40,20 +40,20 @@ namespace Island.StandardLib
|
|
|
throw new PlayerSocketFatalException("client", PlayerSocketFatalExceptionType.InternalDuplicatePlayerThreadStart);
|
|
|
clientLoop = new Thread(ClientLoop) { IsBackground = true };
|
|
|
clientLoop.Start();
|
|
|
- KeepConnect<int, object>()(default);
|
|
|
+ //KeepConnect<int, object>()(default);
|
|
|
}
|
|
|
|
|
|
- public Func<TIn, TOut> KeepConnect<TIn, TOut>() where TIn : struct where TOut : class
|
|
|
- {
|
|
|
- return t =>
|
|
|
- {
|
|
|
- KeepConnect();
|
|
|
- Func<TOut> func = () =>
|
|
|
- {
|
|
|
- return default(TOut);
|
|
|
- };
|
|
|
- };
|
|
|
- }
|
|
|
+ //public Func<TIn, TOut> KeepConnect<TIn, TOut>() where TIn : struct where TOut : class
|
|
|
+ //{
|
|
|
+ // return t =>
|
|
|
+ // {
|
|
|
+ // KeepConnect();
|
|
|
+ // Func<TOut> func = () =>
|
|
|
+ // {
|
|
|
+ // return default(TOut);
|
|
|
+ // };
|
|
|
+ // };
|
|
|
+ //}
|
|
|
|
|
|
public LoginResult ConnectAsLogin<RequestType>(RequestType request)
|
|
|
where RequestType : ILoginOrRegisterRequest, IStorable, new()
|