コード例 #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();
        }
コード例 #2
0
 partial void UpdateWorldServer(WorldServer instance);
コード例 #3
0
 partial void DeleteWorldServer(WorldServer instance);
コード例 #4
0
 partial void InsertWorldServer(WorldServer instance);