EndpointAddress.IsAnonymous Propriedade

Definição

Obtém um valor que indica se o ponto de extremidade é anônimo.Gets a value that indicates whether the endpoint is anonymous.

public:
 property bool IsAnonymous { bool get(); };
public bool IsAnonymous { get; }
member this.IsAnonymous : bool
Public ReadOnly Property IsAnonymous As Boolean

Valor da propriedade

Boolean

true Se o ponto de extremidade for AnonymousUri ; caso contrário, false .true if the endpoint is AnonymousUri; otherwise, false.

Exemplos

EndpointIdentity endpointIdentity =
    EndpointIdentity.CreateUpnIdentity(WindowsIdentity.GetCurrent().Name);
EndpointAddress endpointAddress = new EndpointAddress(
    new Uri
    ("http://localhost:8003/servicemodelsamples/service/incode/identity"),
    endpointIdentity, addressHeaders);

// bool isAnonymous = endpointAddress.IsAnonynmous;

Comentários

Use esse método para verificar o AnonymousUri ao copiar manualmente o URI de um EndpointAddress para o URI de um ou de EndpointAddress10 um EndpointAddressAugust2004 .Use this method to check for the AnonymousUri when manually copying the URI from an EndpointAddress to the URI of either a EndpointAddress10 or a EndpointAddressAugust2004. Isso deve ser feito porque ambos EndpointAddress10 e EndpointAddressAugust2004 têm valores anônimos especiais.This must be done because both EndpointAddress10 and EndpointAddressAugust2004 have special anonymous values. Os usuários devem usar esses valores se o URI que está sendo copiado for anônimo.Users must use these values if the URI being copied is anonymous.

Devido à variedade de tecnologias de rede atualmente em uso generalizado (por exemplo, NAT, DHCP e firewalls), muitas implantações não podem atribuir um URI global significativo a um determinado ponto de extremidade.Due to the range of network technologies currently in widespread use (for example, NAT, DHCP, and firewalls), many deployments cannot assign a meaningful global URI to a given endpoint. Para permitir que esses pontos de extremidade anônimos iniciem os padrões de troca de mensagens e recebam respostas, a especificação de endereçamento de serviços Web define um URI para uso por pontos de extremidade que não podem ter um URI estável e que pode ser resolvido.To allow these anonymous endpoints to initiate message exchange patterns and receive replies, the Web Services Addressing specification defines a URI for use by endpoints that cannot have a stable, resolvable URI.

As solicitações que usam esse endereço devem fornecer algum mecanismo para entregar respostas ou falhas (por exemplo, retornar a resposta na mesma conexão de transporte).Requests that use this address must provide some mechanism for delivering replies or faults (for example, returning the reply on the same transport connection). Esse mecanismo pode ser um protocolo de transporte de solicitação/resposta (por exemplo, HTTP GET ou POST).This mechanism can be a request/reply transport protocol (for example, HTTP GET or POST). Esse URI pode ser usado como o destino para mensagens de resposta e não deve ser usado como o destino em outras circunstâncias.This URI can be used as the destination for reply messages and should not be used as the destination in other circumstances.

Aplica-se a