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"); } }
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"); } }