public override int GetHashCode() { //GetHashCode generated by Resharper, based on best practises unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ (ExchangeName != null ? ExchangeName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ConnectionUrl != null ? ConnectionUrl.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Password != null ? Password.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Domain != null ? Domain.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Username != null ? Username.GetHashCode() : 0); return(hashCode); } }
public PhotoService(ConnectionUrl connectionUrl, IOptions <UrlSettings> urlSettings) { // Kenneth Si quieres implementar el logger del lado del controller tambien se puede y se hace igual que aqui _ConnectionUrl = connectionUrl ?? throw new ArgumentNullException(nameof(connectionUrl)); _UrlSettings = urlSettings.Value; }