public ApiControllerBase(ControllerServicesContext context)
 {
     Mapper        = context.Mapper;
     EmailService  = context.EmailService;
     LinkGenerator = context.LinkGenerator;
     AppSettings   = context.AppSettings;
 }
 public GalleryController(ControllerServicesContext context, IBlogApplicationService blogService, IFileSystemGenericRepositoryFactory fileSystemGenericRepositoryFactory)
     : base(context)
 {
     _blogService = blogService;
     _fileSystemGenericRepositoryFactory = fileSystemGenericRepositoryFactory;
     _hostingEnvironment = context.HostingEnvironment;
 }
Example #3
0
        public ApiControllerAuthenticationBase(
            ControllerServicesContext context,
            RoleManager <IdentityRole> roleManager,
            UserManager <TUser> userManager,
            SignInManager <TUser> signInManager,
            TokenSettings tokenSettings,
            PasswordSettings passwordSettings,
            EmailTemplates emailTemplates)
            : base(context)
        {
            _resetPasswordEmailTemplate = emailTemplates.ResetPassword;

            _passwordResetCallbackUrl = passwordSettings.PasswordResetCallbackUrl;

            _roleManager   = roleManager;
            _userManager   = userManager;
            _signInManager = signInManager;

            _privateSymmetricKey               = tokenSettings.Key;
            _privateSigningKeyPath             = tokenSettings.PrivateKeyPath;
            _privateSigningCertificatePath     = tokenSettings.PrivateCertificatePath;
            _privateSigningCertificatePassword = tokenSettings.PrivateCertificatePasword;

            _localIssuer        = tokenSettings.LocalIssuer;
            _audience           = tokenSettings.Audiences.Split(",").First().Trim();
            _tokenExpiryMinutes = tokenSettings.ExpiryMinutes;
        }
 public LocationsController(ControllerServicesContext context, ILocationApplicationService locationService, IFileSystemGenericRepositoryFactory fileSystemGenericRepositoryFactory)
     : base(context)
 {
     _locationService = locationService;
     _fileSystemGenericRepositoryFactory = fileSystemGenericRepositoryFactory;
     _hostingEnvironment = context.HostingEnvironment;
 }
 public MvcControllerFileMetadataReadOnlyAuthorizeBase(ControllerServicesContext context, string physicalPath, Boolean includeSubDirectories, Boolean admin, IFileSystemGenericRepositoryFactory fileSystemGenericRepositoryFactory)
     : base(context)
 {
     PhysicalPath          = physicalPath;
     IncludeSubDirectories = includeSubDirectories;
     Admin = admin;
     FileSystemGenericRepositoryFactory = fileSystemGenericRepositoryFactory;
 }
 public ApiControllerRegistrationBase(
     ControllerServicesContext context,
     RoleManager <IdentityRole> roleManager,
     UserManager <TUser> userManager,
     SignInManager <TUser> signInManager,
     TokenSettings tokenSettings,
     PasswordSettings passwordSettings,
     EmailTemplates emailTemplates)
     : base(context, roleManager, userManager, signInManager, tokenSettings, passwordSettings, emailTemplates)
 {
     _welcomeEmailTemplate = emailTemplates.Welcome;
 }
 public AuthController(
     ControllerServicesContext context,
     RoleManager <IdentityRole> roleManager,
     UserManager <User> userManager,
     SignInManager <User> signInManager,
     TokenSettings tokenSettings,
     PasswordSettings passwordSettings,
     EmailTemplates emailTemplates,
     AppSettings appSettings)
     : base(context, roleManager, userManager, signInManager, tokenSettings, passwordSettings, emailTemplates)
 {
 }
 public HomeController(ControllerServicesContext context, IBlogApplicationService blogService, ILocationApplicationService locationService, IFileSystemGenericRepositoryFactory fileSystemGenericRepositoryFactory, IMapper mapper, IEmailService emailService, IMailingListApplicationService mailingListService, IWebHostEnvironment hostingEnvironment, JsonNavigationService navigationService)
     : base(context, navigationService)
 {
     if (blogService == null)
     {
         throw new ArgumentNullException("blogService");
     }
     _blogService     = blogService;
     _locationService = locationService;
     _fileSystemGenericRepositoryFactory = fileSystemGenericRepositoryFactory;
     _mailingListService = mailingListService;
     _hostingEnvironment = hostingEnvironment;
 }
