public ClientSideMessageProcessor(ServerConnection connection, History history)
        {
            ServerConnection = connection;
            History = history;
            ServerConnection.MessageRecieved += ConnectionMessageRecieved;

            // I wish there were a public constructor for TraceListenerCollection, but there is not
            ConstructorInfo constructor = typeof(TraceListenerCollection).GetConstructor(
                BindingFlags.Instance | BindingFlags.NonPublic, null, new Type[] { }, null);
            ChatListeners = (TraceListenerCollection)constructor.Invoke(new object[0] { });
        }
示例#2
0
 void Login(ServerConnection sc)
 {
     sc.Login(userString, hashString);
     sc.PossessMobile(App.Rand.Next());
 }
示例#3
0
 public WorldViewModel(ServerConnection connection)
 {
     ServerConnection = connection;
     Bindings = new InputBindings();
     Navigation = new WorldNavigation();
 }