public ApplicationAboutCommandContainer(ICommandManager commandManager, IAboutService aboutService)
            : base(Commands.Application.About, commandManager)
        {
            Argument.IsNotNull(() => aboutService);

            _aboutService = aboutService;
        }
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            //if (env.IsDevelopment())
            //{
            //    app.UseBrowserLink();
            //    app.UseDeveloperExceptionPage();
            //}
            //else
            //{
            //    app.UseExceptionHandler("/Home/Error");
            //}

            //app.UseStaticFiles();

            //app.UseMvc(routes =>
            //{
            //    routes.MapRoute(
            //        name: "default",
            //        template: "{controller=Home}/{action=Index}/{id?}");
            //});

            app.Run(async(context) =>
            {
                if (context.Request.Query.ContainsKey("about"))
                {
                    string searchTerm     = context.Request.Query["about"];
                    IAboutService service = context.RequestServices.GetService <IAboutService>();
                    string content        = service.Reply(searchTerm);
                    await context.Response.WriteAsync(content);
                    return;
                }
                await context.Response.WriteAsync("Hehehe");
            });
        }
        public ApplicationAboutCommandContainer(ICommandManager commandManager, IAboutService aboutService)
            : base(Commands.Application.About, commandManager)
        {
            Argument.IsNotNull(() => aboutService);

            _aboutService = aboutService;
        }
        public HelpAboutCommandContainer(ICommandManager commandManager, IAboutService aboutService)
            : base(Commands.Help.About, commandManager)
        {
            Argument.IsNotNull(() => aboutService);

            _aboutService = aboutService;
        }
Пример #5
0
        public AboutServiceTests()
        {
            this.InitializeMapper();
            this.InitializeDatabaseAndRepositories();
            this.InitializeFields();

            this.aboutService = new AboutService(this.faqEntriesRepository);
        }
Пример #6
0
 public HomeController(ISliderService sliderService, IAboutService aboutService, INewsService newsService, IAboutServicesService aboutServicesService, IClientsLogoService clientsLogoService, IInfoService infoService) : base(infoService)
 {
     _sliderService        = sliderService;
     _aboutService         = aboutService;
     _newsService          = newsService;
     _aboutServicesService = aboutServicesService;
     _clientsLogoService   = clientsLogoService;
 }
Пример #7
0
 public UtilityController(IAboutService aboutService, ITermsService termsService, IPolicyService policyService, IFeeService feeService, IContactService contactService, IHomeService homeService)
 {
     this.aboutService   = aboutService;
     this.termsService   = termsService;
     this.policyService  = policyService;
     this.feeService     = feeService;
     this.contactService = contactService;
     this.homeService    = homeService;
 }
Пример #8
0
 public HomeController(
     IPostsService postsService,
     IAboutService aboutService,
     ILogger <HomeController> logger)
 {
     this.postsService = postsService;
     this.aboutService = aboutService;
     this.logger       = logger;
 }
Пример #9
0
        //--------------------------------------------------------------
        #region Creation & Cleanup
        //--------------------------------------------------------------

        /// <summary>
        /// Initializes a new instance of the <see cref="AboutViewModel"/> class.
        /// </summary>
        /// <param name="aboutService">The <see cref="IAboutService"/>.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="aboutService"/> is <see langword="null"/>.
        /// </exception>
        public AboutViewModel(IAboutService aboutService)
        {
            if (aboutService == null)
                throw new ArgumentNullException(nameof(aboutService));

            AboutService = aboutService;
            DisplayName = Invariant($"About {AboutService.ApplicationName}");
            CloseAboutDialogCommand = new DelegateCommand(() => Conductor.DeactivateItemAsync(this, true));
            CopyToClipboardCommand = new DelegateCommand(() => AboutService.CopyInformationToClipboard());
        }
Пример #10
0
        //--------------------------------------------------------------
        #region Creation & Cleanup
        //--------------------------------------------------------------

        /// <summary>
        /// Initializes a new instance of the <see cref="AboutViewModel"/> class.
        /// </summary>
        /// <param name="aboutService">The <see cref="IAboutService"/>.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="aboutService"/> is <see langword="null"/>.
        /// </exception>
        public AboutViewModel(IAboutService aboutService)
        {
            if (aboutService == null)
            {
                throw new ArgumentNullException(nameof(aboutService));
            }

            AboutService            = aboutService;
            DisplayName             = Invariant($"About {AboutService.ApplicationName}");
            CloseAboutDialogCommand = new DelegateCommand(() => Conductor.DeactivateItemAsync(this, true));
            CopyToClipboardCommand  = new DelegateCommand(() => AboutService.CopyInformationToClipboard());
        }
Пример #11
0
 public StatisticController(ICategoryService categoryService,
                            IContentService contentService, IAboutService aboutService,
                            IAuthorService authorService, IContactService contactService,
                            ITitleService titleService)
 {
     _categoryService = categoryService;
     _contentService  = contentService;
     _aboutService    = aboutService;
     _authorService   = authorService;
     _contactService  = contactService;
     _titleService    = titleService;
 }
Пример #12
0
		public Services(
			IEntryService entryService,
			IUserService userService,
			IConfigService configService,
			IMessageService messageService,
			ICloudService cloudService,
			IThemeService themeService,
			IAboutService aboutService,
			IImageService imageService)
		{
			Entry = entryService;
			User = userService;
			Config = configService;
			Message = messageService;
			Cloud = cloudService;
			Theme = themeService;
			About = aboutService;
			Image = imageService;
		}
