forked from Particular/NServiceBus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved the pub/sub sample to the new 3.0 configuration model
- Loading branch information
andreasohlund
committed
Sep 26, 2011
1 parent
ce986eb
commit 5c1a650
Showing
8 changed files
with
34 additions
and
46 deletions.
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
Binary file not shown.
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace Subscriber1 | ||
{ | ||
using NServiceBus.Config; | ||
using NServiceBus.Config.ConfigurationSource; | ||
|
||
//demonstrate how to override specific configuration sections | ||
class ConfigOverride : IProvideConfiguration<MessageForwardingInCaseOfFaultConfig> | ||
{ | ||
public MessageForwardingInCaseOfFaultConfig GetConfiguration() | ||
{ | ||
return new MessageForwardingInCaseOfFaultConfig | ||
{ | ||
ErrorQueue = "error" | ||
}; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,23 +1,6 @@ | ||
using NServiceBus; | ||
using NServiceBus.Config; | ||
using NServiceBus.Config.ConfigurationSource; | ||
|
||
namespace Subscriber1 | ||
{ | ||
class EndpointConfig : IConfigureThisEndpoint, AsA_Server {} | ||
|
||
//demonstrate how to override specific configuration sections | ||
class D : IProvideConfiguration<MsmqTransportConfig> | ||
{ | ||
public MsmqTransportConfig GetConfiguration() | ||
{ | ||
return new MsmqTransportConfig | ||
{ | ||
ErrorQueue = "error", | ||
InputQueue = "Subscriber1InputQueue", | ||
MaxRetries = 5, | ||
NumberOfWorkerThreads = 1 | ||
}; | ||
} | ||
} | ||
} |
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
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
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