public UPnPProtocol(FlowLib.Connections.UPnP connection) { this.MessageReceived = new FmdcEventHandler(OnMessageReceived); this.MessageToSend = new FmdcEventHandler(OnMessageToSend); this.Update = new FmdcEventHandler(OnUpdate); Encoding = System.Text.Encoding.ASCII; con = connection; }
public void Dispose() { if (IsDisposed) { return; } MessageReceived -= OnMessageReceived; MessageToSend -= OnMessageToSend; Update -= OnUpdate; Encoding = null; con = null; IsDisposed = true; }
public void Dispose() { if (IsDisposed) return; MessageReceived -= OnMessageReceived; MessageToSend -= OnMessageToSend; Update -= OnUpdate; Encoding = null; con = null; IsDisposed = true; }