/// <summary> /// Creates a new tile manager. /// </summary> /// <param name="feedManager">Provides access to remote and local <see cref="Feed"/>s. Handles downloading, signature verification and caching.</param> /// <param name="catalogManager">Provides access to remote and local <see cref="Catalog"/>s. Handles downloading, signature verification and caching.</param> /// <param name="iconCache">The icon cache used by newly created <see cref="IAppTile"/>s to retrieve application icons.</param> /// <param name="tileListMyApps">The <see cref="IAppTileList"/> used to represent the "my apps" <see cref="AppList"/>.</param> /// <param name="tileListCatalog">The <see cref="IAppTileList"/> used to represent the merged <see cref="Catalog"/>.</param> /// <param name="machineWide">Apply operations machine-wide instead of just for the current user.</param> public AppTileManagement([NotNull] IFeedManager feedManager, [NotNull] ICatalogManager catalogManager, [NotNull] IIconCache iconCache, [NotNull] IAppTileList tileListMyApps, [NotNull] IAppTileList tileListCatalog, bool machineWide) { #region Sanity checks if (feedManager == null) { throw new ArgumentNullException(nameof(feedManager)); } if (catalogManager == null) { throw new ArgumentNullException(nameof(catalogManager)); } if (iconCache == null) { throw new ArgumentNullException(nameof(iconCache)); } if (tileListMyApps == null) { throw new ArgumentNullException(nameof(tileListMyApps)); } if (tileListCatalog == null) { throw new ArgumentNullException(nameof(tileListCatalog)); } #endregion _feedManager = feedManager; _catalogManager = catalogManager; _iconCache = iconCache; _tileListMyApps = tileListMyApps; _tileListCatalog = tileListCatalog; _machineWide = machineWide; }
/// <summary> /// Creates a new tile manager. /// </summary> /// <param name="feedManager">Provides access to remote and local <see cref="Feed"/>s. Handles downloading, signature verification and caching.</param> /// <param name="catalogManager">Provides access to remote and local <see cref="Catalog"/>s. Handles downloading, signature verification and caching.</param> /// <param name="tileListMyApps">The <see cref="IAppTileList"/> used to represent the "my apps" <see cref="AppList"/>.</param> /// <param name="tileListCatalog">The <see cref="IAppTileList"/> used to represent the merged <see cref="Catalog"/>.</param> /// <param name="machineWide">Apply operations machine-wide instead of just for the current user.</param> public AppTileManagement([NotNull] IFeedManager feedManager, [NotNull] ICatalogManager catalogManager, [NotNull] IAppTileList tileListMyApps, [NotNull] IAppTileList tileListCatalog, bool machineWide) { #region Sanity checks if (feedManager == null) { throw new ArgumentNullException("feedManager"); } if (catalogManager == null) { throw new ArgumentNullException("catalogManager"); } if (tileListMyApps == null) { throw new ArgumentNullException("tileListMyApps"); } if (tileListCatalog == null) { throw new ArgumentNullException("tileListCatalog"); } #endregion _feedManager = feedManager; _catalogManager = catalogManager; _tileListMyApps = tileListMyApps; _tileListCatalog = tileListCatalog; _machineWide = machineWide; }
/// <summary> /// Creates a new tile manager. /// </summary> /// <param name="feedManager">Provides access to remote and local <see cref="Feed"/>s. Handles downloading, signature verification and caching.</param> /// <param name="catalogManager">Provides access to remote and local <see cref="Catalog"/>s. Handles downloading, signature verification and caching.</param> /// <param name="iconStore">The icon store used by newly created <see cref="IAppTile"/>s to retrieve application icons.</param> /// <param name="tileListMyApps">The <see cref="IAppTileList"/> used to represent the "my apps" <see cref="AppList"/>.</param> /// <param name="tileListCatalog">The <see cref="IAppTileList"/> used to represent the merged <see cref="Catalog"/>.</param> /// <param name="machineWide">Apply operations machine-wide instead of just for the current user.</param> public AppTileManagement(IFeedManager feedManager, ICatalogManager catalogManager, IIconStore iconStore, IAppTileList tileListMyApps, IAppTileList tileListCatalog, bool machineWide) { _feedManager = feedManager ?? throw new ArgumentNullException(nameof(feedManager)); _catalogManager = catalogManager ?? throw new ArgumentNullException(nameof(catalogManager)); _iconStore = iconStore ?? throw new ArgumentNullException(nameof(iconStore)); _tileListMyApps = tileListMyApps ?? throw new ArgumentNullException(nameof(tileListMyApps)); _tileListCatalog = tileListCatalog ?? throw new ArgumentNullException(nameof(tileListCatalog)); _machineWide = machineWide; }
/// <summary> /// Creates a new tile manager. /// </summary> /// <param name="feedManager">Provides access to remote and local <see cref="Feed"/>s. Handles downloading, signature verification and caching.</param> /// <param name="catalogManager">Provides access to remote and local <see cref="Catalog"/>s. Handles downloading, signature verification and caching.</param> /// <param name="iconCache">The icon cache used by newly created <see cref="IAppTile"/>s to retrieve application icons.</param> /// <param name="tileListMyApps">The <see cref="IAppTileList"/> used to represent the "my apps" <see cref="AppList"/>.</param> /// <param name="tileListCatalog">The <see cref="IAppTileList"/> used to represent the merged <see cref="Catalog"/>.</param> /// <param name="machineWide">Apply operations machine-wide instead of just for the current user.</param> public AppTileManagement([NotNull] IFeedManager feedManager, [NotNull] ICatalogManager catalogManager, [NotNull] IIconCache iconCache, [NotNull] IAppTileList tileListMyApps, [NotNull] IAppTileList tileListCatalog, bool machineWide) { #region Sanity checks if (feedManager == null) throw new ArgumentNullException(nameof(feedManager)); if (catalogManager == null) throw new ArgumentNullException(nameof(catalogManager)); if (iconCache == null) throw new ArgumentNullException(nameof(iconCache)); if (tileListMyApps == null) throw new ArgumentNullException(nameof(tileListMyApps)); if (tileListCatalog == null) throw new ArgumentNullException(nameof(tileListCatalog)); #endregion _feedManager = feedManager; _catalogManager = catalogManager; _iconCache = iconCache; _tileListMyApps = tileListMyApps; _tileListCatalog = tileListCatalog; _machineWide = machineWide; }