-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add programmatic Setup support #199
Add programmatic Setup support #199
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks great to me but we need to clarify some things in the documentation
@@ -15,6 +17,15 @@ jobs: | |||
clean: false # whether to fetch clean each time | |||
submodules: recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules | |||
persistCredentials: true | |||
- task: UseDotNet@2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- template: azure-pipeline.template.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
vmImage: 'windows-2019' | ||
scriptFileName: build.cmd | ||
scriptArgs: CreateNuget nugetprerelease=dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -2,7 +2,7 @@ | |||
<Import Project="..\common.props" /> | |||
|
|||
<PropertyGroup> | |||
<TargetFrameworks>netcoreapp2.1</TargetFrameworks> | |||
<TargetFrameworks>$(NetFrameworkTestVersion);$(NetTestVersion);$(NetCoreTestVersion)</TargetFrameworks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
namespace Akka.Persistence.MongoDb | ||
{ | ||
public class MongoDbPersistenceSetup : Setup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need some XML-DOC magic here
else | ||
{ | ||
client = new MongoClient(setupOption.Value.SnapshotConnectionSettings); | ||
snapshot = client.GetDatabase(setupOption.Value.SnapshotDatabaseName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
var snapshotDatabaseName = "theSnapshotDatabase" | ||
var journalDatabaseName = "theJournalDatabase" | ||
|
||
var setup = BootstrapSetup.Create() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need some more examples:
- Journal only
- Snapshot store only
- Both (which you have included here)
Also need to explain that you still need to set the mongodb plugin in akka.persistence.journal
and akka.persistence.snapshot-store
in HOCON even with these settings passed in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.