20 using System.Collections.Generic;
69 Hours = exchangeHours;
78 _timeProvider = timeProvider;
88 public bool DateIsOpen(DateTime dateToCheck,
bool extendedMarketHours =
false)
106 public bool IsOpenDuringBar(DateTime barStartTime, DateTime barEndTime,
bool isExtendedMarketHours)
108 return Hours.
IsOpen(barStartTime, barEndTime, isExtendedMarketHours);
127 public void SetMarketHours(IEnumerable<MarketHoursSegment> marketHoursSegments, params DayOfWeek[] days)
129 if (days.IsNullOrEmpty()) days = Enum.GetValues(typeof(DayOfWeek)).OfType<DayOfWeek>().ToArray();
132 marketHoursSegments = marketHoursSegments as IList<MarketHoursSegment> ?? marketHoursSegments.ToList();
133 foreach (var day
in days)