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);
 }
        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._Center = new Game.Storage.Center(this);

            _BinderProvider = _Center;
        }
 private void _BuildUser()
 {
     if (this._IsIpAddress(this._StorageVerifyData.IPAddress))
     {
         this._Storage     = new Storage.User.Proxy(new Storage.User.RemotingFactory(_Protocol, _Client));
         this._StorageUser = this._Storage.SpawnUser("user");
     }
     else
     {
         var center = new Game.Storage.Center(new Game.DummyFrature());
         this._Updater.Add(center);
         var factory = new Storage.User.StandaloneFactory(center, _Protocol);
         this._Storage     = new Storage.User.Proxy(factory);
         this._StorageUser = this._Storage.SpawnUser("user");
     }
 }
Exemple #4
0
        private void _BuildUser()
        {
            if (this._IsIpAddress(this._StorageVerifyData.IPAddress))
            {
                throw new NotImplementedException();
                //this._Storage = new Storage.User.Proxy(new Storage.User.RemoteFactory(_Protocol,_Provider));
                //this._StorageUser = this._Storage.SpawnUser("user");
            }
            else
            {
                _StorageVerifyData.IPAddress = "127.0.0.1";
                var center = new Game.Storage.Center(new Game.DummyFrature());
                this._Updater.Add(center);
                var protocol = System.Activator.CreateInstance(Regulus.Remote.Protocol.ProtocolProvider.GetProtocols().Single()) as IProtocol;

                var factory = new Storage.User.StandaloneFactory(center, protocol);
                this._Storage     = new Storage.User.Proxy(factory);
                this._StorageUser = this._Storage.SpawnUser("user");
            }
        }
 private void _BuildUser()
 {
     if (this._IsIpAddress(this._StorageVerifyData.IPAddress))
     {
         this._Storage = new Storage.User.Proxy(new Storage.User.RemotingFactory());
         this._StorageUser = this._Storage.SpawnUser("user");
     }
     else
     {
         var center = new Game.Storage.Center(new Game.DummyFrature());
         this._Updater.Add(center);
         var factory = new Storage.User.StandaloneFactory(center);
         this._Storage = new Storage.User.Proxy(factory);
         this._StorageUser = this._Storage.SpawnUser("user");
     }
 }