Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing newbie git mistake. Adding file that should have been included…
… in last commit.
- Loading branch information
Kenneth Baltrinic
committed
Feb 8, 2011
1 parent
b5b797e
commit d86986e
Showing
1 changed file
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Collections.Generic; | ||
using Castle.Core.Configuration; | ||
|
||
namespace Rhino.ServiceBus.Hosting | ||
{ | ||
public class RhinoQueuesHostConfiguration : HostConfiguration | ||
{ | ||
private string Path { get; set; } | ||
|
||
public HostConfiguration StoragePath(string path) | ||
{ | ||
Path = path; | ||
return this; | ||
} | ||
protected override void PopulateBusConfiguration(MutableConfiguration busConfig) | ||
{ | ||
base.PopulateBusConfiguration(busConfig); | ||
|
||
if (string.IsNullOrEmpty(Path) == false) | ||
busConfig.Attribute("path", Path); | ||
} | ||
} | ||
} |