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

Make the gateway CreateStorage async #332

Open
danielmarbach opened this issue Nov 22, 2021 · 0 comments
Open

Make the gateway CreateStorage async #332

danielmarbach opened this issue Nov 22, 2021 · 0 comments
Milestone

Comments

@danielmarbach
Copy link
Contributor

When the storage creation requires async initialization the calling code has to either have the ability to use a sync API or needs to do sync over async. Example from RavenDB

            var ravenGatewayDeduplicationConfiguration = new RavenGatewayDeduplicationConfiguration((builder, _) => 
            {
                databaseName = Guid.NewGuid().ToString();
                var documentStore = GetInitializedDocumentStore(databaseName);

                documentStore.Maintenance.Server.Send(new CreateDatabaseOperation(new DatabaseRecord(databaseName)));

                return documentStore;
            })
            {
                EnableClusterWideTransactions = true
            };

CreateStorage should allow async storage creation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant