![]() |
VOOZH | about |
dotnet add package FireTransit --version 1.0.6
NuGet\Install-Package FireTransit -Version 1.0.6
<PackageReference Include="FireTransit" Version="1.0.6" />
<PackageVersion Include="FireTransit" Version="1.0.6" />Directory.Packages.props
<PackageReference Include="FireTransit" />Project file
paket add FireTransit --version 1.0.6
#r "nuget: FireTransit, 1.0.6"
#:package FireTransit@1.0.6
#addin nuget:?package=FireTransit&version=1.0.6Install as a Cake Addin
#tool nuget:?package=FireTransit&version=1.0.6Install as a Cake Tool
FireTransit is a scalable background job processing library that bridges Hangfire, MassTransit, and RabbitMQ to enable distributed job execution in .NET applications.
Add FireTransit to your .NET project:
dotnet add package FireTransit
Program.csvar builder = Host.CreateApplicationBuilder(args);
// Add FireTransit
builder.Services.UseFireTransit(builder.Configuration);
var host = builder.Build();
host.Run();
public class SendEmailConsumer : IConsumer<SendEmailMessage>
{
public async Task Consume(ConsumeContext<SendEmailMessage> context)
{
Console.WriteLine($"Sending email to {context.Message.Email}");
}
}
public class SendEmailMessage : IBaseMessage
{
public string Name => "Sample Email Message";
public string Description => "Triggers sending email messages.";
public int Email { get; set; }
}
var eventPublisher = provider.GetRequiredService<IEventPublisher>();
eventPublisher.Recurring<SendEmailMessage>(new SendEmailMessage {
Email = "user@example.com"
}, Cron.Minutely());
Recurring jobs are keyed by the message's Name. Remove one by passing the same
message (or its name) used when scheduling:
// By message — uses message.Name as the job key
eventPublisher.RemoveRecurring(new SendEmailMessage());
// Or by name directly
eventPublisher.RemoveRecurring("Sample Email Message");
Removing a job that does not exist is a no-op.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.