public bool TryRemovePostActions <TProperty>(Expression <Func <TInterface, TProperty> > propertyExpression, InvokeDependencyKind kind, out IEnumerable <Action <TInterface, object> > postActions) => TryRemovePostActions(new InvokeDependencyKey(propertyExpression.AsPropertyName(), kind), out postActions);
/// <summary> /// 构造一个 <see cref="InvokeDependencyKey"/>。 /// </summary> /// <param name="name">给定的依赖名称。</param> /// <param name="kind">给定的依赖种类。</param> public InvokeDependencyKey(string name, InvokeDependencyKind kind) { Name = name.NotEmpty(nameof(name)); Kind = kind; }
public void AddPostActions <TProperty>(Expression <Func <TInterface, TProperty> > propertyExpression, InvokeDependencyKind kind, params Action <TInterface, object>[] postActions) => AddPostActions(new InvokeDependencyKey(propertyExpression.AsPropertyName(), kind), postActions);