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); }
private void SimpleModule_SubscriptionRemovedEvent(string subscriptionId) { dialogManager.Remove(new ByteArrayPart(subscriptionId)); }