20 using System.Collections.Generic;
31 private readonly
bool _mappedConfig;
37 public event EventHandler<NewSymbolEventArgs>
NewSymbol;
203 DateTimeZone dataTimeZone,
204 DateTimeZone exchangeTimeZone,
208 bool isCustom =
false,
210 bool isFilteredSubscription =
true,
213 uint contractDepthOffset = 0,
214 bool mappedConfig =
false)
216 if (objectType ==
null)
throw new ArgumentNullException(nameof(objectType));
217 if (symbol ==
null)
throw new ArgumentNullException(nameof(symbol));
218 if (dataTimeZone ==
null)
throw new ArgumentNullException(nameof(dataTimeZone));
219 if (exchangeTimeZone ==
null)
throw new ArgumentNullException(nameof(exchangeTimeZone));
230 _mappedConfig = mappedConfig;
269 Type objectType =
null,
272 DateTimeZone dataTimeZone =
null,
273 DateTimeZone exchangeTimeZone =
null,
274 bool? fillForward =
null,
275 bool? extendedHours =
null,
276 bool? isInternalFeed =
null,
277 bool? isCustom =
null,
279 bool? isFilteredSubscription =
null,
282 uint? contractDepthOffset =
null,
283 bool? mappedConfig =
null)
285 objectType ?? config.
Type,
299 mappedConfig ?? false
316 if (ReferenceEquals(
null, other))
return false;
317 if (ReferenceEquals(
this, other))
return true;
318 return _sid.Equals(other._sid) &&
Type == other.
Type
330 && _mappedConfig == other._mappedConfig;
342 if (ReferenceEquals(
null, obj))
return false;
343 if (ReferenceEquals(
this, obj))
return true;
344 if (obj.GetType() != GetType())
return false;
358 var hashCode = _sid.GetHashCode();
359 hashCode = (hashCode*397) ^
Type.GetHashCode();
360 hashCode = (hashCode*397) ^ (
int)
TickType;
367 hashCode = (hashCode*397) ^
DataTimeZone.Id.GetHashCode();
371 hashCode = (hashCode*397) ^ _mappedConfig.GetHashCode();
381 return Equals(left, right);
389 return !
Equals(left, right);
401 return Invariant($
"{Symbol.Value},#{ContractDepthOffset},{MappedSymbol},{Resolution},{Type.Name},{TickType},{DataNormalizationMode},{DataMappingMode}{(IsInternalFeed ? ",Internal
" : string.Empty)}");