コード例 #1
0
        public static CommandController Create(string path)
        {
            var fileStore = new FileStoreProvider(path);
            var database  = File.Exists(path) ? fileStore.Revive() : new Database();

            return(new CommandController(database, fileStore));
        }
コード例 #2
0
 public static CommandController Create(string path)
 {
     var fileStore = new FileStoreProvider(path);
     var database = File.Exists(path) ? fileStore.Revive() : new Database();
     return new CommandController(database, fileStore);
 }