Rename TestApplication.Wcf.Client.Core to TestApplication.Wcf.Client.DotNet (#1875)

- Rename TestApplication.Wcf.Client.Core to TestApplication.Wcf.Client.DotNet

- Remove TestApplication.Wcf.Client.Shared from .sln file

- Add launchSettings.json that is generated during build
This commit is contained in:
Robert Pająk 2022-12-29 14:48:27 +01:00 committed by GitHub
parent 173be32ae1
commit e9948977bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 23 additions and 26 deletions

View File

@ -117,14 +117,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenTelemetry.AutoInstrumen
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApplication.StrongNamed", "test\test-applications\integrations\TestApplication.StrongNamed\TestApplication.StrongNamed.csproj", "{505A5B7B-930E-42D3-909F-E97C7C247FCF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApplication.Wcf.Client.Core", "test\test-applications\integrations\TestApplication.Wcf.Client.Core\TestApplication.Wcf.Client.Core.csproj", "{5BFB9A97-A83F-4719-A35B-6421364B9820}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApplication.Wcf.Client.DotNet", "test\test-applications\integrations\TestApplication.Wcf.Client.DotNet\TestApplication.Wcf.Client.DotNet.csproj", "{5BFB9A97-A83F-4719-A35B-6421364B9820}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApplication.Wcf.Client.NetFramework", "test\test-applications\integrations\TestApplication.Wcf.Client.NetFramework\TestApplication.Wcf.Client.NetFramework.csproj", "{ACB51ACB-82E6-4CA8-B233-2C05A5CEDE01}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApplication.Wcf.Server.NetFramework", "test\test-applications\integrations\TestApplication.Wcf.Server.NetFramework\TestApplication.Wcf.Server.NetFramework.csproj", "{F7ACC09E-899F-4D47-BA1D-4009FB76F6AA}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApplication.Wcf.Shared", "test\test-applications\integrations\TestApplication.Wcf.Shared\TestApplication.Wcf.Shared.csproj", "{86B61808-6B61-465E-8451-84DC31935C03}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApplication.Logs", "test\test-applications\integrations\TestApplication.Logs\TestApplication.Logs.csproj", "{8C52B9DD-880B-4CD5-AB18-A4C462C714E9}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestLibrary.InstrumentationTarget", "test\test-applications\integrations\dependency-libs\TestLibrary.InstrumentationTarget\TestLibrary.InstrumentationTarget.csproj", "{1DC12784-CD32-400D-AE13-A637BFA66B1B}"
@ -535,18 +533,6 @@ Global
{F7ACC09E-899F-4D47-BA1D-4009FB76F6AA}.Release|x64.Build.0 = Release|x64
{F7ACC09E-899F-4D47-BA1D-4009FB76F6AA}.Release|x86.ActiveCfg = Release|x86
{F7ACC09E-899F-4D47-BA1D-4009FB76F6AA}.Release|x86.Build.0 = Release|x86
{86B61808-6B61-465E-8451-84DC31935C03}.Debug|Any CPU.ActiveCfg = Debug|x64
{86B61808-6B61-465E-8451-84DC31935C03}.Debug|Any CPU.Build.0 = Debug|x64
{86B61808-6B61-465E-8451-84DC31935C03}.Debug|x64.ActiveCfg = Debug|x64
{86B61808-6B61-465E-8451-84DC31935C03}.Debug|x64.Build.0 = Debug|x64
{86B61808-6B61-465E-8451-84DC31935C03}.Debug|x86.ActiveCfg = Debug|x86
{86B61808-6B61-465E-8451-84DC31935C03}.Debug|x86.Build.0 = Debug|x86
{86B61808-6B61-465E-8451-84DC31935C03}.Release|Any CPU.ActiveCfg = Release|x64
{86B61808-6B61-465E-8451-84DC31935C03}.Release|Any CPU.Build.0 = Release|x64
{86B61808-6B61-465E-8451-84DC31935C03}.Release|x64.ActiveCfg = Release|x64
{86B61808-6B61-465E-8451-84DC31935C03}.Release|x64.Build.0 = Release|x64
{86B61808-6B61-465E-8451-84DC31935C03}.Release|x86.ActiveCfg = Release|x86
{86B61808-6B61-465E-8451-84DC31935C03}.Release|x86.Build.0 = Release|x86
{8C52B9DD-880B-4CD5-AB18-A4C462C714E9}.Debug|Any CPU.ActiveCfg = Debug|x64
{8C52B9DD-880B-4CD5-AB18-A4C462C714E9}.Debug|Any CPU.Build.0 = Debug|x64
{8C52B9DD-880B-4CD5-AB18-A4C462C714E9}.Debug|x64.ActiveCfg = Debug|x64
@ -708,7 +694,6 @@ Global
{5BFB9A97-A83F-4719-A35B-6421364B9820} = {E409ADD3-9574-465C-AB09-4324D205CC7C}
{ACB51ACB-82E6-4CA8-B233-2C05A5CEDE01} = {E409ADD3-9574-465C-AB09-4324D205CC7C}
{F7ACC09E-899F-4D47-BA1D-4009FB76F6AA} = {E409ADD3-9574-465C-AB09-4324D205CC7C}
{86B61808-6B61-465E-8451-84DC31935C03} = {E409ADD3-9574-465C-AB09-4324D205CC7C}
{8C52B9DD-880B-4CD5-AB18-A4C462C714E9} = {E409ADD3-9574-465C-AB09-4324D205CC7C}
{1DC12784-CD32-400D-AE13-A637BFA66B1B} = {82A3CE96-0935-45E5-A9AA-A93A5B63500B}
{28879377-2043-4370-A8DB-B04464B6E552} = {E409ADD3-9574-465C-AB09-4324D205CC7C}

View File

@ -69,7 +69,7 @@ client.Endpoint.EndpointBehaviors.Add(new TelemetryEndpointBehavior());
```
Example project available in
[test/test-applications/integrations/TestApplication.Wcf.Client.Core](../test/test-applications/integrations/TestApplication.Wcf.Client.Core/)
[test/test-applications/integrations/TestApplication.Wcf.Client.DotNet](../test/test-applications/integrations/TestApplication.Wcf.Client.DotNet/)
folder.
## WCF Server Configuration (.NET Framework)

View File

@ -0,0 +1,12 @@
{
"profiles": {
"Service": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:52317;http://localhost:52318"
}
}
}

View File

@ -1,4 +1,4 @@
// <copyright file="WcfCoreTests.cs" company="OpenTelemetry Authors">
// <copyright file="WcfDotNetTests.cs" company="OpenTelemetry Authors">
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -20,10 +20,10 @@ using Xunit.Abstractions;
namespace IntegrationTests;
public class WcfCoreTests : WcfTestsBase
public class WcfDotNetTests : WcfTestsBase
{
public WcfCoreTests(ITestOutputHelper output)
: base("Wcf.Client.Core", output)
public WcfDotNetTests(ITestOutputHelper output)
: base("Wcf.Client.DotNet", output)
{
}
}

View File

@ -17,7 +17,7 @@
using System.ServiceModel;
using System.Threading.Tasks;
namespace TestApplication.Wcf.Client.Core;
namespace TestApplication.Wcf.Client.DotNet;
[ServiceContract(Namespace = "http://opentelemetry.io/", Name = "StatusService", SessionMode = SessionMode.Allowed)]
public interface IStatusServiceContract

View File

@ -20,7 +20,7 @@ using System.ServiceModel.Channels;
using System.Threading.Tasks;
using OpenTelemetry.Instrumentation.Wcf;
namespace TestApplication.Wcf.Client.Core;
namespace TestApplication.Wcf.Client.DotNet;
internal static class Program
{

View File

@ -16,7 +16,7 @@
using System.Runtime.Serialization;
namespace TestApplication.Wcf.Client.Core;
namespace TestApplication.Wcf.Client.DotNet;
[DataContract]
public class StatusRequest

View File

@ -17,7 +17,7 @@
using System;
using System.Runtime.Serialization;
namespace TestApplication.Wcf.Client.Core;
namespace TestApplication.Wcf.Client.DotNet;
[DataContract]
public class StatusResponse

View File

@ -18,7 +18,7 @@ using System.ServiceModel;
using System.ServiceModel.Channels;
using System.Threading.Tasks;
namespace TestApplication.Wcf.Client.Core;
namespace TestApplication.Wcf.Client.DotNet;
public class StatusServiceClient : ClientBase<IStatusServiceContract>, IStatusServiceContract
{