Skip to content

Commit

Permalink
more wip
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll committed Apr 18, 2024
1 parent 00a288f commit b0af7be
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,16 @@
<PackageVersion Include="Polly" Version="8.3.1" />
<PackageVersion Include="StronglyTypedId" Version="1.0.0-beta07" />
<PackageVersion Include="Rocket.Surgery.Build.Information" Version="3.3.11" />
<PackageVersion Include="Rocket.Surgery.Conventions" Version="14.0.0-next.11" />
<PackageVersion Include="Rocket.Surgery.Conventions.Abstractions" Version="14.0.0-next.11" />
<PackageVersion Include="Rocket.Surgery.Conventions.Attributes" Version="14.0.0-next.11" />
<PackageVersion Include="Rocket.Surgery.Conventions.CommandLine" Version="14.0.0-next.11" />
<PackageVersion Include="Rocket.Surgery.Conventions.DependencyModel" Version="14.0.0-next.11" />
<PackageVersion Include="Rocket.Surgery.Conventions.DryIoc" Version="14.0.0-next.11" />
<PackageVersion Include="Rocket.Surgery.Conventions" Version="14.0.0-next.12" />
<PackageVersion Include="Rocket.Surgery.Conventions.Abstractions" Version="14.0.0-next.12" />
<PackageVersion Include="Rocket.Surgery.Conventions.Attributes" Version="14.0.0-next.12" />
<PackageVersion Include="Rocket.Surgery.Conventions.CommandLine" Version="14.0.0-next.12" />
<PackageVersion Include="Rocket.Surgery.Conventions.DependencyModel" Version="14.0.0-next.12" />
<PackageVersion Include="Rocket.Surgery.Conventions.DryIoc" Version="14.0.0-next.12" />
<PackageVersion Include="Rocket.Surgery.DependencyInjection.Extensions" Version="12.1.0" />
<PackageVersion Include="Rocket.Surgery.Extensions" Version="12.1.0" />
<PackageVersion Include="Rocket.Surgery.Hosting" Version="14.0.0-next.11" />
<PackageVersion Include="Rocket.Surgery.WebAssembly.Hosting" Version="14.0.0-next.11" />
<PackageVersion Include="Rocket.Surgery.Hosting" Version="14.0.0-next.12" />
<PackageVersion Include="Rocket.Surgery.WebAssembly.Hosting" Version="14.0.0-next.12" />
<PackageVersion Include="Scrutor" Version="4.2.2" />
<PackageVersion Include="Serilog" Version="3.1.1" />
<PackageVersion Include="Serilog.AspNetCore" Version="8.0.1" />
Expand Down
10 changes: 5 additions & 5 deletions sample/Sample.Restful/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
using Serilog;
using Swashbuckle.AspNetCore.SwaggerGen;

var builder = await WebApplication
.CreateBuilder(args)
.LaunchWith(RocketBooster.For(Imports.Instance), b => b.Set(AssemblyLoadContext.Default));
var builder = WebApplication
.CreateBuilder(args);

builder.Services.AddControllers().AddControllersAsServices();
builder.Services.AddHostedService<CustomHostedService>();
Expand All @@ -33,7 +32,8 @@
)
);

var app = builder.Build();
var app = await builder
.LaunchWith(RocketBooster.For(Imports.Instance), b => b.Set(AssemblyLoadContext.Default));
app.UseProblemDetails();
app.UseHttpsRedirection();

Expand Down Expand Up @@ -174,4 +174,4 @@ protected override Task ExecuteAsync(CancellationToken stoppingToken)
var v = options.Value.A;
return Task.CompletedTask;
}
}
}
4 changes: 2 additions & 2 deletions test/Extensions.Tests/Mapping/AutoMapperProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public class AutoMapperConventionTests
public async Task ShouldRegisterAutoMapperTypes()
{
var conventionBuilder = new ConventionContextBuilder(new Dictionary<object, object>())
.WithConventionsFrom(Imports.Instance)
.UseConventionFactory(Imports.Instance)
.Set(AssemblyLoadContext.Default);
var context = await ConventionContext.FromAsync(conventionBuilder);
var types = context
Expand Down Expand Up @@ -322,4 +322,4 @@ public void Process(Source source, Destination destination, ResolutionContext co
throw new NotImplementedException();
}
}
}
}

0 comments on commit b0af7be

Please sign in to comment.