本文整理汇总了C#中IServiceCollection.AddNew方法的典型用法代码示例。如果您正苦于以下问题:C# IServiceCollection.AddNew方法的具体用法?C# IServiceCollection.AddNew怎么用?C# IServiceCollection.AddNew使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IServiceCollection
的用法示例。
在下文中一共展示了IServiceCollection.AddNew方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddGlobalServices
protected virtual void AddGlobalServices(IServiceCollection services)
{
services.AddNew<EnterpriseLibraryAuthorizationService, IAuthorizationService>();
services.AddNew<PermissionsCatalog, IPermissionsCatalog>();
services.AddNew<RolesCatalog, IRolesCatalog>();
services.AddNew<SiteMapBuilderService, ISiteMapBuilderService>();
}
示例2: AddModuleServices
protected virtual void AddModuleServices(IServiceCollection moduleServices)
{
moduleServices.AddNew<BeheerService, IBeheerService>();
moduleServices.AddNew<CategorieService, ICategorieService>();
moduleServices.AddNew<TrefwoordService, ITrefwoordService>();
//moduleServices.AddNew<ThemasService, IBeheerService>();
//moduleServices.AddNew<CategorieService, ICategorieService>();
//moduleServices.AddNew<TrefwoordService, IBeheerService>();
// TODO: add a service that will be visible to this module
}
示例3: AddGlobalServices
protected virtual void AddGlobalServices(IServiceCollection globalServices)
{
globalServices.AddNew<WorkflowSupportService, IWorkflowSupportService>();
globalServices.AddNew<BillDemandWorkflowService, IBillDemandWorkflowService>();
globalServices.AddNew<WorkflowParcelService, IWorkflowParcelService>();
globalServices.AddNew<WorkflowInitService, IWorkflowInitService>();
}
示例4: AddGlobalServices
protected virtual void AddGlobalServices(IServiceCollection services)
{
services.AddNew<SiteMapBuilderService, ISiteMapBuilderService>();
}
示例5: AddGlobalServices
protected virtual void AddGlobalServices(IServiceCollection globalServices)
{
globalServices.AddNew<GeoLocationServiceAgent, IGeoLocationServiceAgent>();
//globalServices.AddNew<GeoLocationServiceAgentStub, IGeoLocationServiceAgent>();
}
示例6: AddGlobalServices
protected virtual void AddGlobalServices(IServiceCollection globalServices)
{
globalServices.AddNew<MasterDetailService, IMasterDetailService>();
// TODO: add a service that will be visible to any module
}
示例7: AddGlobalServices
protected virtual void AddGlobalServices(IServiceCollection globalServices)
{
globalServices.AddNew<EnterpriseLibraryAuthorizationService, IAuthorizationService>();
globalServices.AddNew<SiteMapBuilderService, ISiteMapBuilderService>();
}
示例8: AddGlobalServices
protected virtual void AddGlobalServices(IServiceCollection globalServices)
{
globalServices.AddNew<SettingsService, ISettingsService>();
globalServices.AddNew<WorkflowTicketService, IWorkflowTicketService>();
globalServices.AddNew<WorkflowStateService, IWorkflowStateService>();
globalServices.AddNew<EmployeeService, IEmployeeService>();
globalServices.AddNew<SecurityEntityService, ISecurityEntityService>();
globalServices.AddNew<BillDemandBusinessService, IBillDemandBuinessService>();
globalServices.AddNew<AuthenticationService, IAuthenticationService>();
globalServices.AddNew<UpdateRatesBuinessService, IUpdateRatesService>();
globalServices.AddNew<ContractUploadBuinessService, IContractUploadBuinessService>();
globalServices.AddNew<CovenanteeUploadBuinessService, ICovenanteeUploadBuinessService>();
globalServices.AddNew<DemandAdjustmentBusinessService, IDemandAdjustmentBusinessService>();
globalServices.AddNew<BillDemandExportService,IBillDemandExportService>();
globalServices.AddNew<DemandBusinessService, IDemandBusinessService>();
globalServices.AddNew<EmailService, IEmailService>();
globalServices.AddNew<DemandNotificationService, IDemandNotificationService>();
globalServices.AddNew<BillDemandNotificationService, IBillDemandNotificationService>();
}
示例9: AddModuleServices
protected virtual void AddModuleServices(IServiceCollection moduleServices)
{
moduleServices.AddNew<CustomerService, ICustomerService>();
}
示例10: AddGlobalServices
protected virtual void AddGlobalServices(IServiceCollection globalServices)
{
globalServices.AddNew<RedirectNavigationService, INavigationService>();
}
示例11: AddGlobalServices
protected virtual void AddGlobalServices(IServiceCollection globalServices)
{
globalServices.AddNew<LcboStoresServiceAgent, ILcboStoresService>();
}
示例12: AddModuleServices
protected virtual void AddModuleServices(IServiceCollection moduleServices)
{
moduleServices.AddNew<AccountServiceAgent, IAccountServiceAgent>();
}
示例13: AddModuleServices
protected virtual void AddModuleServices(IServiceCollection moduleServices)
{
moduleServices.AddNew<ProductService, IProductService>();
moduleServices.AddNew<EmployeeService, IEmployeeService>();
moduleServices.AddNew<OrdersService, IOrdersService>();
moduleServices.AddNew<EmployeeConverter, IBusinessPresentationConverter<Employee, EmployeeDisplay>>();
moduleServices.AddNew<OrdersConverter, IBusinessPresentationConverter<Order, OrderInfo>>();
moduleServices.AddNew<OrderDetailsConverter, IBusinessPresentationConverter<OrderDetail, OrderItemLine>>();
// This service has been registered in the Orders\Web.config file to provide an example.
// moduleServices.AddNew<OrderEntryFlowService, IOrderEntryFlowService>();
}
示例14: AddGlobalServices
protected virtual void AddGlobalServices(IServiceCollection globalServices)
{
globalServices.AddNew<AuthorizationService, IAuthorizationService>();
}
示例15: AddGlobalServices
protected virtual void AddGlobalServices(IServiceCollection globalServices)
{
globalServices.AddNew<CategorieService, ICategorieService>();
globalServices.AddNew<TrefwoordService, ITrefwoordService>();
// TODO: add a service that will be visible to any module
}