Skip to content

Commit e904cd1

Browse files
committed
Update service endpoint
Add license to source files
1 parent 2078717 commit e904cd1

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

Basic/Binding/Basic/Http/Client/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-

1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
24
namespace CoreWcf.Samples.Http
35
{
46
//The service contract is defined using Connected Service "WCF Web Service", generated from the service by the dotnet svcutil tool.

Basic/Binding/Basic/Http/Service/CalculatorService.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
namespace CoreWcf.Samples.Http
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
namespace CoreWcf.Samples.Http
25
{
36
// Service class which implements the service contract interface.
47
public class CalculatorService : ICalculatorService

Basic/Binding/Basic/Http/Service/ICalculatorService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-

1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
24
using CoreWCF;
35

46
namespace CoreWcf.Samples.Http

Basic/Binding/Basic/Http/Service/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
14
using Microsoft.AspNetCore;
25
using Microsoft.AspNetCore.Builder;
36
using Microsoft.AspNetCore.Hosting;

Basic/Binding/Basic/Http/Service/Startup.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using CoreWCF;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
using CoreWCF;
25
using CoreWCF.Configuration;
36
using Microsoft.AspNetCore.Builder;
47
using Microsoft.Extensions.DependencyInjection;
@@ -21,12 +24,12 @@ public void Configure(IApplicationBuilder app)
2124
// Add the Calculator Service
2225
builder.AddService<CalculatorService>(serviceOptions => { })
2326
// Add BasicHttpBinding endpoint
24-
.AddServiceEndpoint<CalculatorService, ICalculatorService>(new BasicHttpBinding(), "/CalculatorService/basicHttp");
27+
.AddServiceEndpoint<CalculatorService, ICalculatorService>(new BasicHttpBinding(), "CalculatorService/basicHttp");
2528

2629
// Configure WSDL to be available
2730
var serviceMetadataBehavior = app.ApplicationServices.GetRequiredService<CoreWCF.Description.ServiceMetadataBehavior>();
2831
serviceMetadataBehavior.HttpGetEnabled = true;
2932
});
3033
}
3134
}
32-
}
35+
}

0 commit comments

Comments
 (0)