Пример #1
0
        /// <summary>
        /// Provides the appropriate Action header value for the <paramref name="type"/>
        /// </summary>
        /// <param name="type">The DSN Action to translate</param>
        /// <returns>A string representation suitable for the Action header value</returns>
        public static string ToString(DSNAction type)
        {
            switch (type)
            {
            default:
                throw new NotSupportedException();

            case DSNAction.Failed:
                return(DsnAction_Failed);

            case DSNAction.Delayed:
                return(DsnAction_Delayed);

            case DSNAction.Delivered:
                return(DsnAction_Delivered);

            case DSNAction.Relayed:
                return(DsnAction_Relayed);

            case DSNAction.Expanded:
                return(DsnAction_Expanded);
            }
        }
Пример #2
0
        /// <summary>
        /// Provides the appropriate Action header value for the <paramref name="type"/>
        /// </summary>
        /// <param name="type">The DSN Action to translate</param>
        /// <returns>A string representation suitable for the Action header value</returns>
        public static string ToString(DSNAction type)
        {
            switch (type)
            {
                default:
                    throw new NotSupportedException();

                case DSNAction.Failed:
                    return DsnAction_Failed;

                case DSNAction.Delayed:
                    return DsnAction_Delayed;

                case DSNAction.Delivered:
                    return DsnAction_Delivered;

                case DSNAction.Relayed:
                    return DsnAction_Relayed;

                case DSNAction.Expanded:
                    return DsnAction_Expanded;

            }


        }