コード例 #1
0
ファイル: StatusService.cs プロジェクト: feimorpheusma/MWS
 private void OnSubscriptionEvent(object sender, SubscriptionEventArgs e)
 {
     if (null != e)
     {
         MySubscriptionSession  session = this.FindSubcribSenssion(e.SessionId);
         SubscriptionEventTypes type    = e.Type;
         if (type != SubscriptionEventTypes.SUBSCRIPTION_OK)
         {
             if (type != SubscriptionEventTypes.UNSUBSCRIPTION_OK)
             {
                 if (type != SubscriptionEventTypes.INCOMING_NOTIFY)
                 {
                 }
             }
             else
             {
                 session.IsConnected = false;
             }
         }
         else
         {
             session.IsConnected = true;
         }
     }
 }
コード例 #2
0
ファイル: Reference.cs プロジェクト: rjudin/opendespatch
 public IntegrationResponse SubscribeEvent(SubscriptionEventTypes eventType, string filter, string callbackUrl)
 {
     object[] results = this.Invoke("SubscribeEvent", new object[] {
         eventType,
         filter,
         callbackUrl
     });
     return((IntegrationResponse)(results[0]));
 }
コード例 #3
0
ファイル: Reference.cs プロジェクト: rjudin/opendespatch
 public IntegrationResponse SubscribePostEvent(SubscriptionEventTypes eventType, string filter, string postUrl, string postParams)
 {
     object[] results = this.Invoke("SubscribePostEvent", new object[] {
         eventType,
         filter,
         postUrl,
         postParams
     });
     return((IntegrationResponse)(results[0]));
 }
コード例 #4
0
 public SubscriptionEventArgs(SubscriptionEventTypes type, long sessionId, short sipCode, string phrase, byte[] content, string contentType, string strFromUri)
 {
     this.type        = type;
     this.sessionId   = sessionId;
     this.sipCode     = sipCode;
     this.phrase      = phrase;
     this.content     = content;
     this.contentType = contentType;
     this.strfromUri  = strFromUri;
 }
コード例 #5
0
 public SubscriptionEventArgs(SubscriptionEventTypes type, short sipCode, String phrase, byte[] content, String contentType, MySubscriptionSession.EVENT_PACKAGE_TYPE package)
     : base()
 {
     this.type = type;
     this.sipCode = sipCode;
     this.phrase = phrase;
     this.content = content;
     this.contentType = contentType;
     this.package = package;
 }
コード例 #6
0
 public SubscriptionEventArgs(SubscriptionEventTypes type, short sipCode, String phrase, byte[] content, String contentType, MySubscriptionSession.EVENT_PACKAGE_TYPE package)
     : base()
 {
     this.type        = type;
     this.sipCode     = sipCode;
     this.phrase      = phrase;
     this.content     = content;
     this.contentType = contentType;
     this.package     = package;
 }
コード例 #7
0
ファイル: Reference.cs プロジェクト: rjudin/opendespatch
 /// <remarks/>
 public void SubscribeEventAsync(SubscriptionEventTypes eventType, string filter, string callbackUrl, object userState)
 {
     if ((this.SubscribeEventOperationCompleted == null))
     {
         this.SubscribeEventOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSubscribeEventOperationCompleted);
     }
     this.InvokeAsync("SubscribeEvent", new object[] {
         eventType,
         filter,
         callbackUrl
     }, this.SubscribeEventOperationCompleted, userState);
 }
コード例 #8
0
 /// <remarks/>
 public void SubscribePostEventAsync(SubscriptionEventTypes eventType, string filter, string postUrl, string postParams, object userState) {
     if ((this.SubscribePostEventOperationCompleted == null)) {
         this.SubscribePostEventOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSubscribePostEventOperationCompleted);
     }
     this.InvokeAsync("SubscribePostEvent", new object[] {
                 eventType,
                 filter,
                 postUrl,
                 postParams}, this.SubscribePostEventOperationCompleted, userState);
 }
コード例 #9
0
 /// <remarks/>
 public void SubscribePostEventAsync(SubscriptionEventTypes eventType, string filter, string postUrl, string postParams) {
     this.SubscribePostEventAsync(eventType, filter, postUrl, postParams, null);
 }
コード例 #10
0
 public IntegrationResponse SubscribePostEvent(SubscriptionEventTypes eventType, string filter, string postUrl, string postParams) {
     object[] results = this.Invoke("SubscribePostEvent", new object[] {
                 eventType,
                 filter,
                 postUrl,
                 postParams});
     return ((IntegrationResponse)(results[0]));
 }
コード例 #11
0
 /// <remarks/>
 public void SubscribeEventAsync(SubscriptionEventTypes eventType, string filter, string callbackUrl) {
     this.SubscribeEventAsync(eventType, filter, callbackUrl, null);
 }
コード例 #12
0
 public IntegrationResponse SubscribeEvent(SubscriptionEventTypes eventType, string filter, string callbackUrl) {
     object[] results = this.Invoke("SubscribeEvent", new object[] {
                 eventType,
                 filter,
                 callbackUrl});
     return ((IntegrationResponse)(results[0]));
 }
コード例 #13
0
ファイル: Reference.cs プロジェクト: rjudin/opendespatch
 /// <remarks/>
 public void SubscribePostEventAsync(SubscriptionEventTypes eventType, string filter, string postUrl, string postParams)
 {
     this.SubscribePostEventAsync(eventType, filter, postUrl, postParams, null);
 }
コード例 #14
0
ファイル: Reference.cs プロジェクト: rjudin/opendespatch
 /// <remarks/>
 public void SubscribeEventAsync(SubscriptionEventTypes eventType, string filter, string callbackUrl)
 {
     this.SubscribeEventAsync(eventType, filter, callbackUrl, null);
 }