BO4E.Extensions/BusinessObjects/Energiemenge/EnergiemengeExtensionPlausibility.cs
/// <summary>
///     Get Daily Completeness Reports for overall time range defined in <paramref name="config" />.
///     The magic is, that it takes DST into account!
/// </summary>
/// <param name="em">Energiemenge</param>
/// <param name="config">
///     configuration that contains the overall time range in
///     <see cref="PlausibilityReport.PlausibilityReportConfiguration.Timeframe" />
/// </param>
/// <returns></returns>
Get Daily Completeness Reports for overall time range defined in .
The magic is, that it takes DST into account!
Get Daily Completeness Reports for overall time range defined in . The magic is that it takes DST into account!
public static IDictionary<ITimeRange, PlausibilityReport> GetDailyPlausibilityReports(this BO.Energiemenge em,
            PlausibilityReportConfiguration config)
        {
            if (config == null) throw new ArgumentNullException(nameof(config));
            if (config.Timeframe == null) throw new ArgumentNullException(nameof(config.Timeframe));
            var slices = GetLocalDailySlices(new TimeRange
            {
                Start = config.Timeframe.Startdatum.Value.UtcDateTime,
                End = config.Timeframe.Enddatum.Value.UtcDateTime
            });
            return em.GetSlicedPlausibilityReports(config, slices);
        }
public static IDictionary < ITimeRange , PlausibilityReport > GetDailyPlausibilityReports ( this BO . Energiemenge em , PlausibilityReportConfiguration config ) { if ( config == null ) throw new ArgumentNullException ( nameof ( config ) ) ; if ( config . Timeframe == null ) throw new ArgumentNullException ( nameof ( config . Timeframe ) ) ; var slices = GetLocalDailySlices ( new TimeRange { Start = config . Timeframe . Startdatum . Value . UtcDateTime , End = config . Timeframe . Enddatum . Value . UtcDateTime } ) ; return em . GetSlicedPlausibilityReports ( config , slices ) ; }
Get Daily Completeness Reports for overall time range defined in .
Get Daily Completeness Reports for overall time range defined in .
None
BO.Energiemenge
this
config
PlausibilityReportConfiguration
configuration that contains the overall time range in
configuration that contains the overall time range in
em
None