public void ExposureDetected(IExposureSummary exposureSummary, IList <IExposureInformation> exposureInformations) { D.Print("# ExposureDetected ExposureInformation"); var exposureResult = new ExposureResult(GetEnClient().ExposureConfiguration, DateTime.Now, exposureSummary, exposureInformations); _ = Task.Run(async() => await Utils.SaveExposureResult( exposureResult, (await GetEnClient().GetVersionAsync()).ToString(), _exposureDetectionResultDir) ); }
public ExposureResult(ExposureConfiguration exposureConfiguration, DateTime generatedAt, IExposureSummary exposureSummary, IList <IExposureInformation> exposureInformations, IList <IDailySummary> dailySummaries, IList <IExposureWindow> exposureWindows) { this.exposureConfiguration = exposureConfiguration; // to ISO 8601 this.generatedAt = generatedAt.ToString("yyyy-MM-ddTHH\\:mm\\:ss.fffffffzzz"); this.exposureSummary = exposureSummary; this.exposureInformations = exposureInformations; this.dailySummaries = dailySummaries; this.exposureWindows = exposureWindows; UpdateId(); }
public ExposureResult(ExposureConfiguration exposureConfiguration, DateTime generatedAt, IExposureSummary exposureSummary, IList <IExposureInformation> exposureInformations) : this(exposureConfiguration, generatedAt, exposureSummary, exposureInformations, null, null) { }
public void ExposureDetected(IExposureSummary exposureSummary, IList <IExposureInformation> exposureInformations) { D.Print("# ExposureDetected ExposureInformation"); }