Skip to content

Commit

Permalink
Added missing AttributeUsage specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdingwall committed May 27, 2012
1 parent fd2dbc3 commit 2d56784
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Elmah.Contrib.WebApi/Elmah.Contrib.WebApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
1 change: 1 addition & 0 deletions src/Elmah.Contrib.WebApi/ElmahHandleErrorApiAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace Elmah.Contrib.WebApi
/// Original implementation from http://stackoverflow.com/questions/766610/how-to-get-elmah-to-work-with-asp-net-mvc-handleerror-attribute/779961#779961.
/// Ported from the Elmah.Contrib.Mvc package on NuGet.
/// </remarks>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public class ElmahHandleErrorApiAttribute : ExceptionFilterAttribute
{
public override void OnException(HttpActionExecutedContext actionExecutedContext)
Expand Down

0 comments on commit 2d56784

Please sign in to comment.