Exemplo n.º 1
0
        /// <summary>
        /// Sends a UnsubscribeNotification message to a store.
        /// </summary>
        /// <param name="requestUuid">The request identifier.</param>
        /// <returns>The message identifier.</returns>
        public long UnsubscribeNotification(Guid requestUuid)
        {
            var header = CreateMessageHeader(Protocols.StoreNotification, MessageTypes.StoreNotification.UnsubscribeNotification);

            var cancelNotification = new UnsubscribeNotification
            {
                RequestUuid = requestUuid.ToUuid()
            };

            return(Session.SendMessage(header, cancelNotification));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Handles the UnsubscribeNotification message from a customer.
 /// </summary>
 /// <param name="header">The message header.</param>
 /// <param name="request">The UnsubscribeNotification message.</param>
 protected virtual void HandleUnsubscribeNotification(IMessageHeader header, UnsubscribeNotification request)
 {
     Notify(OnUnsubscribeNotification, header, request);
 }