コード例 #1
0
        public IActionResult Unregister(long id)
        {
            var command = new UnregisterCommand(id);
            var result  = _messages.Dispatch(command);

            return(FromResult(result));
        }
コード例 #2
0
ファイル: Model.cs プロジェクト: skuehlshelby/RibbonFactory
        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);
        }