Esempio n. 1
0
 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);
Esempio n. 2
0
 /// <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;
 }
Esempio n. 3
0
 public void AddPostActions <TProperty>(Expression <Func <TInterface, TProperty> > propertyExpression,
                                        InvokeDependencyKind kind, params Action <TInterface, object>[] postActions)
 => AddPostActions(new InvokeDependencyKey(propertyExpression.AsPropertyName(), kind), postActions);