/// <summary> /// Initializes a new instance of the <see cref="PublicStatusRepository"/> class using the public status provider given. /// </summary> /// <param name="publicStatusInfoProvider">Provider for <see cref="PublicStatusInfo"/> management.</param> /// <param name="repositoryCacheHelper">Handles caching of retrieved objects.</param> public PublicStatusRepository(IPublicStatusInfoProvider publicStatusInfoProvider, RepositoryCacheHelper repositoryCacheHelper) { this.publicStatusInfoProvider = publicStatusInfoProvider; this.repositoryCacheHelper = repositoryCacheHelper; }
/// <summary> /// Initializes a new instance of the <see cref="KenticoPublicStatusRepository"/> class using the public status provider given. /// </summary> /// <param name="publicStatusInfoProvider">Provider for <see cref="PublicStatusInfo"/> management.</param> /// <exception cref="ArgumentNullException">Thrown when <paramref name="publicStatusInfoProvider"/> is null.</exception> public KenticoPublicStatusRepository(IPublicStatusInfoProvider publicStatusInfoProvider) { this.publicStatusInfoProvider = publicStatusInfoProvider ?? throw new ArgumentNullException(nameof(publicStatusInfoProvider)); }