Is it possible to create a profile that contains a connection string or points to a connection string in the app.config? I'd like to have a single project that can create multiple services based on which profile is passed when I execute NServicebus.Host.exe.
So something like this:
public class Warehouse1 : IProfile
{
// Code goes here to set the connection string to the Warehouse1 DB
}
public class Warehouse2 : IProfile
{
// Code goes here to set the connection string to the Warehouse2 DB
}
When I execute "NServicebus.Host.exe Warehouse1" I want my Publisher to use the connection string I set and use a different connection string when I execute "NServicebus.Host.exe Warehouse2".