Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Update SampleStartup #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Sample.Platform/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN dotnet restore -r linux-musl-x64
COPY . .
RUN dotnet publish -c Release -o /app -r linux-musl-x64 --no-restore

FROM masstransit/platform:latest
FROM masstransit/platform:7.0
WORKDIR /app
ARG MT_APP=/app
ENV MT_APP="${MT_APP}"
Expand Down
2 changes: 1 addition & 1 deletion src/Sample.Platform/Sample.Platform.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MassTransit.Platform.Abstractions" Version="6.2.0" />
<PackageReference Include="MassTransit.Platform.Abstractions" Version="7.0.0" />
</ItemGroup>

</Project>
8 changes: 4 additions & 4 deletions src/Sample.Platform/SampleStartup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ namespace Sample.Platform
public class SampleStartup :
IPlatformStartup
{
public void ConfigureMassTransit(IServiceCollectionConfigurator configurator, IServiceCollection services)
public void ConfigureMassTransit(IServiceCollectionBusConfigurator configurator, IServiceCollection services)
{
configurator.AddConsumer<SampleConsumer>();
}

public void ConfigureBus<TEndpointConfigurator>(IBusFactoryConfigurator<TEndpointConfigurator> configurator, IServiceProvider provider)
where TEndpointConfigurator : IReceiveEndpointConfigurator
public void ConfigureBus<TEndpointConfigurator>(IBusFactoryConfigurator<TEndpointConfigurator> configurator, IBusRegistrationContext context) where TEndpointConfigurator : IReceiveEndpointConfigurator
{

}
}
}
}