ReConnectionSettings
Configurações de rastreamento de conexão IMessageAdapter com um servidor.
Implementa: IPersistable
Construtores
public ReConnectionSettings()
reConnectionSettings = ReConnectionSettings()
Inicializa uma nova instância do ReConnectionSettings.
Propriedades
public int AttemptCount { get; set; }
value = reConnectionSettings.AttemptCount
reConnectionSettings.AttemptCount = value
O número de tentativas para estabelecer a ligação inicial, se não tiver sido estabelecida (tempo limite, falha de rede, etc.). O valor por omissão é 0. Para estabelecer o número infinito, uses - 1.
public TimeSpan Interval { get; set; }
value = reConnectionSettings.Interval
reConnectionSettings.Interval = value
O intervalo no qual as tentativas irão estabelecer uma ligação. O valor por omissão é de 10 segundos.
public int ReAttemptCount { get; set; }
value = reConnectionSettings.ReAttemptCount
reConnectionSettings.ReAttemptCount = value
O número de tentativas de reconectar se a conexão foi perdida durante a operação. O valor padrão é 100. Para estabelecer números infinitos, use - 1.
public TimeSpan TimeOutInterval { get; set; }
value = reConnectionSettings.TimeOutInterval
reConnectionSettings.TimeOutInterval = value
Tempo de saída para conexão / desconexão bem sucedida. Se o valor for Zero, a monitorização é executada. O valor padrão é de 30 segundos.
public WorkingTime WorkingTime { get; set; }
value = reConnectionSettings.WorkingTime
reConnectionSettings.WorkingTime = value
Agendar, durante o qual é necessário fazer a conexão. Por exemplo, não há necessidade de rastrear a conexão quando a negociação na troca terminou.
Métodos
public void Load(SettingsStorage storage)
reConnectionSettings.Load(storage)
Carregar as configurações.
- storage
- Configuração do armazenamento.
public void Save(SettingsStorage storage)
reConnectionSettings.Save(storage)
Gravar as definições.
- storage
- Configuração do armazenamento.