public static void CheckAndCreateInstance() { if (_instance == null) { _instance = new RpcClassFactory(); } }
public RpcClassFactory() { _instance = this; _table = new ConcurrentDictionary <int, Func <object, ISession, NetDataReader, NetDataWriter, Task> >(); }