/// <summary> /// Initializes a new instance of the <see cref="SavePagePropertiesCommand" /> class. /// </summary> /// <param name="pageService">The page service.</param> /// <param name="redirectService">The redirect service.</param> /// <param name="tagService">The tag service.</param> /// <param name="sitemapService">The sitemap service.</param> /// <param name="urlService">The URL service.</param> /// <param name="optionService">The option service.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="contentService">The content service.</param> /// <param name="masterPageService">The master page service.</param> /// <param name="categoryService">The category service.</param> public SavePagePropertiesCommand( IPageService pageService, IRedirectService redirectService, ITagService tagService, ISitemapService sitemapService, IUrlService urlService, IOptionService optionService, ICmsConfiguration cmsConfiguration, IAccessControlService accessControlService, IContentService contentService, IMasterPageService masterPageService, ICategoryService categoryService) { this.pageService = pageService; this.redirectService = redirectService; this.tagService = tagService; this.sitemapService = sitemapService; this.urlService = urlService; this.optionService = optionService; this.cmsConfiguration = cmsConfiguration; this.accessControlService = accessControlService; this.contentService = contentService; this.masterPageService = masterPageService; this.categoryService = categoryService; }
public HomeController(IIdentityServerInteractionService interaction, IOptionsSnapshot <AppSettings> settings, IRedirectService redirectSvc) { trace = zipkin4net.Trace.Create(); _interaction = interaction; _settings = settings; _redirectSvc = redirectSvc; }
public DefaultPageService(IRepository repository, IRedirectService redirectService, IUrlService urlService) { this.repository = repository; this.redirectService = redirectService; this.urlService = urlService; temporaryPageCache = new Dictionary<string, IPage>(); }
public DefaultPageService(IRepository repository, IRedirectService redirectService, IUrlService urlService) { this.repository = repository; this.redirectService = redirectService; this.urlService = urlService; temporaryPageCache = new Dictionary <string, IPage>(); }
public HomeController(IIdentityServerInteractionService interaction, IHostingEnvironment environment, ILogger <HomeController> logger, IRedirectService redirectSvc) { _interaction = interaction; _environment = environment; _logger = logger; _redirectSvc = redirectSvc; }
/// <summary> /// Initializes a new instance of the <see cref="DeletePageCommand" /> class. /// </summary> /// <param name="redirectService">The redirect service.</param> /// <param name="sitemapService">The sitemap service.</param> /// <param name="urlService">The URL service.</param> public DeletePageCommand(IRedirectService redirectService, ISitemapService sitemapService, IUrlService urlService) { this.redirectService = redirectService; this.sitemapService = sitemapService; this.urlService = urlService; }
public HomeController(IIdentityServerInteractionService interaction, IOptionsSnapshot <AppSettings> settings, IRedirectService redirectSvc) { _interaction = interaction; _settings = settings; _redirectSvc = redirectSvc; }
/// <summary> /// Initializes a new instance of the <see cref="DeletePageCommand" /> class. /// </summary> /// <param name="redirectService">The redirect service.</param> /// <param name="sitemapService">The sitemap service.</param> /// <param name="urlService">The URL service.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> public DeletePageCommand(IRedirectService redirectService, ISitemapService sitemapService, IUrlService urlService, ICmsConfiguration cmsConfiguration) { this.redirectService = redirectService; this.sitemapService = sitemapService; this.urlService = urlService; this.cmsConfiguration = cmsConfiguration; }
public DefaultPageService(ICacheService cacheService, IRepository repository, IRedirectService redirectService, IUnitOfWork unitOfWork) { this.cacheService = cacheService; this.repository = repository; this.redirectService = redirectService; this.unitOfWork = unitOfWork; this.temporaryPageCache = new Dictionary<string, IPage>(); }
/// <summary> /// Initializes a new instance of the <see cref="SavePageSeoCommand" /> class. /// </summary> /// <param name="redirectService">The redirect service.</param> /// <param name="pageService">The page service.</param> /// <param name="sitemapService">The sitemap service.</param> /// <param name="urlService">The URL service.</param> public SavePageSeoCommand(IRedirectService redirectService, IPageService pageService, ISitemapService sitemapService, IUrlService urlService) { this.pageService = pageService; this.sitemapService = sitemapService; this.redirectService = redirectService; this.urlService = urlService; }
public RedirectAdminController(ILogger <HomeController> logger, IRedirectService redirectService, UserManager <CognitoUser> userManager) { _logger = logger; _redirectService = redirectService; _userManager = userManager; }
/// <summary> /// Initializes a new instance of the <see cref="SignOffService"/> class. /// </summary> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="redirectService">The redirect service.</param> public SignOffService( IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IUserDialogService userDialogService, IRedirectService redirectService) { _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _userDialogService = userDialogService; _redirectService = redirectService; }
/// <summary> /// Initializes a new instance of the <see cref="SignOffService"/> class. /// </summary> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="redirectService">The redirect service.</param> public SignOffService( IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IUserDialogService userDialogService, IRedirectService redirectService ) { _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _userDialogService = userDialogService; _redirectService = redirectService; }
public RedirectFilter( IRedirectService redirectService, ShellSettings shellSettings, IWorkContextAccessor wca) { _redirectService = redirectService; _shellSettings = shellSettings; _wca = wca; }
/// <summary> /// Initializes a new instance of the <see cref="SavePagePropertiesCommand" /> class. /// </summary> /// <param name="pageService">The page service.</param> /// <param name="redirectService">The redirect service.</param> /// <param name="tagService">The tag service.</param> /// <param name="sitemapService">The sitemap service.</param> /// <param name="urlService">The URL service.</param> public SavePagePropertiesCommand(IPageService pageService, IRedirectService redirectService, ITagService tagService, ISitemapService sitemapService, IUrlService urlService) { this.pageService = pageService; this.redirectService = redirectService; this.tagService = tagService; this.sitemapService = sitemapService; this.urlService = urlService; }
public StatsService( IRedirectableStore redirectableStore, IVisitStore visitStore, IRedirectService redirectService) { _redirectableStore = redirectableStore; _visitStore = visitStore; _redirectService = redirectService; }
public UserPasswordResetTokenGeneratedIntegrationEventHandler( IUserService userService, IRedirectService redirectService, IOptionsSnapshot <SendgridOptions> options ) { _userService = userService; _redirectService = redirectService; _options = options; }
public UserEmailConfirmationTokenGeneratedIntegrationEventHandler( IUserService userService, IRedirectService redirectService, IOptionsSnapshot <SendgridOptions> options ) { _userService = userService; _redirectService = redirectService; _options = options; }
public DefaultRedirectControl(IRedirectService redirectService, ICacheService cacheService, ICmsConfiguration cmsConfiguration, IUrlService urlService) { this.redirectService = redirectService; this.cacheService = cacheService; this.cmsConfiguration = cmsConfiguration; this.urlService = urlService; Events.PageEvents.Instance.RedirectCreated += InvalidateCache; Events.PageEvents.Instance.RedirectUpdated += InvalidateCache; Events.PageEvents.Instance.RedirectDeleted += InvalidateCache; }
public HomeController(IIdentityServerInteractionService interaction, IWebHostEnvironment environment , ILogger <HomeController> logger , IRedirectService redirectSvc , UserManager <ApplicationUser> userManager) { _interaction = interaction; _environment = environment; _logger = logger; _redirectSvc = redirectSvc; _userManager = userManager; }
public HomeController(IIdentityServerInteractionService interaction, //IOptionsSnapshot<AppSettings> settings, IRedirectService redirectSvc, ILogger <HomeController> logger ) { _interaction = interaction; //_settings = settings; _redirectSvc = redirectSvc; _logger = logger; }
public RedirectRuleStep( IContentDefinitionManager contentDefinitionManager, IContentManager contentManager, IContentDefinitionWriter contentDefinitionWriter, IRedirectService redirectService) { _contentDefinitionManager = contentDefinitionManager; _contentManager = contentManager; _contentDefinitionWriter = contentDefinitionWriter; _redirectService = redirectService; }
/// <summary> /// Initializes a new instance of the <see cref="SaveBlogPostCommand" /> class. /// </summary> /// <param name="tagService">The tag service.</param> /// <param name="optionService">The option service.</param> /// <param name="contentService">The content service.</param> /// <param name="pageService">The page service.</param> /// <param name="blogService">The blog service.</param> /// <param name="redirectService">The redirect service.</param> /// <param name="urlService">The URL service.</param> public SaveBlogPostCommand(ITagService tagService, Services.IOptionService optionService, IContentService contentService, IPageService pageService, IBlogService blogService, IRedirectService redirectService, IUrlService urlService) { this.tagService = tagService; this.optionService = optionService; this.contentService = contentService; this.pageService = pageService; this.blogService = blogService; this.redirectService = redirectService; this.urlService = urlService; }
public DefaultPageService(IRepository repository, IRedirectService redirectService, IUrlService urlService, ISecurityService securityService, IAccessControlService accessControlService, ICacheService cacheService) { this.repository = repository; this.redirectService = redirectService; this.urlService = urlService; this.securityService = securityService; this.accessControlService = accessControlService; this.cacheService = cacheService; temporaryPageCache = new Dictionary <string, IPage>(); }
public DefaultPageService(IRepository repository, IRedirectService redirectService, IUrlService urlService, ISecurityService securityService, IAccessControlService accessControlService, ICacheService cacheService) { this.repository = repository; this.redirectService = redirectService; this.urlService = urlService; this.securityService = securityService; this.accessControlService = accessControlService; this.cacheService = cacheService; temporaryPageCache = new Dictionary<string, IPage>(); }
public DefaultBlogMLService(IRepository repository, IUrlService urlService, IBlogService blogService, IUnitOfWork unitOfWork, IRedirectService redirectService, IPageService pageService, ICmsConfiguration cmsConfiguration, IHttpContextAccessor httpContextAccessor) { this.repository = repository; this.urlService = urlService; this.blogService = blogService; this.pageService = pageService; this.unitOfWork = unitOfWork; this.redirectService = redirectService; this.cmsConfiguration = cmsConfiguration; this.httpContextAccessor = httpContextAccessor; }
/// <summary> /// Initializes a new instance of the <see cref="SavePageSeoCommand" /> class. /// </summary> /// <param name="redirectService">The redirect service.</param> /// <param name="pageService">The page service.</param> /// <param name="sitemapService">The sitemap service.</param> /// <param name="urlService">The URL service.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> public SavePageSeoCommand( IRedirectService redirectService, IPageService pageService, ISitemapService sitemapService, IUrlService urlService, ICmsConfiguration cmsConfiguration) { this.pageService = pageService; this.sitemapService = sitemapService; this.redirectService = redirectService; this.urlService = urlService; this.cmsConfiguration = cmsConfiguration; }
public RedirectsAdminController( IRedirectService redirectService, IOrchardServices orchardServices, ISiteService siteService, IShapeFactory shapeFactory) { _redirectService = redirectService; _orchardServices = orchardServices; _siteService = siteService; Shape = shapeFactory; T = NullLocalizer.Instance; }
/// <summary> /// Initializes a new instance of the <see cref="SaveBlogPostCommand" /> class. /// </summary> /// <param name="tagService">The tag service.</param> /// <param name="optionService">The option service.</param> /// <param name="contentService">The content service.</param> /// <param name="pageService">The page service.</param> /// <param name="blogService">The blog service.</param> /// <param name="redirectService">The redirect service.</param> /// <param name="urlService">The URL service.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="masterPageService">The master page service.</param> public SaveBlogPostCommand(ITagService tagService, Services.IOptionService optionService, IContentService contentService, IPageService pageService, IBlogService blogService, IRedirectService redirectService, IUrlService urlService, ICmsConfiguration cmsConfiguration, IMasterPageService masterPageService) { this.tagService = tagService; this.optionService = optionService; this.contentService = contentService; this.pageService = pageService; this.blogService = blogService; this.redirectService = redirectService; this.urlService = urlService; this.masterPageService = masterPageService; this.cmsConfiguration = cmsConfiguration; }
public Shell( ShellViewModel shellViewModel, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IUserDialogService userDialogService, IRedirectService redirectService) : this() { _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _userDialogService = userDialogService; _redirectService = redirectService; DataContext = shellViewModel; var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher(); requestDispatcher.Add(new GetTimeOutIntervalRequest()); requestDispatcher.ProcessRequests(HandleGetTimeOutIntervalCompleted, HandleGetTimeOutIntervalException); }
public DefaultPageService( IRepository repository, IRedirectService redirectService, IUrlService urlService, IAccessControlService accessControlService, ICmsConfiguration cmsConfiguration, ISitemapService sitemapService, IUnitOfWork unitOfWork) { this.repository = repository; this.redirectService = redirectService; this.urlService = urlService; this.accessControlService = accessControlService; this.cmsConfiguration = cmsConfiguration; this.unitOfWork = unitOfWork; this.sitemapService = sitemapService; temporaryPageCache = new Dictionary<string, IPage>(); }
public DefaultPageService( IRepository repository, IRedirectService redirectService, IUrlService urlService, IAccessControlService accessControlService, ICmsConfiguration cmsConfiguration, ISitemapService sitemapService, IUnitOfWork unitOfWork) { this.repository = repository; this.redirectService = redirectService; this.urlService = urlService; this.accessControlService = accessControlService; this.cmsConfiguration = cmsConfiguration; this.unitOfWork = unitOfWork; this.sitemapService = sitemapService; temporaryPageCache = new Dictionary <string, IPage>(); }
/// <summary> /// Initializes a new instance of the <see cref="DefaultBlogService" /> class. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="urlService">The URL service.</param> /// <param name="repository">The repository.</param> /// <param name="optionService">The option service.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="securityService">The security service.</param> /// <param name="contentService">The content service.</param> /// <param name="tagService">The tag service.</param> /// <param name="pageService">The page service.</param> /// <param name="redirectService">The redirect service.</param> /// <param name="masterPageService">The master page service.</param> /// <param name="unitOfWork">The unit of work.</param> public DefaultBlogService(ICmsConfiguration configuration, IUrlService urlService, IRepository repository, IOptionService optionService, IAccessControlService accessControlService, ISecurityService securityService, IContentService contentService, ITagService tagService, IPageService pageService, IRedirectService redirectService, IMasterPageService masterPageService, IUnitOfWork unitOfWork) { this.configuration = configuration; this.urlService = urlService; this.repository = repository; this.optionService = optionService; this.accessControlService = accessControlService; this.securityService = securityService; this.contentService = contentService; this.pageService = pageService; this.redirectService = redirectService; this.masterPageService = masterPageService; this.tagService = tagService; this.unitOfWork = unitOfWork; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultBlogService" /> class. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="urlService">The URL service.</param> /// <param name="repository">The repository.</param> /// <param name="optionService">The option service.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="securityService">The security service.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="contentService">The content service.</param> /// <param name="tagService">The tag service.</param> /// <param name="pageService">The page service.</param> /// <param name="redirectService">The redirect service.</param> /// <param name="masterPageService">The master page service.</param> /// <param name="unitOfWork">The unit of work.</param> public DefaultBlogService(ICmsConfiguration configuration, IUrlService urlService, IRepository repository, IOptionService optionService, IAccessControlService accessControlService, ISecurityService securityService, ICmsConfiguration cmsConfiguration, IContentService contentService, ITagService tagService, IPageService pageService, IRedirectService redirectService, IMasterPageService masterPageService, IUnitOfWork unitOfWork) { this.configuration = configuration; this.urlService = urlService; this.repository = repository; this.optionService = optionService; this.accessControlService = accessControlService; this.securityService = securityService; this.cmsConfiguration = cmsConfiguration; this.contentService = contentService; this.pageService = pageService; this.redirectService = redirectService; this.masterPageService = masterPageService; this.tagService = tagService; this.unitOfWork = unitOfWork; }
public async Task Invoke(HttpContext context, IRedirectService redirectService) { if (context.Request.Method != "GET") { await _next(context); return; } var path = context.Request.Path.Value?.TrimStart('/'); var redirectUrl = !string.IsNullOrEmpty(path) ? await redirectService.GetRedirectUrlAndTrackAsync(path, context) : null; if (redirectUrl != null) { context.Response.Redirect(redirectUrl); return; } await _next(context); }
public LoginController(IAuthenticationService authentication, IRedirectService redirect) { _auth = authentication; _redirect = redirect; }
public RedirectMiddleware(RequestDelegate next, IRedirectService redirectService) { _next = next; _redirectService = redirectService; }
public override void Init() { base.Init(); _redirectService = _container.Resolve <IRedirectService>(); }
private DefaultBlogMLService GetBlogService(IRepository repository, IBlogService blogService, IRedirectService redirectService = null) { if (redirectService == null) { redirectService = new Mock<IRedirectService>().Object; } var unitOfWork = new Mock<IUnitOfWork>().Object; var pageService = new Mock<IPageService>().Object; var cmsConfiguration = new Mock<ICmsConfiguration>().Object; var httpContextAccessor = new Mock<IHttpContextAccessor>().Object; var urlService = new DefaultUrlService(unitOfWork, new CmsConfigurationSection()); var importService = new DefaultBlogMLService(repository, urlService, blogService, unitOfWork, redirectService, pageService, cmsConfiguration, httpContextAccessor); return importService; }
public Shell( ShellViewModel shellViewModel, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IUserDialogService userDialogService, IRedirectService redirectService ) : this() { _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _userDialogService = userDialogService; _redirectService = redirectService; DataContext = shellViewModel; var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher (); requestDispatcher.Add ( new GetTimeOutIntervalRequest () ); requestDispatcher.ProcessRequests ( HandleGetTimeOutIntervalCompleted, HandleGetTimeOutIntervalException ); }
public RegistrationController(IAuthenticationService auth, INotificationService notification, IRedirectService redirect) { _auth = auth; _notification = notification; _redirect = redirect; }
public RedirectsService(IRepository repository, IRedirectService redirectService) { this.repository = repository; this.redirectService = redirectService; }
/// <summary> /// Initializes a new instance of the <see cref="UIHandlerFactory" /> type. /// </summary> /// <param name="mappingService">The mapping service.</param> /// <param name="redirectService">The redirect service.</param> public UIHandlerFactory(IMappingService mappingService, IRedirectService redirectService) { this._mappingService = mappingService; this._redirectService = redirectService; }
/// <summary> /// Initializes a new instance of the <see cref="RedirectHandlerFactory"/> type. /// </summary> /// <param name="redirectService">The redirect service.</param> public RedirectHandlerFactory(IRedirectService redirectService) { this._redirectService = redirectService; }
public DefaultBlogSaveService(ICmsConfiguration configuration, IUrlService urlService, IRepository repository, IOptionService optionService, IAccessControlService accessControlService, ISecurityService securityService, IContentService contentService, ITagService tagService, IPageService pageService, IRedirectService redirectService, IMasterPageService masterPageService, IUnitOfWork unitOfWork) : base(configuration, urlService, repository, optionService, accessControlService, securityService, contentService, tagService, pageService, redirectService, masterPageService, unitOfWork) { }