Example #9
0
 public LocationsController(ControllerServicesContext context, ILocationApplicationService service)
     : base(context, true, service)
 {
 }
Example #10
0
 public BlogPostsController(ControllerServicesContext context, IBlogPostApplicationService service)
     : base(context, service)
 {
 }
 public ApiControllerEntityReadOnlyAuthorizeBase(ControllerServicesContext context, IEntityService service)
     : base(context)
 {
     Service = service;
 }
 public MvcControllerAdminAuthorizeBase(ControllerServicesContext context)
     : base(context)
 {
 }
Example #13
0
 public BlogController(ControllerServicesContext context, IBlogApplicationService blogService)
     : base(context)
 {
     _blogService = blogService;
 }
 public TestimonialsController(ControllerServicesContext context, ITestimonialApplicationService service)
     : base(context, true, service)
 {
 }
Example #15
0
 public MvcControllerEntityReadOnlyAuthorizeBase(ControllerServicesContext context, Boolean admin, IEntityService service)
     : base(context)
 {
     Admin   = admin;
     Service = service;
 }
Example #16
0
 public CategoriesController(ControllerServicesContext context, ICategoryApplicationService service)
     : base(context, true, service)
 {
 }
 public AuthorsController(ControllerServicesContext context, IAuthorApplicationService service)
     : base(context, service)
 {
 }
 public ContentTextsController(ControllerServicesContext context, IContentTextApplicationService service)
     : base(context, true, service)
 {
 }
 public MetadataController(ControllerServicesContext context, IFileSystemGenericRepositoryFactory fileSytemGenericRepositoryFactory, IMapper mapper, IEmailService emailService, AppSettings appSettings, IWebHostEnvironment hostingEnvironment)
     : base(context, hostingEnvironment.MapWwwPath(appSettings.Folders[Folders.Files]), true, true, fileSytemGenericRepositoryFactory, mapper, emailService)
 {
 }
Example #20
0
 public MailingListController(ControllerServicesContext context, IMailingListApplicationService service)
     : base(context, true, service)
 {
 }
Example #21
0
 public CqrsController(ControllerServicesContext context, ICqrsMediator cqrsMediator)
     : base(context, cqrsMediator)
 {
 }
 public TagsController(ControllerServicesContext context, ITagApplicationService service)
     : base(context, true, service)
 {
 }
Example #23
0
 public MvcControllerEntityAuthorizeBase(ControllerServicesContext context, Boolean admin, IEntityService service)
     : base(context, admin, service)
 {
 }
Example #24
0
 public ApiControllerCqrsAuthorizeBase(ControllerServicesContext context, ICqrsMediator cqrsMediator)
     : base(context)
 {
     _cqrsMediator = cqrsMediator;
 }
Example #25
0
 public ApiControllerEntityAuthorizeBase(ControllerServicesContext context, IEntityService service)
     : base(context, service)
 {
 }
 public VideosController(ControllerServicesContext context, IFileSystemGenericRepositoryFactory fileSystemGenericRepositoryFactory)
     : base(context)
 {
     _fileSystemGenericRepositoryFactory = fileSystemGenericRepositoryFactory;
     _hostingEnvironment = context.HostingEnvironment;
 }
Example #27
0
 public MvcControllerHomeBase(ControllerServicesContext context, JsonNavigationService navigationService)
     : base(context)
 {
     _hostingEnvironment = context.HostingEnvironment;
     _navigationService  = navigationService;
 }
Example #28
0
 public ProjectsController(ControllerServicesContext context, IProjectApplicationService service)
     : base(context, service)
 {
 }
 public RootController(ControllerServicesContext context)
     : base(context)
 {
 }
Example #30
0
 public HomeController(ControllerServicesContext context)
     : base(context)
 {
 }