public RequestEventArgs(Request args)
 {
     this.m_request = args;
 }
예제 #2
0
        protected virtual void OnOffline(object sender, EventArgs e)
        {
            if (OffLine != null)
            {
                OffLine(sender, e);
                m_serverRequest = null;
            }

            IsOnline = false;
        }
예제 #3
0
 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));
     }
 }
예제 #4
0
        protected virtual void OnIncomingRequest(object sender, IncomingRequest request)
        {
            if (IncomingRequest != null)
                IncomingRequest(sender, new RequestEventArgs(request));

            this.m_serverRequest = request;
        }