Пример #13
0
 public Services(
     IEntryService entryService,
     IUserService userService,
     IConfigService configService,
     IMessageService messageService,
     ICloudService cloudService,
     IThemeService themeService,
     IAboutService aboutService,
     IImageService imageService)
 {
     Entry   = entryService;
     User    = userService;
     Config  = configService;
     Message = messageService;
     Cloud   = cloudService;
     Theme   = themeService;
     About   = aboutService;
     Image   = imageService;
 }
Пример #14
0
 public AboutController(IUnitOfWork uow, IAboutService aboutService)
 {
     _uow         = uow;
     _aboutSrvice = aboutService;
 }
Пример #15
0
 public AboutController(IUnitOfWork unitOfWork, IAboutService aboutService)
 {
     this._aboutService = aboutService;
     this._unitOfWork = unitOfWork;
 }
Пример #16
0
 public HomeController(IProductCategoryService productCategoryService, ISlideService slideService, IAboutService aboutService)
 {
     _productCategoryService = productCategoryService;
     _slideService           = slideService;
     _aboutService           = aboutService;
 }
Пример #17
0
 public AboutFacade(IAboutService AboutService, IAboutTranslationService typeTranslationService)
 {
     _AboutService           = AboutService;
     _typeTranslationService = typeTranslationService;
 }
Пример #18
0
 public AboutsController(IAboutService aboutManager)
 {
     this.aboutManager = aboutManager;
 }
Пример #19
0
 public AboutModel(IAboutService aboutService) : base(aboutService)
 {
 }
Пример #20
0
 public AboutController(IAboutService _service)
 {
     service = _service;
 }
Пример #21
0
 public AboutController(IAboutService context)
 {
     _context = context;
 }
Пример #22
0
 public AboutController(IAboutService aboutService, IAboutServicesService aboutServicesService, IInfoService infoService) : base(infoService)
 {
     _aboutService         = aboutService;
     _aboutServicesService = aboutServicesService;
 }
Пример #23
0
 public AboutServiceTest()
 {
     this.service = new AboutService();
 }
Пример #24
0
 public AboutUsController(IAboutService aboutService)
 {
     _aboutService = aboutService;
 }
Пример #25
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            //if (env.IsDevelopment())
            //{
            //    app.UseDeveloperExceptionPage();
            //}
            //else
            //{
            //    app.UseExceptionHandler("/Error");
            //}

            //app.UseStaticFiles();

            //app.UseRouting();

            //app.UseAuthorization();

            //app.UseEndpoints(endpoints =>
            //{
            //    endpoints.MapRazorPages();
            //});
            app.Run(async context =>
            {
                if (context.Request.Query.ContainsKey("ui"))
                {
                    var tag = context.Request.Query["ui"];
                    CultureInfo.CurrentUICulture = new CultureInfo(tag);
                }
                if (context.Request.Query.ContainsKey("about"))
                {
                    var searchTerm        = context.Request.Query["about"];
                    IAboutService service = context.RequestServices.GetService <IAboutService>();
                    var content           = service.Reply(searchTerm);
                    await context.Response.WriteAsync(content);
                    return;
                }

                if (context.Request.Query.ContainsKey("help"))
                {
                    string serviceName   = context.Request.Query["help"];
                    IHelpService service = context.RequestServices.GetService <IHelpService>();

                    var content = service.GetHelpFor(serviceName);
                    await context.Response.WriteAsync(content);

                    return;
                }

                if (context.Request.Query.ContainsKey("department"))
                {
                    var department = context.Request.Query["department"];

                    IDepartmentService service = context.RequestServices.GetService <IDepartmentService>();
                    var info = service.GetInfo(department);

                    await context.Response.WriteAsync(info);

                    return;
                }

                await context.Response.WriteAsync("Welcome to App-O-Matic");
            });
        }
Пример #26
0
 public AboutController(IAboutService service)
 {
     this.service = service;
 }
Пример #27
0
 public AboutController(IAboutService aboutService)
 {
     _aboutService = aboutService ?? throw new ArgumentNullException(nameof(aboutService));
 }
 public AboutController(IUnitOfWork unitOfWork, IAboutService aboutService)
 {
     this._aboutService = aboutService;
     this._unitOfWork   = unitOfWork;
 }
Пример #29
0
 public EditAboutController(IAboutService aboutContext, IAboutSertificateService aboutSertificateContext, IFileAboutSertificateService fsContext)
 {
     _db_about            = aboutContext;
     _db_aboutSertificate = aboutSertificateContext;
     _fsContext           = fsContext;
 }
Пример #30
0
 public AppController(IAboutService service, IEmailService email)
 {
     _commentService = service;
     _emailService = email;
 }
Пример #31
0
 public AboutFacade(IAboutService AboutService, IUnitOfWorkAsync unitOfWork, IAboutTranslationService typeTranslationService) : base(unitOfWork)
 {
     _AboutService           = AboutService;
     _typeTranslationService = typeTranslationService;
 }
 public AboutController(IAboutService aboutService)
 {
     this.aboutService = aboutService;
 }
Пример #33
0
 public AboutControllerTest()
 {
     this.service    = new AboutService();
     this.controller = new AboutController(service);
 }
Пример #34
0
 public AboutController(ILogErrorService logErrorService, IAboutService aboutService) : base(logErrorService)
 {
     this.logErrorService = logErrorService;
     this.aboutService    = aboutService;
 }
Пример #35
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="AboutController" /> class.
 /// </summary>
 /// <param name="about">About interface.</param>
 public AboutController(IAboutService about)
 {
     _about = about;
 }