Example #1
0
 /// <summary>Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the <see cref="T:EPiServer.Personalization.SubscriptionJob" /> class.
 /// </summary>
 /// <exclude />
 public SubscriptionJob(IContentRepository contentRepository, LocalizationService localizationService, Gosso.EpiserverLegacy.DataAccess.Internal.SubscriptionDB subscriptionDataAccess, ISiteDefinitionResolver siteDefinitionResolver, ILanguageBranchRepository languageBranchRepository, IUserImpersonation userImpersonation)
 {
     this._contentRepository        = contentRepository ?? (IContentRepository)DataFactory.Instance;
     this._localizationService      = localizationService;
     this._userImpersonation        = userImpersonation;
     this._subscriptionDB           = subscriptionDataAccess ?? ServiceLocator.Current.GetInstance <Gosso.EpiserverLegacy.DataAccess.Internal.SubscriptionDB>();
     this._siteDefinitionResolver   = siteDefinitionResolver ?? ServiceLocator.Current.GetInstance <ISiteDefinitionResolver>();
     this._languageBranchRepository = languageBranchRepository ?? ServiceLocator.Current.GetInstance <ILanguageBranchRepository>();
 }
Example #2
0
 public SubscriptionJob(IContentRepository contentRepository, LocalizationService localizationService, Gosso.EpiserverLegacy.DataAccess.Internal.SubscriptionDB subscriptionDataAccess, SiteDefinitionResolver siteDefinitionResolver, IUserImpersonation userImpersonation)
     : this(contentRepository, localizationService, subscriptionDataAccess, (ISiteDefinitionResolver)siteDefinitionResolver, ServiceLocator.Current.GetInstance <ILanguageBranchRepository>(), userImpersonation)
 {
 }