move roles into host

The plan is to make a similar change to the azure host and "hardcode" the
roles there.

Regarding UsingPersistence of T , me and @simoncropp didn't see the need
for it but I'm happy to reconsider?


On Tue, Aug 5, 2014 at 7:43 AM, John Simons <notifications@github.com>
wrote:

> In src/NServiceBus.Hosting.Windows/Roles/UsingPersistence.cs:
>
> > @@ -1,13 +0,0 @@
> > -namespace NServiceBus
> > -{
> > -    using Hosting.Roles;
> > -    using Persistence;
> > -
> > -    /// <summary>
> > -    /// Role used to specify the desired persistence to use
> > -    /// </summary>
> > -    /// <typeparam name="T">The <see cref="PersistenceDefinition"/> to use.</typeparam>
> > -    public interface UsingPersistence<T> : IRole where T : PersistenceDefinition
>
> @andreasohlund <https://github.com/andreasohlund> the reason as I stated
> is because in the Azure host we currently support:
>
> public class EndpointConfig : IConfigureThisEndpoint, AsA_Worker, UsingTransport<AzureStorageQueue>, UsingPersistence<AzureStorage>
>
> As a user I would expect the same for regular host, eg
>
> public class EndpointConfig : IConfigureThisEndpoint, AsA_Publisher, UsingTransport<Msmq>, UsingPersistence<RavenDB>
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Particular/NServiceBus/pull/2260/files#r15795837>.
>