本文整理汇总了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>();
}
示例2: ConfigureObjectContainer
public static void ConfigureObjectContainer(IObjectContainer container)
{
container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
container.AddComponent<IRecipeBuilder, RecipeBuilder>();
container.AddComponent<IBookBuilder, BookBuilder>();
container.AddComponent<IPageBuilder, PageBuilder>();
}
示例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>();
}
示例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>();
}
示例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>();
}
示例6: ConfigureContainer
static void ConfigureContainer(IObjectContainer container)
{
container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
}
示例7: ConfigureDependencies
private static void ConfigureDependencies(IObjectContainer container)
{
container.AddComponent<IPhotoProvider, PhotoProvider>();
container.AddComponent<IPhotoRepository, PhotoRepository>();
}
示例8: ConfigureDependencies
private void ConfigureDependencies(IObjectContainer container)
{
Xyperico.Authentication.MongoDB.Utility.Initialize(container);
container.AddComponent<IUserNameValidator, FilebasedUserNameValidator>();
container.AddComponent<ICurrentUserService, CurrentUserService>();
}
示例9: ConfigureDependencies
private void ConfigureDependencies(IObjectContainer container)
{
Chimera.Authentication.Views.MongoDB.Utility.Initialize(container);
container.AddComponent<IUserNameValidator, FilebasedUserNameValidator>();
}
示例10: ConfigureDependencies
private static void ConfigureDependencies(IObjectContainer container)
{
container.AddComponent<IUserRepository, UserRepository>();
}
示例11: ConfigureDependencies
private static void ConfigureDependencies(IObjectContainer container)
{
container.AddComponent<IBlogRepository, BlogRepository>();
container.AddComponent<IBlogPostRepository, BlogPostRepository>();
}
示例12: ConfigureContainer
public static void ConfigureContainer(IObjectContainer container)
{
container.AddComponent<IApplicationBaseAddress, WebContextApplicationBaseUrl>();
container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
container.RegisterInstance<IObjectResolver>(Xyperico.Base.ObjectContainer.Container);
}
示例13: ConfigureObjectContainer
public static void ConfigureObjectContainer(IObjectContainer container)
{
container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
container.AddComponent<IProfileBuilder, ProfileBuilder>();
}