Skip to content

[Question] interoperability of Redis backplane, with Microsoft.AspNet.SignalR #46105

@rayao

Description

@rayao

I'm migrating a net472 project to net6, the project doesn't serve SignalR request, but it publishes SignalR messages through Redis backplane. I see this in original project:
GlobalHost.DependencyResolver.UseStackExchangeRedis(new RedisScaleoutConfiguration(connectionString, "EventKey"));
I think I need this in new project:
opt.Configuration = ConfigurationOptions.Parse(connectionString);
opt.Configuration.ChannelPrefix = "EventKey";
I just want to confirm, is this really equivalent to the original configuration? Specifically, is RedisScaleoutConfiguration.EventKey equivalent to ConfigurationOptions.ChannelPrefix?
If not, how to make the interop work? Since I don't want to change the SignalR host service, not for now at least.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-signalrIncludes: SignalR clients and servers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions