コード例 #1
0
        public void OptIn()
        {
            telemetryRepository.Data.IsAnonymousDataShared = true;
            telemetryRepository.Save();

            EnableAllEvents();
        }
コード例 #2
0
        void IServerNotificationsTelemetryManager.NotificationsToggled(bool areNotificationsEnabled)
        {
            Debug.Assert(telemetryRepository.Data != null);

            telemetryRepository.Data.ServerNotifications.IsDisabled = !areNotificationsEnabled;
            telemetryRepository.Save();
        }