예제 #1
0
        private void ProccessUnsubscribe(AcceptedRequest tu, IncomingMessageEx request)
        {
            var writer = GetWriter();

            var dialog = dialogManager.Get(request.Reader);

            if (dialog != null)
            {
                writer.WriteResponse(request.Reader, StatusCodes.OK, dialog.LocalTag);
                dialogManager.Remove(dialog.Id);
            }
            else
            {
                writer.WriteResponse(request.Reader, StatusCodes.OK);
            }

            tu.SendResponse(request, writer);
        }
예제 #2
0
 private void SimpleModule_SubscriptionRemovedEvent(string subscriptionId)
 {
     dialogManager.Remove(new ByteArrayPart(subscriptionId));
 }