18 using System.Collections.Generic;
28 private readonly
static IReadOnlyList<KeyValuePair<string, string>> _empty =
new List<KeyValuePair<string, string>>();
48 public readonly IReadOnlyList<KeyValuePair<string, string>>
Headers;
55 : this(source, GetDefaultSubscriptionTransportMedium(source),
FileFormat.
Csv)
76 : this(source, transportMedium, format, null)
93 Headers = headers?.ToList() ?? _empty;
105 if (ReferenceEquals(
null, other))
return false;
106 if (ReferenceEquals(
this, other))
return true;
121 if (ReferenceEquals(
null, obj))
return false;
122 if (ReferenceEquals(
this, obj))
return true;
123 if (obj.GetType() != GetType())
return false;
150 return Equals(left, right);
161 return !
Equals(left, right);
173 return Invariant($
"{TransportMedium}: {Format} {Source}");
181 if (source.StartsWith(
"http://", StringComparison.OrdinalIgnoreCase) ||
182 source.StartsWith(
"https://", StringComparison.OrdinalIgnoreCase))