예제 #1
0
 public void Dispose()
 {
     if (Client != null)
         Client.Logout();
     Factory.Close();
     Universe = null;
 }
예제 #2
0
 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);
 }