The sync command
Following the project structure that we designed in the previous chapter, let’s add a new folder named Sync
under the Commands
folder, and within this folder, let’s add a new code file named SyncCommand.cs
.
The startup code for this command is the following:
public class SyncCommand : Command { #region Properties private readonly IBookmarkService _service; #endregion #region Constructor public SyncCommand(IBookmarkService service, string name, string? description = null) : base(name, description) { _service = service; this.SetHandler(OnSyncCommand); } #endregion #region...