private bool RuntimeMatch(Activity activity, string keyName, object obj)
        {
            //
            // Check the excludes - if any exclude matches based on activity only we're not a match
            if (!ActTypeIsMatch(activity))
            {
                return(false);
            }
            //
            // Check the name of the key, null means match all
            if (null != _keyName)
            {
                if (0 != String.Compare(_keyName, keyName, StringComparison.Ordinal))
                {
                    return(false);
                }
            }

            if (null != _argType)
            {
                return(TypeMatch.IsMatch(obj, _argType, _trackDerivedArgs));
            }
            else
            {
                return(TypeMatch.IsMatch(obj, _argName, _trackDerivedArgs));
            }
        }
예제 #2
0
 private bool ActTypeIsMatch(Activity activity)
 {
     if (null != this._activityType)
     {
         return(TypeMatch.IsMatch(activity, this._activityType, this._trackDerivedActivities));
     }
     return(TypeMatch.IsMatch(activity, this._activityName, this._trackDerivedActivities));
 }
 private bool ActTypeIsMatch(Activity activity)
 {
     if (null != _activityType)
     {
         return(TypeMatch.IsMatch(activity, _activityType, _trackDerivedActivities));
     }
     else
     {
         return(TypeMatch.IsMatch(activity, _activityName, _trackDerivedActivities));
     }
 }
예제 #4
0
 private bool RuntimeMatch(Activity activity, string keyName, object obj)
 {
     if (!this.ActTypeIsMatch(activity))
     {
         return(false);
     }
     if ((this._keyName != null) && (string.Compare(this._keyName, keyName, StringComparison.Ordinal) != 0))
     {
         return(false);
     }
     if (null != this._argType)
     {
         return(TypeMatch.IsMatch(obj, this._argType, this._trackDerivedArgs));
     }
     return(TypeMatch.IsMatch(obj, this._argName, this._trackDerivedArgs));
 }