Skip to content

Commit

Permalink
Merge pull request #86 from NLog/renames-for-nlogweb4.3
Browse files Browse the repository at this point in the history
renames for consistency
  • Loading branch information
304NotModified authored Jan 15, 2017
2 parents a6f0498 + 05cbc18 commit 330e553
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class AspNetSessionIDLayoutRendererTests : TestBase
[Fact]
public void NullHttpContextRendersEmptyString()
{
var renderer = new AspNetSessionIDLayoutRenderer();
var renderer = new AspNetSessionIdLayoutRenderer();

string result = renderer.Render(new LogEventInfo());

Expand All @@ -33,7 +33,7 @@ public void NullSessionRendersEmptyString()
var httpContext = Substitute.For<HttpContextBase>();
httpContext.Session.Returns(null as HttpSessionStateWrapper);

var renderer = new AspNetSessionIDLayoutRenderer();
var renderer = new AspNetSessionIdLayoutRenderer();
renderer.HttpContextAccessor = new FakeHttpContextAccessor(httpContext);

string result = renderer.Render(new LogEventInfo());
Expand All @@ -48,7 +48,7 @@ public void AvailableSessionRendersSessionId()
var httpContext = Substitute.For<HttpContextBase>();
httpContext.Session.SessionID.Returns(expectedResult);

var renderer = new AspNetSessionIDLayoutRenderer();
var renderer = new AspNetSessionIdLayoutRenderer();
renderer.HttpContextAccessor = new FakeHttpContextAccessor(httpContext);

string result = renderer.Render(new LogEventInfo());
Expand Down
6 changes: 3 additions & 3 deletions NLog.Web.AspNetCore/LayoutRenderers/AspNetRequestuseragent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ namespace NLog.Web.LayoutRenderers
/// <summary>
/// ASP.NET User Agent
/// </summary>
/// <para>Example usage of ${aspnet-useragent}:</para>
/// <para>Example usage of ${aspnet-request-useragent}:</para>
/// <example>
/// <code lang="NLog Layout Renderer">
/// ${aspnet-useragent} - Produces - User Agent String from the Request.
/// ${aspnet-request-useragent} - Produces - User Agent String from the Request.
/// </code>
/// </example>
[LayoutRenderer("aspnet-useragent")]
[LayoutRenderer("aspnet-request-useragent")]
public class AspNetRequestUserAgent : AspNetLayoutRendererBase
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace NLog.Web.LayoutRenderers
/// ASP.NET Session ID.
/// </summary>
[LayoutRenderer("aspnet-sessionid")]
public class AspNetSessionIDLayoutRenderer : AspNetLayoutRendererBase
public class AspNetSessionIdLayoutRenderer : AspNetLayoutRendererBase
{
/// <summary>
/// Renders the ASP.NET Session ID appends it to the specified <see cref="StringBuilder" />.
Expand Down
2 changes: 1 addition & 1 deletion NLog.Web.AspNetCore/global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "1.0.0-preview2-003121"
"version": "1.0.0-preview2-1-003177"

}
}
6 changes: 3 additions & 3 deletions NLog.Web/NLog.Web.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
Expand Down Expand Up @@ -64,7 +64,7 @@
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetMvcActionRenderer.cs" />
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetMvcLayoutRendererBase.cs" />
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetRequestValueLayoutRenderer.cs" />
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetSessionIDLayoutRenderer.cs" />
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetSessionIdLayoutRenderer.cs" />
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetSessionValueLayoutRenderer.cs" />
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetUserAuthTypeLayoutRenderer.cs" />
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetUserIdentityLayoutRenderer.cs" />
Expand All @@ -73,7 +73,7 @@
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetRequestUrlRenderer.cs" />
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetRequestUserAgent.cs" />
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetCookieLayoutRenderer.cs" />
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetQueryStringLayoutRenderer.cs" />
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetRequestQueryStringLayoutRenderer.cs" />
<Compile Include="..\NLog.Web.AspNetCore\LayoutRenderers\AspNetRequestHttpMethodRenderer.cs" />
<Compile Include="..\NLog.Web.AspNetCore\Enums\AspNetCookieLayoutOutputFormat.cs" />
<Compile Include="..\NLog.Web.AspNetCore\Internal\PropertyReader.cs" />
Expand Down

0 comments on commit 330e553

Please sign in to comment.