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


C# IObjectContainer.AddComponent方法代码示例

本文整理汇总了C#中IObjectContainer.AddComponent方法的典型用法代码示例。如果您正苦于以下问题:C# IObjectContainer.AddComponent方法的具体用法?C# IObjectContainer.AddComponent怎么用?C# IObjectContainer.AddComponent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IObjectContainer的用法示例。


在下文中一共展示了IObjectContainer.AddComponent方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Setup

        public static void Setup(IObjectContainer container)
        {
            Chimera.Authentication.Views.MongoDB.Utility.Initialize(container);

              container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
              container.AddComponent<IUserAccountViewBuilder, UserAccountViewBuilder>();
        }
开发者ID:JornWildt,项目名称:Chimera,代码行数:7,代码来源:SetupFixture.cs

示例2: ConfigureObjectContainer

        public static void ConfigureObjectContainer(IObjectContainer container)
        {
            container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();

              container.AddComponent<IRecipeBuilder, RecipeBuilder>();
              container.AddComponent<IBookBuilder, BookBuilder>();
              container.AddComponent<IPageBuilder, PageBuilder>();
        }
开发者ID:JornWildt,项目名称:Peach,代码行数:8,代码来源:SetupFixture.cs

示例3: Setup

    public static void Setup(IObjectContainer container)
    {
      Xyperico.Authentication.MongoDB.Utility.Initialize(container);

      container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
      container.AddComponent<IUserBuilder, UserBuilder>();
      container.AddComponent<IUserNameValidator, FilebasedUserNameValidator>();
    }
开发者ID:JornWildt,项目名称:Xyperico.Authentication,代码行数:8,代码来源:SetupFixture.cs

示例4: Setup

    public static void Setup(IObjectContainer container)
    {
      Xyperico.Blogging.MongoDB.Utility.Initialize(container);

      container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
      container.AddComponent<IBlogBuilder, BlogBuilder>();
      container.AddComponent<IBlogPostBuilder, BlogPostBuilder>();
    }
开发者ID:JornWildt,项目名称:Xyperico.Blog,代码行数:8,代码来源:SetupFixture.cs

示例5: ConfigureDependencies

        private static void ConfigureDependencies(IObjectContainer container)
        {
            container.AddComponent<IRecipeProvider, RecipeProvider>();
              container.AddComponent<IRecipeRepository, RecipeRepository>();

              container.AddComponent<IPageProvider, PageProvider>();
              container.AddComponent<IPageRepository, PageRepository>();

              container.AddComponent<IBookProvider, BookProvider>();
              container.AddComponent<IBookRepository, BookRepository>();
        }
开发者ID:JornWildt,项目名称:Peach,代码行数:11,代码来源:Utility.cs

示例6: ConfigureContainer

 static void ConfigureContainer(IObjectContainer container)
 {
     container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
 }
开发者ID:JornWildt,项目名称:Peach,代码行数:4,代码来源:Program.cs

示例7: ConfigureDependencies

 private static void ConfigureDependencies(IObjectContainer container)
 {
     container.AddComponent<IPhotoProvider, PhotoProvider>();
       container.AddComponent<IPhotoRepository, PhotoRepository>();
 }
开发者ID:JornWildt,项目名称:Peach,代码行数:5,代码来源:Utility.cs

示例8: ConfigureDependencies

 private void ConfigureDependencies(IObjectContainer container)
 {
   Xyperico.Authentication.MongoDB.Utility.Initialize(container);
   container.AddComponent<IUserNameValidator, FilebasedUserNameValidator>();
   container.AddComponent<ICurrentUserService, CurrentUserService>();
 }
开发者ID:JornWildt,项目名称:Xyperico.Authentication,代码行数:6,代码来源:AccountAreaRegistration.cs

示例9: ConfigureDependencies

 private void ConfigureDependencies(IObjectContainer container)
 {
     Chimera.Authentication.Views.MongoDB.Utility.Initialize(container);
       container.AddComponent<IUserNameValidator, FilebasedUserNameValidator>();
 }
开发者ID:JornWildt,项目名称:Chimera,代码行数:5,代码来源:UserAccountsAreaRegistration.cs

示例10: ConfigureDependencies

 private static void ConfigureDependencies(IObjectContainer container)
 {
   container.AddComponent<IUserRepository, UserRepository>();
 }
开发者ID:JornWildt,项目名称:Xyperico.Authentication,代码行数:4,代码来源:Utility.cs

示例11: ConfigureDependencies

 private static void ConfigureDependencies(IObjectContainer container)
 {
   container.AddComponent<IBlogRepository, BlogRepository>();
   container.AddComponent<IBlogPostRepository, BlogPostRepository>();
 }
开发者ID:JornWildt,项目名称:Xyperico.Blog,代码行数:5,代码来源:Utility.cs

示例12: ConfigureContainer

 public static void ConfigureContainer(IObjectContainer container)
 {
     container.AddComponent<IApplicationBaseAddress, WebContextApplicationBaseUrl>();
       container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
       container.RegisterInstance<IObjectResolver>(Xyperico.Base.ObjectContainer.Container);
 }
开发者ID:JornWildt,项目名称:Xyperico,代码行数:6,代码来源:Global.cs

示例13: ConfigureObjectContainer

        public static void ConfigureObjectContainer(IObjectContainer container)
        {
            container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();

              container.AddComponent<IProfileBuilder, ProfileBuilder>();
        }
开发者ID:JornWildt,项目名称:Peach,代码行数:6,代码来源:SetupFixture.cs


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