Пример #1
0
 void Start()
 {
     PLogger.StartLogging(true);
     ArchManager = new PArchManager();
     ArchManager.Read();
     UserManager = new PUserManager();
     UserManager.Read();
     #region 初始化地图库
     string   MapDirectory = PPath.GetPath("Data\\Maps");
     string[] MapFileNames = Directory.GetFiles(MapDirectory, "*.xml");
     MapList = new List <PMap>();
     foreach (string MapFileName in MapFileNames)
     {
         MapList.Add(new PMap(MapFileName));
     }
     #endregion
 }
Пример #2
0
 public MeController(PUserManager userStore)
 {
     UserStore = userStore;
 }
 public ManageController(PUserManager userStore, PSignInManager signInManager)
 {
     UserStore = userStore;
     SignInManager = signInManager;
 }
        protected override void Dispose(bool disposing)
        {
            if (disposing && _userStore != null)
            {
                _userStore.Dispose();
                _userStore = null;
            }

            base.Dispose(disposing);
        }
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_userStore != null)
                {
                    _userStore.Dispose();
                    _userStore = null;
                }

                if (_signInManager != null)
                {
                    _signInManager.Dispose();
                    _signInManager = null;
                }
            }

            base.Dispose(disposing);
        }