Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce fluent configuration #5

Open
rafek1241 opened this issue Mar 14, 2021 · 0 comments
Open

Introduce fluent configuration #5

rafek1241 opened this issue Mar 14, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@rafek1241
Copy link
Owner

Currently, there is an options class that contains all settings and it is included in the extension method. It should be possible to set it up fluently by method chaining.

Current:

//rebus configuration
...
                   .Serialization(
                        r => r
                            .UseXmlSerializing(
                                logger,
                                new XmlSerializingOptions()
                                {
                                    IncludeNamespace = true,
                                    DefaultNamespacePrefix = "http://tempuri.net"
                                }
                            )
                    )

Expected:

                   .Serialization(
                        r => r
                            .UseXmlSerializing()
                                .WithLogger(logger)
                                .IncludeNamespace()
                                .WithNamespacePrefix("http://tempuri.net")
                    )

and

var config = new XmlSerializerConfig()
                                .WithLogger(logger)
                                .IncludeNamespace()
                                .WithNamespacePrefix("http://tempuri.net");

...
                   .Serialization(r=> r.UseXmlSerializing(config))
@rafek1241 rafek1241 added the enhancement New feature or request label Mar 14, 2021
@rafek1241 rafek1241 added this to the 1.0.0 milestone Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant