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 HelpAboutCommandContainer(ICommandManager commandManager, IAboutService aboutService) : base(Commands.Help.About, commandManager) { Argument.IsNotNull(() => aboutService); _aboutService = aboutService; }
public AboutServiceTests() { this.InitializeMapper(); this.InitializeDatabaseAndRepositories(); this.InitializeFields(); this.aboutService = new AboutService(this.faqEntriesRepository); }
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; }
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; }
public HomeController( IPostsService postsService, IAboutService aboutService, ILogger <HomeController> logger) { this.postsService = postsService; this.aboutService = aboutService; this.logger = logger; }
//-------------------------------------------------------------- #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()); }
//-------------------------------------------------------------- #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()); }
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; }
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; }
public AboutController(IUnitOfWork uow, IAboutService aboutService) { _uow = uow; _aboutSrvice = aboutService; }
public AboutController(IUnitOfWork unitOfWork, IAboutService aboutService) { this._aboutService = aboutService; this._unitOfWork = unitOfWork; }
public HomeController(IProductCategoryService productCategoryService, ISlideService slideService, IAboutService aboutService) { _productCategoryService = productCategoryService; _slideService = slideService; _aboutService = aboutService; }
public AboutFacade(IAboutService AboutService, IAboutTranslationService typeTranslationService) { _AboutService = AboutService; _typeTranslationService = typeTranslationService; }
public AboutsController(IAboutService aboutManager) { this.aboutManager = aboutManager; }
public AboutModel(IAboutService aboutService) : base(aboutService) { }
public AboutController(IAboutService _service) { service = _service; }
public AboutController(IAboutService context) { _context = context; }
public AboutController(IAboutService aboutService, IAboutServicesService aboutServicesService, IInfoService infoService) : base(infoService) { _aboutService = aboutService; _aboutServicesService = aboutServicesService; }
public AboutServiceTest() { this.service = new AboutService(); }
public AboutUsController(IAboutService aboutService) { _aboutService = aboutService; }
// 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"); }); }
public AboutController(IAboutService service) { this.service = service; }
public AboutController(IAboutService aboutService) { _aboutService = aboutService ?? throw new ArgumentNullException(nameof(aboutService)); }
public EditAboutController(IAboutService aboutContext, IAboutSertificateService aboutSertificateContext, IFileAboutSertificateService fsContext) { _db_about = aboutContext; _db_aboutSertificate = aboutSertificateContext; _fsContext = fsContext; }
public AppController(IAboutService service, IEmailService email) { _commentService = service; _emailService = email; }
public AboutFacade(IAboutService AboutService, IUnitOfWorkAsync unitOfWork, IAboutTranslationService typeTranslationService) : base(unitOfWork) { _AboutService = AboutService; _typeTranslationService = typeTranslationService; }
public AboutController(IAboutService aboutService) { this.aboutService = aboutService; }
public AboutControllerTest() { this.service = new AboutService(); this.controller = new AboutController(service); }
public AboutController(ILogErrorService logErrorService, IAboutService aboutService) : base(logErrorService) { this.logErrorService = logErrorService; this.aboutService = aboutService; }
/// <summary> /// Initializes a new instance of the <see cref="AboutController" /> class. /// </summary> /// <param name="about">About interface.</param> public AboutController(IAboutService about) { _about = about; }