Created
June 24, 2020 17:32
-
-
Save msciborski/bb3a5aa8035f7f7ea9697ccf6074205e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
builder.Register<SenderFactory>(c => | |
{ | |
var context = c.Resolve<IComponentContext>(); | |
return (client) => | |
{ | |
var sender = context.Resolve<IEnumerable<Meta<ISender>>>() | |
.First(x => (string) x.Metadata["Client"] == client).Value; | |
return sender; | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment