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); }
public void OnConfigure(Configure configure) { }
/// <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; }
/// <summary> /// Reset configuration /// </summary> public static void Reset() { lock (InstanceLock) Instance = null; }
public override void OnConfigure(Configure configure) { configure.UsingConfigConfigurationSource(); base.OnConfigure(configure); }
public void Initialize(Configure configure) { if( LibrarianType != null ) configure.Container.Bind<ISagaLibrarian>(LibrarianType); }
public virtual void OnConfigure(Configure configure) { }
/// <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; }
public override void OnConfigure(Configure configure) { configure.ExposeEventService(); configure.UsingConfigConfigurationSource(); }