Fixes issue 410 - Remove the use of Platform Abstractions
This commit is contained in:
Родитель
bf5e2cd86f
Коммит
50cbd34431
|
@ -27,4 +27,5 @@ project.lock.json
|
|||
|
||||
bower_components/
|
||||
node_modules/
|
||||
**/wwwroot/lib
|
||||
**/wwwroot/lib
|
||||
/Msbuild.*
|
|
@ -27,8 +27,8 @@ namespace Microsoft.ApplicationInsights.AspNetCore.Extensibility.Implementation.
|
|||
private AspNetCoreEventSource() : base()
|
||||
{
|
||||
try
|
||||
{
|
||||
this.ApplicationName = Microsoft.Extensions.PlatformAbstractions.PlatformServices.Default.Application.ApplicationName;
|
||||
{
|
||||
this.ApplicationName = System.Reflection.Assembly.GetEntryAssembly().GetName().Name;
|
||||
}
|
||||
catch (Exception exp)
|
||||
{
|
||||
|
|
|
@ -144,7 +144,7 @@ namespace Microsoft.ApplicationInsights.AspNetCore.Tests.Extensibility.Implement
|
|||
string expectedApplicationName;
|
||||
try
|
||||
{
|
||||
expectedApplicationName = Microsoft.Extensions.PlatformAbstractions.PlatformServices.Default.Application.ApplicationName;
|
||||
expectedApplicationName = System.Reflection.Assembly.GetEntryAssembly().GetName().Name;
|
||||
}
|
||||
catch (Exception exp)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче