예제 #1
0
 protected virtual bool IsMatch(Profile profile)
 {
     return this.NameWildcardPattern.IsMatch(profile.Name) &&
            this.UriWildcardPattern.IsMatch(profile.Uri) &&
            this.UsernameWildcardPattern.IsMatch(profile.Username) &&
            (!this.Active.IsPresent || profile.Active);
 }
예제 #2
0
 protected override bool IsMatch(Profile profile)
 {
     return base.IsMatch(profile) &&
            this.ShouldProcess(profile.ToString(), VerbsCommon.Remove);
 }