Skip to content

Commit e31d18c

Browse files
author
Jorge Serrano
committed
IoC implementations in ASP.NET Core 5
1 parent 46358b0 commit e31d18c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/WebApp/Logging/FakeLog.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
using System;
2+
using System.Diagnostics;
23

34
namespace WebApp.Logging
45
{
5-
public class FakeLog : ILog
6+
public class FakeLog : ILog, IDisposable
67
{
78
private string _message = String.Empty;
89

910
public void Append(string message) => _message += message;
11+
12+
public void Dispose()
13+
{
14+
Debug.Print($"{nameof(FakeLog)}.{nameof(Dispose)}");
15+
}
16+
1017
public string Get() => _message;
1118
}
1219
}

src/WebApp/WebApp.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
8-
<DocumentationFile>C:\GitHub\J0rgeSerran0\ASP.NET-Core-5-IoC\src\WebApp\WebApp.xml</DocumentationFile>
8+
<DocumentationFile>WebApp.xml</DocumentationFile>
99
</PropertyGroup>
1010

1111
<ItemGroup>

0 commit comments

Comments
 (0)