/// <summary> /// Discover data store metrics, eg what days are stored in the data store. /// </summary> /// <returns></returns> public Collection <DateTime> DiscoverDateMetrics(MetricQuestion question) { TaskActivityDiscoverDateMetricsEventArgs tasdea = new TaskActivityDiscoverDateMetricsEventArgs(ProviderDiscoverDateMetrics(question)); OnDiscoveringDateMetricsEvent(tasdea); return(tasdea.StoredDays); }
/// <summary> /// Raises the <see cref="E:DiscoveringDateMetricsEvent"/> event. /// </summary> /// <param name="e">The <see cref="BritishMicro.TaskClerk.TaskActivityDiscoverDateMetricsEventArgs"/> instance containing the event data.</param> private void OnDiscoveringDateMetricsEvent(TaskActivityDiscoverDateMetricsEventArgs e) { EventHandler<TaskActivityDiscoverDateMetricsEventArgs> handler = DiscoveringDateMetrics; if (handler != null) { handler(this, e); } }
/// <summary> /// Discover data store metrics, eg what days are stored in the data store. /// </summary> /// <returns></returns> public Collection<DateTime> DiscoverDateMetrics(MetricQuestion question) { TaskActivityDiscoverDateMetricsEventArgs tasdea = new TaskActivityDiscoverDateMetricsEventArgs(ProviderDiscoverDateMetrics(question)); OnDiscoveringDateMetricsEvent(tasdea); return tasdea.StoredDays; }
/// <summary> /// Raises the <see cref="E:DiscoveringDateMetricsEvent"/> event. /// </summary> /// <param name="e">The <see cref="BritishMicro.TaskClerk.TaskActivityDiscoverDateMetricsEventArgs"/> instance containing the event data.</param> private void OnDiscoveringDateMetricsEvent(TaskActivityDiscoverDateMetricsEventArgs e) { DiscoveringDateMetrics?.Invoke(this, e); }