public void Dispose() { if (Client != null) Client.Logout(); Factory.Close(); Universe = null; }
public SpaceClient() { Factory = new ChannelFactory<IServer>(GetType().FullName); Client = Factory.CreateChannel(); int version = Client.Connect(Password); if (version != Version) throw new NotSupportedException("Server version mismatch"); Universe = new UniverseView(); ClientData view = Client.GetView(-1); Universe.UpdateData(view); }