Skip to content

Commit

Permalink
Add Orleans streaming providers and persistent streams
Browse files Browse the repository at this point in the history
- Added a new namespace for Orleans streaming providers
- Included configurations for adding persistent streams with specific options
Add Orleans streaming providers and persistent streams

- Added a new namespace for Orleans streaming providers
- Included configurations for adding persistent streams with specific options
  • Loading branch information
0xF6 committed Jan 3, 2025
1 parent ce0b818 commit 87119ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Argon.Entry/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Argon.Features.Jwt;
using Argon.Features.MediaStorage;
using Argon.Features.Middlewares;
using Argon.Features.OrleansStreamingProviders;
using Argon.Services;
using Argon.Streaming;
using MessagePack;
Expand All @@ -27,6 +28,7 @@
});
builder.AddContentDeliveryNetwork();
builder.AddServiceDefaults();
builder.AddNatsStreaming();
builder.AddJwt();
builder.Services.AddControllers().AddApplicationPart(typeof(FilesController).Assembly)
.AddNewtonsoftJson(x => x.SerializerSettings.Converters.Add(new StringEnumConverter()));
Expand All @@ -51,6 +53,8 @@
{
x.Configure<ClusterOptions>(builder.Configuration.GetSection("Orleans"))
.AddStreaming()
.AddPersistentStreams("default", NatsAdapterFactory.Create, options => { })
.AddPersistentStreams(IArgonEvent.ProviderId, NatsAdapterFactory.Create, options => { })
.AddBroadcastChannel(IArgonEvent.Broadcast);
if (builder.Environment.IsProduction())
x.UseKubeGatewayListProvider();
Expand Down

0 comments on commit 87119ed

Please sign in to comment.