Exemplo n.º 1
0
 public IOfferRemoteDeployment NServiceBusEndpoint(string sourceDir, string destDir, string serviceName, Action<NServiceBusOptions> nServiceBusOptions = null)
 {
     var nServiceBusProvider = new NServiceBusOperation(sourceDir, destDir, serviceName);
     if(nServiceBusOptions != null)
     {
         nServiceBusOptions(new NServiceBusOptions(nServiceBusProvider));
     }
     nServiceBusProvider.Configure(new RemoteCompositeBuilder(_remoteSequence.NewCompositeSequence(nServiceBusProvider), _webDeploy));
     return this;
 }
Exemplo n.º 2
0
 public IOfferRemoteDeployment NServiceBusEndpoint(string sourceDir, string destDir, string serviceName, string profile, Action<IOfferWindowsServiceOptions> options)
 {
     var nServiceBusProvider = new NServiceBusOperation(sourceDir, destDir, serviceName, profile, options);
     AddOperation(nServiceBusProvider);
     return this;
 }
 /// <summary>
 /// Exactly the same as the WindowsService operation, only tailored for NServiceBus.
 /// </summary>
 /// <param name="sourceDir"></param>
 /// <param name="destDir"></param>
 /// <param name="serviceName"></param>
 /// <param name="profile"> </param>
 /// <param name="options"></param>
 /// <returns></returns>
 public static IOfferRemoteDeployment NServiceBusEndpoint(this IOfferRemoteDeployment remote, string sourceDir, string destDir, string serviceName, string profile, Action<IOfferWindowsServiceOptions> options)
 {
     var nServiceBusProvider = new NServiceBusOperation(sourceDir, destDir, serviceName, profile, options);
     Configure.Operation(remote, nServiceBusProvider);
     //Configure.DeploymentOperations.AddOperation(nServiceBusProvider);
     return remote;
 }