Esempio n. 1
0
        internal override void ServerStarted()
        {
            // Connect to World (really just setting up proxy)
            _worldEA = new EndpointAddress("net.tcp://localhost:8000/WorldService");    // TODO: change to pick up an endpoint in the config file
            _worldSvcClientChannel = new ChannelFactory<IWorldService>(new NetTcpBinding(), _worldEA);
            //_worldSvcClient = new WorldService.WorldServiceClient(new NetTcpBinding(), worldEA);

            using (EmuDataContext dbCtx = new EmuDataContext())
            {
                dbCtx.ObjectTrackingEnabled = false;
                _worldServer = dbCtx.WorldServers.Single(p => p.WorldConfigID == 1);
            }

            base.ServerStarted();
        }
 partial void UpdateWorldServer(WorldServer instance);
 partial void DeleteWorldServer(WorldServer instance);
 partial void InsertWorldServer(WorldServer instance);