public NoteViewModel(INote model, MainViewModel main) : base(main) { if (model == null) throw new ArgumentNullException("model"); this.model = model; update = new UpdateLabelsCommand(this); newAttachment = new NewAttachmentCommand(this); deleteAttachment = new DeleteAttachmentCommand(this); main.RegisterViewModel(model, this); LoadViewModels(); }
public Task Handle(NewAttachmentCommand message, IMessageHandlerContext context) { log.Info($"Message received, size of blob property: {Data.LargeBlob.Value.Length} Bytes"); return(Task.CompletedTask); }