public static async void Start() { if (null == s_radioManager) { s_radioManager = new RadioManager(); await s_radioManager.Initialize(InternetRadioConfig.GetDefault()); } }
public async void Run(IBackgroundTaskInstance taskInstance) { deferral = taskInstance.GetDeferral(); taskInstance.Canceled += TaskInstance_Canceled; if (null == s_radioManager) { s_radioManager = new RadioManager(); await s_radioManager.Initialize(InternetRadioConfig.GetDefault()); } }
public async void Run(IBackgroundTaskInstance taskInstance) { WriteTelemetryEvent("App_Startup"); deferral = taskInstance.GetDeferral(); taskInstance.Canceled += TaskInstance_Canceled; if (null == s_radioManager) { s_radioManager = new RadioManager(); await s_radioManager.Initialize(); } }
public MainPage() { this.InitializeComponent(); this.radioManager = new RadioManager(); }