Skip to content

Support constructor injection with IConnectionMultiplexerFactory#108

Merged
neuecc merged 1 commit intomasterfrom
feature/SupportDIForConnectionMultiplexerFactory
May 22, 2023
Merged

Support constructor injection with IConnectionMultiplexerFactory#108
neuecc merged 1 commit intomasterfrom
feature/SupportDIForConnectionMultiplexerFactory

Conversation

@mayuki
Copy link
Member

@mayuki mayuki commented May 22, 2023

This PR adds support constructor injection with IConnectionMultiplexerFactory.
This covers use cases where you want to use registered services or options when getting IConnectionMultiplexerFactory.

services.AddMesagePipeRedis<MyConnectionMultiplexerFactory>();
...

class MyConnectionMultiplexerFactory : IConnectionMultiplexerFactory
{
    public MyConnectionMultiplexerFactory(IOptions<MyConnectionMultiplexerOption> options) { ... }
}

Breaking changes

  • Remove ConnectionMultiplexerFactory property from MessagePipeRedisOptions

@neuecc
Copy link
Member

neuecc commented May 22, 2023

seems good!

@neuecc neuecc merged commit 5d3b2b8 into master May 22, 2023
@neuecc neuecc deleted the feature/SupportDIForConnectionMultiplexerFactory branch May 22, 2023 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants