Skip to content

Commit

Permalink
Merge pull request dotnet#318 from StephenBonikowsky/Issue315
Browse files Browse the repository at this point in the history
Fix for Issue dotnet#315
  • Loading branch information
StephenBonikowsky committed Sep 18, 2015
2 parents 81e95be + cf4aea9 commit b93b9d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,17 @@ static internal object[] GetCustomAttributes(CustomAttributeProvider attrProvide
}
else
{
return Array.Empty<object>();
List<object> attrTypeAttributes = new List<object>();
object[] allCustomAttributes = attrProvider.GetCustomAttributes(inherit);
foreach (object customAttribute in allCustomAttributes)
{
if (attrType.IsAssignableFrom(customAttribute.GetType()))
{
attrTypeAttributes.Add(customAttribute);
}
}

return attrTypeAttributes.ToArray();
}
}
catch (Exception e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
public static class OperationBehaviorTest
{
[Fact]
[ActiveIssue(315)]
public static void IOperationBehavior_Methods_AreCalled()
{
DuplexClientBase<ICustomOperationBehaviorDuplexService> duplexService = null;
Expand Down

0 comments on commit b93b9d4

Please sign in to comment.