/// <summary>
        /// Sends a RequestPartNotification message to a store.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>The message identifier.</returns>
        public long RequestPartNotification(NotificationRequestRecord request)
        {
            var header = CreateMessageHeader(Protocols.GrowingObjectNotification, MessageTypes.GrowingObjectNotification.RequestPartNotification);

            var notificationRequest = new RequestPartNotification
            {
                Request = request
            };

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