18 using System.Collections.Generic;
28 private readonly
static IReadOnlyList<KeyValuePair<string, string>> _empty =
new List<KeyValuePair<string, string>>();
34 public bool Sort {
get;
set; }
54 public IReadOnlyList<KeyValuePair<string, string>>
Headers {
get; init; }
61 : this(source, GetDefaultSubscriptionTransportMedium(source),
FileFormat.
Csv)
82 : this(source, transportMedium, format, null)
99 Headers = headers?.ToList() ?? _empty;
111 if (ReferenceEquals(
null, other))
return false;
112 if (ReferenceEquals(
this, other))
return true;
127 if (ReferenceEquals(
null, obj))
return false;
128 if (ReferenceEquals(
this, obj))
return true;
129 if (obj.GetType() != GetType())
return false;
156 return Equals(left, right);
167 return !
Equals(left, right);
179 return Invariant($
"{TransportMedium}: {Format} {Source}");
187 if (source.StartsWith(
"http://", StringComparison.OrdinalIgnoreCase) ||
188 source.StartsWith(
"https://", StringComparison.OrdinalIgnoreCase))