public AppListService(DvDevice aDevice, IAppShell aAppShell) { iDevice = aDevice; iProvider = new AppListProvider(iDevice); iDevice.SetEnabled(); iCallbackTracker = new SafeCallbackTracker(); iHandler = iCallbackTracker.Create<AppStatusChangeEventArgs>(OnAppStatusChanged); iAppShell = aAppShell; iAppShell.AppStatusChanged += iHandler; OnAppStatusChanged(this, new AppStatusChangeEventArgs()); }
public AppManager( string aResourceUri, IEnumerable<DvDevice> aDevices, Func<DvDevice, IAppManagerActionHandler, string, IAppManagerProvider> aProviderConstructor, IAppShell aAppShell, IDownloadManager aDownloadManager) { iDownloadManager = aDownloadManager; iDownloadManager.DownloadCountChanged += OnDownloadCountChanged; iAppShell = aAppShell; iProviders = aDevices.Select(aDevice=>aProviderConstructor(aDevice, this, aResourceUri)).ToList(); iAppShell.AppStatusChanged += OnAppStatusChanged; RefreshApps(); }
public void Dispose() { AppShell.Dispose(); AppShell = null; }
public AppManagerConsoleCommands(IAppShell aAppAppShell) { iAppAppShell = aAppAppShell; }