public Task<IMessageJournalingService> CreateMessageJournalingService(JournalingElement configuration)
 {
     var path = configuration.GetString("path");
     var fsJournalingBaseDir = new DirectoryInfo(GetRootedPath(path));
     var fsJournalingService = new FilesystemMessageJournalingService(fsJournalingBaseDir);
     fsJournalingService.Init();
     return Task.FromResult<IMessageJournalingService>(fsJournalingService);
 }
        public static Task <IMessageJournal> InitMessageJournal(JournalingElement config)
        {
            var factory = new MessageJournalFactory();

            return(factory.InitMessageJournal(config));
        }