/// <summary> /// Determins if an instance should be decorated or not. /// </summary> /// <param name="context">Context</param> /// <returns><c>true</c> if we should attach a decorator; otherwise <c>false</c>.</returns> protected virtual bool CanDecorate(DecoratorContext context) { return(_filter == null || _filter.CanDecorate(context)); }