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

            container.AddComponent <INameValueContextCollection, CallContextNamedValueCollection>();
            container.AddComponent <IUserAccountViewBuilder, UserAccountViewBuilder>();
        }
Esempio n. 2
0
        public static void Setup(IObjectContainer container)
        {
            Chimera.Authentication.Views.MongoDB.Utility.Initialize(container);

              container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
              container.AddComponent<IUserAccountViewBuilder, UserAccountViewBuilder>();
        }
    public static void Setup(IObjectContainer container)
    {
      Xyperico.Authentication.MongoDB.Utility.Initialize(container);

      container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
      container.AddComponent<IUserBuilder, UserBuilder>();
      container.AddComponent<IUserNameValidator, FilebasedUserNameValidator>();
    }
Esempio n. 4
0
        public static void ConfigureObjectContainer(IObjectContainer container)
        {
            container.AddComponent <INameValueContextCollection, CallContextNamedValueCollection>();

            container.AddComponent <IRecipeBuilder, RecipeBuilder>();
            container.AddComponent <IBookBuilder, BookBuilder>();
            container.AddComponent <IPageBuilder, PageBuilder>();
        }
Esempio n. 5
0
        public static void ConfigureObjectContainer(IObjectContainer container)
        {
            container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();

              container.AddComponent<IRecipeBuilder, RecipeBuilder>();
              container.AddComponent<IBookBuilder, BookBuilder>();
              container.AddComponent<IPageBuilder, PageBuilder>();
        }
Esempio n. 6
0
    public static void Setup(IObjectContainer container)
    {
      Xyperico.Blogging.MongoDB.Utility.Initialize(container);

      container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
      container.AddComponent<IBlogBuilder, BlogBuilder>();
      container.AddComponent<IBlogPostBuilder, BlogPostBuilder>();
    }
Esempio n. 7
0
        public static void Setup(IObjectContainer container)
        {
            SQLiteAppendOnlyStore.CreateTableIfNotExists(SqlConnectionString);

            container.AddComponent <IUserNameValidator, FilebasedUserNameValidator>();

            Chimera.Authentication.Core.ApplicationStarter.Initialize();
        }
Esempio n. 8
0
        public static void Setup(IObjectContainer container)
        {
            SQLiteAppendOnlyStore.CreateTableIfNotExists(SqlConnectionString);

              container.AddComponent<IUserNameValidator, FilebasedUserNameValidator>();

              Chimera.Authentication.Core.ApplicationStarter.Initialize();
        }
Esempio n. 9
0
        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>();
        }
Esempio n. 10
0
        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>();
        }
Esempio n. 11
0
        /// <summary>
        /// No more configuration needed for message bus - now configure something else or start the bus.
        /// </summary>
        /// <param name="cfg"></param>
        /// <returns></returns>
        public static BaseConfiguration Done(this MessageBusConfiguration cfg)
        {
            IObjectContainer      container = ObjectContainerConfigurationExtensions.GetObjectContainer(cfg);
            IDocumentStoreFactory subscriptionStoreFactory = GetSubscriptionStore(cfg);

            if (!container.HasComponent(typeof(IRouteManager)))
            {
                container.AddComponent <IRouteManager, RouteManager>();
            }
            IRouteManager routeManager = container.Resolve <IRouteManager>();

            ISubscriptionService subscriptionService = new SubscriptionService(subscriptionStoreFactory, routeManager);

            cfg.Set(SubscriptionService_SettingsKey, subscriptionService);
            container.RegisterInstance <ISubscriptionService>(subscriptionService);

            return(new BaseConfiguration(cfg));
        }
Esempio n. 12
0
 static void ConfigureContainer(IObjectContainer container)
 {
     container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
 }
Esempio n. 13
0
 private static void ConfigureDependencies(IObjectContainer container)
 {
     container.AddComponent<IPhotoProvider, PhotoProvider>();
       container.AddComponent<IPhotoRepository, PhotoRepository>();
 }
Esempio n. 14
0
 static void ConfigureContainer(IObjectContainer container)
 {
     container.AddComponent <INameValueContextCollection, CallContextNamedValueCollection>();
 }
 private void ConfigureDependencies(IObjectContainer container)
 {
   Xyperico.Authentication.MongoDB.Utility.Initialize(container);
   container.AddComponent<IUserNameValidator, FilebasedUserNameValidator>();
   container.AddComponent<ICurrentUserService, CurrentUserService>();
 }
Esempio n. 16
0
        public static void ConfigureObjectContainer(IObjectContainer container)
        {
            container.AddComponent <INameValueContextCollection, CallContextNamedValueCollection>();

            container.AddComponent <IProfileBuilder, ProfileBuilder>();
        }
Esempio n. 17
0
 private void ConfigureDependencies(IObjectContainer container)
 {
     Chimera.Authentication.Views.MongoDB.Utility.Initialize(container);
     container.AddComponent <IUserNameValidator, FilebasedUserNameValidator>();
 }
 private void ConfigureDependencies(IObjectContainer container)
 {
     Chimera.Authentication.Views.MongoDB.Utility.Initialize(container);
       container.AddComponent<IUserNameValidator, FilebasedUserNameValidator>();
 }
Esempio n. 19
0
 public static void ConfigureContainer(IObjectContainer container)
 {
     container.AddComponent<IApplicationBaseAddress, WebContextApplicationBaseUrl>();
       container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();
       container.RegisterInstance<IObjectResolver>(Xyperico.Base.ObjectContainer.Container);
 }
Esempio n. 20
0
 public static void ConfigureContainer(IObjectContainer container)
 {
     container.AddComponent <IApplicationBaseAddress, WebContextApplicationBaseUrl>();
     container.AddComponent <INameValueContextCollection, CallContextNamedValueCollection>();
     container.RegisterInstance <IObjectResolver>(Xyperico.Base.ObjectContainer.Container);
 }
Esempio n. 21
0
 private static void ConfigureDependencies(IObjectContainer container)
 {
     container.AddComponent <IUserAccountViewRepository, UserAccountViewRepository>();
 }
Esempio n. 22
0
 private static void ConfigureDependencies(IObjectContainer container)
 {
   container.AddComponent<IUserRepository, UserRepository>();
 }
Esempio n. 23
0
 private static void ConfigureDependencies(IObjectContainer container)
 {
   container.AddComponent<IBlogRepository, BlogRepository>();
   container.AddComponent<IBlogPostRepository, BlogPostRepository>();
 }
Esempio n. 24
0
 private static void ConfigureDependencies(IObjectContainer container)
 {
     container.AddComponent <IPhotoProvider, PhotoProvider>();
     container.AddComponent <IPhotoRepository, PhotoRepository>();
 }
Esempio n. 25
0
        public static void ConfigureObjectContainer(IObjectContainer container)
        {
            container.AddComponent<INameValueContextCollection, CallContextNamedValueCollection>();

              container.AddComponent<IProfileBuilder, ProfileBuilder>();
        }