public virtual ICommandStore CreateCommandStore() { var store = Registry.Resolve <ICommandStore>(JournalStorage.ToString()); store.Initialize(); return(store); }
/// <summary> /// Inject a custom command storage factory here. StorageMode property will be set to Custom /// </summary> /// <param name="factory"></param> public void SetCommandStoreFactory(Func <EngineConfiguration, ICommandStore> factory) { JournalStorage = StorageType.Custom; Register(args => factory.Invoke(this), JournalStorage.ToString()); }