当前位置: 首页>>代码示例>>C#>>正文


C# IServiceCollection.AddNew方法代码示例

本文整理汇总了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>();
 }
开发者ID:riseandcode,项目名称:open-wscf-2010,代码行数:7,代码来源:ShellModuleInitializer.cs

示例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
 }
开发者ID:Letractively,项目名称:henoch,代码行数:10,代码来源:BeheerModuleInitializer.cs

示例3: AddGlobalServices

 protected virtual void AddGlobalServices(IServiceCollection globalServices)
 { 
     globalServices.AddNew<WorkflowSupportService, IWorkflowSupportService>();
     globalServices.AddNew<BillDemandWorkflowService, IBillDemandWorkflowService>();
     globalServices.AddNew<WorkflowParcelService, IWorkflowParcelService>();
     globalServices.AddNew<WorkflowInitService, IWorkflowInitService>();
   
     
     
     
 }
开发者ID:Why-Not-Sky,项目名称:WorkflowEngine.NET,代码行数:11,代码来源:WorkflowModuleInitializer.cs

示例4: AddGlobalServices

 protected virtual void AddGlobalServices(IServiceCollection services)
 {
     services.AddNew<SiteMapBuilderService, ISiteMapBuilderService>();
 }
开发者ID:riseandcode,项目名称:open-wscf-2010,代码行数:4,代码来源:ShellModuleInitializer.cs

示例5: AddGlobalServices

 protected virtual void AddGlobalServices(IServiceCollection globalServices)
 {
     globalServices.AddNew<GeoLocationServiceAgent, IGeoLocationServiceAgent>();
     //globalServices.AddNew<GeoLocationServiceAgentStub, IGeoLocationServiceAgent>();
 }
开发者ID:claq2,项目名称:lcbodrinkfinder,代码行数:5,代码来源:GeoLocationModuleInitializer.cs

示例6: AddGlobalServices

 protected virtual void AddGlobalServices(IServiceCollection globalServices)
 {
     globalServices.AddNew<MasterDetailService, IMasterDetailService>();
     // TODO: add a service that will be visible to any module
 }
开发者ID:Letractively,项目名称:henoch,代码行数:5,代码来源:MasterDetailModuleInitializer.cs

示例7: AddGlobalServices

 protected virtual void AddGlobalServices(IServiceCollection globalServices)
 {
     globalServices.AddNew<EnterpriseLibraryAuthorizationService, IAuthorizationService>();
     globalServices.AddNew<SiteMapBuilderService, ISiteMapBuilderService>();
 }
开发者ID:claq2,项目名称:lcbodrinkfinder,代码行数:5,代码来源:ShellModuleInitializer.cs

示例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>();
  
 }
开发者ID:Why-Not-Sky,项目名称:WorkflowEngine.NET,代码行数:20,代码来源:BusinessModuleInitializer.cs

示例9: AddModuleServices

 protected virtual void AddModuleServices(IServiceCollection moduleServices)
 {
     moduleServices.AddNew<CustomerService, ICustomerService>();
 }
开发者ID:riseandcode,项目名称:open-wscf-2010,代码行数:4,代码来源:CustomerManagerModuleInitializer.cs

示例10: AddGlobalServices

 protected virtual void AddGlobalServices(IServiceCollection globalServices)
 {
     globalServices.AddNew<RedirectNavigationService, INavigationService>();
 }
开发者ID:riseandcode,项目名称:open-wscf-2010,代码行数:4,代码来源:NavigationModuleInitializer.cs

示例11: AddGlobalServices

 protected virtual void AddGlobalServices(IServiceCollection globalServices)
 {
     globalServices.AddNew<LcboStoresServiceAgent, ILcboStoresService>();
 }
开发者ID:claq2,项目名称:lcbodrinkfinder,代码行数:4,代码来源:LcboStoresServiceModuleInitializer.cs

示例12: AddModuleServices

 protected virtual void AddModuleServices(IServiceCollection moduleServices)
 {
     moduleServices.AddNew<AccountServiceAgent, IAccountServiceAgent>();
 }
开发者ID:riseandcode,项目名称:open-wscf-2010,代码行数:4,代码来源:EFTModuleInitializer.cs

示例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>();
        }
开发者ID:riseandcode,项目名称:open-wscf-2010,代码行数:13,代码来源:OrdersModuleInitializer.cs

示例14: AddGlobalServices

 protected virtual void AddGlobalServices(IServiceCollection globalServices)
 {
    globalServices.AddNew<AuthorizationService, IAuthorizationService>();
 }
开发者ID:Why-Not-Sky,项目名称:WorkflowEngine.NET,代码行数:4,代码来源:SecurityModuleInitializer.cs

示例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
 }
开发者ID:Letractively,项目名称:henoch,代码行数:6,代码来源:BeheerModuleInitializer.cs


注:本文中的IServiceCollection.AddNew方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。