18 lines
590 B
C#
18 lines
590 B
C#
|
//------------------------------------------------------------
|
||
|
// 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);
|
||
|
}
|
||
|
}
|
||
|
}
|