Esempio n. 1
0
        static async Task PlatformStart(IExposureNotificationHandler handler)
        {
            var c = await handler.GetConfigurationAsync();

            var config = new ExposureConfiguration.ExposureConfigurationBuilder()
                         .SetAttenuationScores(c.AttenuationScores)
                         .SetDurationScores(c.DurationScores)
                         .SetDaysSinceLastExposureScores(c.DaysSinceLastExposureScores)
                         .SetTransmissionRiskScores(c.TransmissionRiskScores)
                         .SetAttenuationWeight(c.AttenuationWeight)
                         .SetDaysSinceLastExposureWeight(c.DaysSinceLastExposureWeight)
                         .SetDurationWeight(c.DurationWeight)
                         .SetTransmissionRiskWeight(c.TransmissionWeight)
                         .SetMinimumRiskScore(c.MinimumRiskScore)
                         .Build();

            await Instance.StartAsync(config);
        }
        static async Task PlatformStart(IExposureNotificationHandler handler)
        {
            var m = await GetManagerAsync();

            await m.SetExposureNotificationEnabledAsync(true);
        }
 static Task PlatformStart(IExposureNotificationHandler handler)
 => throw new PlatformNotSupportedException();