public RequestEventArgs(Request args) { this.m_request = args; }
protected virtual void OnOffline(object sender, EventArgs e) { if (OffLine != null) { OffLine(sender, e); m_serverRequest = null; } IsOnline = false; }
protected virtual void OnOutgoingRequest(object sender, PhoneNumber target) { if (OutgoingConnection != null) { this.m_serverRequest = new OutgoingRequest(this.PhoneNumber, target); OutgoingConnection(sender, new RequestEventArgs(this.m_serverRequest)); } }
protected virtual void OnIncomingRequest(object sender, IncomingRequest request) { if (IncomingRequest != null) IncomingRequest(sender, new RequestEventArgs(request)); this.m_serverRequest = request; }