ReliableSessionElement.MaxRetryCount Propriedade

Definição

Obtém ou define o número máximo de vezes que um canal confiável tenta retransmitir uma mensagem para a qual não recebeu confirmação, chamando Send em seu canal subjacente.Gets or sets the maximum number of times a reliable channel attempts to retransmit a message it has not received an acknowledgment for, by calling Send on its underlying channel.

public:
 property int MaxRetryCount { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxRetryCount", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int MaxRetryCount { get; set; }
[<System.Configuration.ConfigurationProperty("maxRetryCount", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.MaxRetryCount : int with get, set
Public Property MaxRetryCount As Integer

Valor da propriedade

Int32

O número máximo de vezes que um canal confiável tenta retransmitir uma mensagem para a qual não recebeu uma confirmação, chamando Send em seu canal subjacente.The maximum number of times a reliable channel attempts to retransmit a message it has not received an acknowledgment for, by calling Send on its underlying channel. O valor mínimo é 1; o máximo de 20; e o valor padrão é 8.The minimum value is 1; the maximum 20; and the default value is 8.

Atributos

Comentários

Esse valor deve ser um número inteiro maior que zero.This value should be an integer greater than zero. Se uma confirmação não for recebida após a última retransmissão, as falhas de canal.If an acknowledgment is not received after the last retransmission, the channel faults.

Uma mensagem será considerada para ser transferida se sua entrega no destinatário for confirmada pelo destinatário.A message is considered to be transferred if its delivery at the recipient is acknowledged by the recipient.

Se uma confirmação não for recebida dentro de um determinado período de tempo para uma mensagem que foi transmitida, a infraestrutura retransmitirá automaticamente a mensagem.If an acknowledgment is not received within a certain amount of time for a message that has been transmitted, the infrastructure automatically retransmits the message. A infraestrutura tenta reenviar a mensagem para, no máximo, o número de vezes especificado por essa propriedade.The infrastructure tries to resend the message for, at most, the number of times specified by this property. Se uma confirmação não for recebida após a última retransmissão, as falhas de canal.If an acknowledgment is not received after the last retransmission, the channel faults.

A infraestrutura usa um algoritmo de retirada exponencial para determinar quando retransmitir, com base em um tempo médio de ida e volta calculado.The infrastructure uses an exponential back-off algorithm to determine when to retransmit, based on a computed average round-trip time. O tempo inicialmente começa em 1 segundo antes da retransmissão e dobrando o atraso com cada tentativa, o que resulta em aproximadamente 8,5 minutos passando entre a primeira tentativa de transmissão e a última tentativa de retransmissão.The time initially starts at 1 second before retransmission and doubling the delay with every attempt, which results in approximately 8.5 minutes passing between the first transmission attempt and the last retransmission attempt. O tempo para a primeira tentativa de retransmissão é ajustado de acordo com o tempo de viagem de ida e volta calculado e o Stretch de tempo que essas tentativas levam variam de acordo.The time for the first retransmission attempt is adjusted according to the calculated round-trip time and the resulting stretch of time that those attempts take varies accordingly. Isso permite que o tempo de retransmissão se adapte dinamicamente a diferentes condições de rede.This allows the retransmission time to dynamically adapt to varying network conditions.

Aplica-se a