This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a better comment regarding the selection of Persistence,Fixes #27…
… , Also removed the AsA_Server as its no longer needed. Fixes #1
- Loading branch information
1 parent
dadea56
commit 3af780c
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,15 @@ namespace rootnamespace | |
This class configures this endpoint as a Server. More information about how to configure the NServiceBus host | ||
can be found here: http://particular.net/articles/the-nservicebus-host | ||
*/ | ||
public class EndpointConfig : IConfigureThisEndpoint, AsA_Server | ||
public class EndpointConfig : IConfigureThisEndpoint | ||
{ | ||
public void Customize(BusConfiguration configuration) | ||
{ | ||
// For production use, please select a durable persistence. | ||
// To use RavenDB, install-package NServiceBus.RavenDB and then use configuration.UsePersistence<RavenDBPersistence>(); | ||
// To use SQLServer, install-package NServiceBus.NHibernate and then use configuration.UsePersistence<NHibernatePersistence>(); | ||
|
||
// For development/debugging you can also use, configuration.UsePersistence<InMemoryPersistence>(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
andreasohlund
Member
|
||
configuration.UsePersistence<PLEASE_SELECT_ONE>(); | ||
} | ||
} | ||
|
@andreasohlund I thought
InMemoryPersistence
is ok for prod use too? Specifically when transactions are off.