예제 #1
0
        public Program(ProgramSettings settings)
        {
            _settings = settings;

            DependencyInjector.RegisterImplementations(settings.SnapshotInterval, settings.SaveAllCommands, settings.DatabaseConnectionString, settings.OfflineStorageFolder);
        }
예제 #2
0
        static int Main(string[] args)
        {
            var settings = new ProgramSettings("Timeline", "OfflineStoragePath");

            return(ParseCommandLine(settings).Invoke(args));
        }