Skip to content

Commit

Permalink
#61: upda
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Dec 14, 2023
1 parent 4085482 commit 52af983
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,36 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Convey;
using Convey.WebApi;
using SwiftParcel.Services.Pricing.Api.Infrastructure;
using Convey.WebApi.CQRS;
using SwiftParcel.Services.Pricing.Api.Queries;
using SwiftParcel.Services.Pricing.Api.dto;
using Convey.Types;
using Convey.Logging;
using Convey.Secrets.Vault;

namespace SwiftParcel.Services.Pricing.Api
{
public class Program
{

public static async Task Main(string[] args)
=> await WebHost.CreateDefaultBuilder(args)
.ConfigureServices(services => services
.AddConvey()
.AddWebApi()
.AddInfrastructure()
.Build())
.Configure(app => app
.UseInfrastructure()
.UseDispatcherEndpoints(endpoints => endpoints
.Get("", ctx => ctx.Response.WriteAsync(ctx.RequestServices.GetService<AppOptions>().Name))
.Get<GetOrderPricing, OrderPricingDto>("pricing")))
.UseLogging()
.UseVault()
.Build()
.RunAsync();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Nullable>disable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

Expand Down

0 comments on commit 52af983

Please sign in to comment.