public PortTextBox() { Validate = () => NetworkUtils.ValidatePort(Text); PasswdChar = '\0'; MaxLength = 5; Text = DefaultPort.ToString(); Leave += (sender, args) => Text = IsValid ? Text : DefaultPort.ToString(); }
public void Describe(Description description) { description.ShortDescription = "Lightning Queues Configuration"; description.Properties[nameof(DefaultPort)] = DefaultPort.ToString(); description.Properties[nameof(MaxDatabases)] = MaxDatabases.ToString(); description.Properties[nameof(MapSize)] = MapSize.ToString(); }
public override int GetHashCode() { unchecked { var hashCode = Scope.GetHashCode(); hashCode = (hashCode * 397) ^ RequestTimeout.GetHashCode(); hashCode = (hashCode * 397) ^ FirstAttemptDelaySeconds.GetHashCode(); hashCode = (hashCode * 397) ^ MaxAttemptDelaySeconds.GetHashCode(); hashCode = (hashCode * 397) ^ DelayMultiplier.GetHashCode(); hashCode = (hashCode * 397) ^ Source.GetHashCode(); hashCode = (hashCode * 397) ^ (Hosts != null ? Hosts.GetHashCode() : 0); hashCode = (hashCode * 397) ^ DefaultPort.GetHashCode(); hashCode = (hashCode * 397) ^ DefaultSlotNumber.GetHashCode(); hashCode = (hashCode * 397) ^ UseHttpsOverride.GetHashCode(); hashCode = (hashCode * 397) ^ (SecurityRole != null ? SecurityRole.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CachingPolicy != null ? CachingPolicy.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SuppressHealthCheckAfterServiceUnused.GetHashCode(); return(hashCode); } }
public void Describe(Description description) { description.ShortDescription = "Lightning Queues Configuration"; description.Properties[nameof(DefaultPort)] = DefaultPort.ToString(); description.Properties[nameof(PurgeQueuesPolling)] = PurgeQueuesPolling.ToString(); description.Properties[nameof(EnableOutgoingMessageHistory)] = EnableOutgoingMessageHistory.ToString(); description.Properties[nameof(EnableProcessedMessageHistory)] = EnableProcessedMessageHistory.ToString(); description.Properties[nameof(NumberOfMessagesToKeepInOutgoingHistory)] = NumberOfMessagesToKeepInOutgoingHistory.ToString(); description.Properties[nameof(NumberOfReceivedMessageIdsToKeep)] = NumberOfReceivedMessageIdsToKeep.ToString(); description.Properties[nameof(OldestMessageInOutgoingHistory)] = OldestMessageInOutgoingHistory.ToString(); description.Properties[nameof(OldestMessageInProcessedHistory)] = OldestMessageInProcessedHistory.ToString(); }
private void OnLeave(Object?sender, EventArgs e) { Text = IsValid ? Text : DefaultPort.ToString(); }
private void OnCreate(Object?sender, EventArgs e) { MaxLength = 5; PasswordChar = ResetPasswordChar; Text = DefaultPort.ToString(); }