예제 #1
0
        public override void OnConfigure(Configure configure)
        {
            //configure.UsingConfigConfigurationSource();
            var mongoDbUrl = System.Configuration.ConfigurationManager.AppSettings["MONGOHQ_URL"];
            configure.UsingMongoDb(mongoDbUrl, "07a538a6-f8a8-43eb-b0e1-adb7ef5e5942"); //Geekrider"); // 07a538a6-f8a8-43eb-b0e1-adb7ef5e5942

            base.OnConfigure(configure);
        }
예제 #2
0
 public void OnConfigure(Configure configure)
 {
 }
예제 #3
0
파일: Configure.cs 프로젝트: jarlef/Bifrost
        /// <summary>
        /// Configure with a specific <see cref="IContainer"/>, <see cref="IDefaultConventions"/> and <see cref="IDefaultBindings"/>
        /// </summary>
        /// <param name="container"><see cref="IContainer"/> to configure with</param>
        /// <param name="defaultObjectLifecycle">Default <see cref="BindingLifecycle"/> for object creation/management</param>
        /// <param name="defaultConventions"><see cref="IDefaultConventions"/> to use</param>
        /// <param name="defaultBindings"><see cref="IDefaultBindings"/> to use</param>
        /// <returns></returns>
        public static Configure With(IContainer container, BindingLifecycle defaultObjectLifecycle, IDefaultConventions defaultConventions, IDefaultBindings defaultBindings)
        {
            if (Instance == null)
            {
                lock (InstanceLock)
                {
                    Instance = new Configure(container, defaultObjectLifecycle, defaultConventions, defaultBindings);
                }
            }

            return Instance;
        }
예제 #4
0
파일: Configure.cs 프로젝트: jarlef/Bifrost
 /// <summary>
 /// Reset configuration
 /// </summary>
 public static void Reset()
 {
     lock (InstanceLock) Instance = null;
 }
예제 #5
0
        public override void OnConfigure(Configure configure)
        {
            configure.UsingConfigConfigurationSource();

            base.OnConfigure(configure);
        }
예제 #6
0
		public void Initialize(Configure configure)
		{
			if( LibrarianType != null )
				configure.Container.Bind<ISagaLibrarian>(LibrarianType);
		}
 public virtual void OnConfigure(Configure configure) { }
예제 #8
0
        /// <summary>
        /// Configure with a specific <see cref="IContainer"/>.
        /// </summary>
        /// <param name="container"><see cref="IContainer"/> to configure with.</param>
        /// <returns>Configuration object to continue configuration on.</returns>
        public static Configure With(IContainer container)
        {
            if (Instance == null)
            {
                lock (InstanceLock)
                {
                    Instance = new Configure(container);
                }
            }

            return Instance;
        }
예제 #9
0
 public override void OnConfigure(Configure configure)
 {
     configure.ExposeEventService();
     configure.UsingConfigConfigurationSource();
 }