ParseHeader() public static method

public static ParseHeader ( System.ServiceModel.OperationContext context ) : PullNotificationHeader
context System.ServiceModel.OperationContext
return PullNotificationHeader
        public void CloseConnection()
        {
            PullNotificationHeader notificationHeader = PullNotificationHeader.ParseHeader(OperationContext.Current);

            if (notificationHeader != null)
            {
                GetPublisher().CloseConnection(notificationHeader.Address);
            }
            else
            {
                throw new ApplicationException("The notification header was missing from the Close request.");
            }
        }
        public Dictionary <string, List <string> > GetNotifications()
        {
            PullNotificationHeader notificationHeader = PullNotificationHeader.ParseHeader(OperationContext.Current);

            if (notificationHeader != null)
            {
                return(GetNotificationsForAddress(notificationHeader.Address));
            }
            else
            {
                throw new ApplicationException("The GetNotifications request was missing a required " + PullNotificationHeader.NOTIFICATION_HEADER_NAME + " header.");
            }
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="filter"></param>
        /// <returns>If the set filter is successful a session ID otherwise null.</returns>
        public string Subscribe(string subject, string filter)
        {
            PullNotificationHeader notificationHeader = PullNotificationHeader.ParseHeader(OperationContext.Current);

            if (notificationHeader != null)
            {
                if (subject == "ControlClient")
                {
                    subject = "Console";
                }

                return(SubscribeForAddress(subject, filter, notificationHeader.Address));
            }
            else
            {
                throw new ApplicationException("The notification header was missing from the SetFilter request.");
            }
        }