public IActionResult Unregister(long id) { var command = new UnregisterCommand(id); var result = _messages.Dispatch(command); return(FromResult(result)); }
public Model() { Add(nameof(DLL), string.Empty, file => IsDll(file)); Add <Type>(nameof(TargetType), null, t => IsRegisterable(t)); Add(nameof(LoadBehavior), LoadBehavior.UnloadedDontLoadAutomatically); Add(nameof(Application), HostApplication.Access); Add(nameof(FriendlyName), string.Empty); Add(nameof(Description), string.Empty); Register = new RegisterCommand(this); Unregister = new UnregisterCommand(this); }