File: System\ServiceModel\WebHttpSecurityModeHelper.cs
Project: ndp\cdf\src\NetFx35\System.ServiceModel.Web\System.ServiceModel.Web.csproj (System.ServiceModel.Web)
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//------------------------------------------------------------
namespace System.ServiceModel
{
    using System.ServiceModel.Channels;
 
    static class WebHttpSecurityModeHelper
    {
        internal static bool IsDefined(WebHttpSecurityMode value)
        {
            return (value == WebHttpSecurityMode.None ||
                value == WebHttpSecurityMode.Transport ||
                value == WebHttpSecurityMode.TransportCredentialOnly);
        }
    }
}