예제 #1
0
 public Server()
 {
     _LogRecorder = new Regulus.Utility.LogFileRecorder("Storage");
     _DefaultAdministratorName = "itisnotagame";
     _Ip = "mongodb://127.0.0.1:27017";
     _Name = "ItIsNotAGame1";
     _Updater = new Regulus.Utility.Updater();
     _Database = new Regulus.NoSQL.Database(_Ip);
     _Center = new Regulus.Project.ItIsNotAGame1.Game.Storage.Center(this);
 }
예제 #2
0
 public Server()
 {
     this._LogRecorder = new LogFileRecorder("Storage");
     this._DefaultAdministratorName = "itisnotagame";
     this._Ip = "mongodb://127.0.0.1:27017";
     this._Name = "ItIsNotAGame1";
     this._Updater = new Updater();
     this._Database = new NoSQL.Database(this._Ip);
     this._Center = new Game.Storage.Center(this);
 }
예제 #3
0
        public Complex()
        {
            _LogRecorder = new LogFileRecorder("Play");

            _StorageVerifyData = new Regulus.CustomType.Verify();
            _FormulaVerifyData = new Regulus.CustomType.Verify();
            _Machine = new StageMachine();
            _Updater = new Updater();

            _BuildParams();
            _BuildUser();
        }
예제 #4
0
        private static void Main(string[] args)
        {
            var recorder = new LogFileRecorder("LogTest");
            Singleton<Log>.Instance.RecordEvent += recorder.Record;

            while(true)
            {

                System.Threading.Tasks.Parallel.For(
                    1,
                    100,
                    (i) =>
                    {
                        Singleton<Log>.Instance.WriteDebug(System.DateTime.Now.ToString());
                        if(System.Console.KeyAvailable)
                            throw new Exception("aaa");
                    });

            }
        }
예제 #5
0
 private void _InitialLog()
 {
     _LogRecorder = new LogFileRecorder("Formula");
     Singleton<Log>.Instance.RecordEvent += _LogRecorder.Record;
 }