private static void Appllication_GetMessage(Appllication.MessageType type, string message) { if (type == Appllication.MessageType.ServerClose) { stop = true; appllication.GetMessage -= Appllication_GetMessage; appllication = null; } Console.WriteLine(type.ToString() + ": " + message); }
public Peer(object peer, INetServer _server, Appllication appllication) : base(peer, _server) { this.appllication = appllication; }