Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed NServiceBusHostQueues class. #1

Merged
merged 1 commit into from
Feb 8, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dropkick.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
<s:String x:Key="/Default/Environment/InjectedLayers/FileInjectedLayer/=02B920D5E6BDCC4DA01F4350C408666D/AbsolutePath/@EntryValue">C:\dev\dropkick\dropkick.DotSettings</s:String>
<s:String x:Key="/Default/Environment/InjectedLayers/FileInjectedLayer/=02B920D5E6BDCC4DA01F4350C408666D/RelativePath/@EntryValue">..\dropkick.DotSettings</s:String>
<s:Boolean x:Key="/Default/Environment/InjectedLayers/FileInjectedLayer/=02B920D5E6BDCC4DA01F4350C408666D/@KeyIndexDefined">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/InjectedLayers/InjectedLayerCustomization/=File02B920D5E6BDCC4DA01F4350C408666D/@KeyIndexDefined">True</s:Boolean>
<s:Double x:Key="/Default/Environment/InjectedLayers/InjectedLayerCustomization/=File02B920D5E6BDCC4DA01F4350C408666D/RelativePriority/@EntryValue">2</s:Double>
<s:Boolean x:Key="/Default/Environment/InjectedLayers/InjectedLayerCustomization/=File_003A_003AC_003A_005Cdev_005Cdropkick_005Cdropkick_002EDotSettings/@KeyIndexDefined">True</s:Boolean>
<s:Double x:Key="/Default/Environment/InjectedLayers/InjectedLayerCustomization/=File_003A_003AC_003A_005Cdev_005Cdropkick_005Cdropkick_002EDotSettings/RelativePriority/@EntryValue">1</s:Double></wpf:ResourceDictionary>
20 changes: 9 additions & 11 deletions product/dropkick.remote/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static void Main(string[] args)

//TODO:remote needs to become as awesome as the regular console

DeploymentResult result = new DeploymentResult();
var result = new DeploymentResult();

switch (args[0])
{
Expand Down Expand Up @@ -93,7 +93,7 @@ private static void DisplayResults(DeploymentResult results)

private static DeploymentResult VerifyMsmqExists(string[] args)
{
DeploymentResult result = new DeploymentResult();
var result = new DeploymentResult();
var queuename = args[1];
var queueAddress = new QueueAddress(queuename);
var formattedName = queueAddress.LocalName;
Expand All @@ -106,22 +106,20 @@ private static DeploymentResult VerifyMsmqExists(string[] args)

private static DeploymentResult CreateMsmq(string[] args)
{
DeploymentResult result = new DeploymentResult();

var queuename = args[1];
var queueAddress = new QueueAddress(queuename);
var transactional = false;
if (args.Length > 2)
bool.TryParse(args[2], out transactional);

result = new CreateLocalMsmqQueueTask(_server, queueAddress, transactional).Execute();
var result = new CreateLocalMsmqQueueTask(_server, queueAddress, transactional).Execute();

return result;
}

private static DeploymentResult GrantMsmqPermissions(string[] args)
{
DeploymentResult result = new DeploymentResult();
var result = new DeploymentResult();

var perm = args[1];
var user = args[2];
Expand Down Expand Up @@ -159,18 +157,18 @@ private static DeploymentResult GrantMsmqPermissions(string[] args)

private static DeploymentResult GrantCertificatePermissions(string[] args)
{
DeploymentResult result = new DeploymentResult();
var result = new DeploymentResult();

var perm = args[1];
var groupArray = args[2];
var thumbprint = args[3];
string s_storeName = args[4];
var s_storeLocation = args[5];
var storeNameArg = args[4];
var storeLocationArg = args[5];

var groups = groupArray.Split(new[]{"|"},StringSplitOptions.RemoveEmptyEntries);

StoreName storeName = (StoreName)Enum.Parse(typeof(StoreName), s_storeName,true);
StoreLocation storeLocation = (StoreLocation)Enum.Parse(typeof(StoreLocation), s_storeLocation,true);
var storeName = (StoreName)Enum.Parse(typeof(StoreName), storeNameArg,true);
var storeLocation = (StoreLocation)Enum.Parse(typeof(StoreLocation), storeLocationArg,true);

switch (perm)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// specific language governing permissions and limitations under the License.
namespace dropkick.Configuration.Dsl.NServiceBusHost
{
using System;
using DeploymentModel;
using FileSystem;
using Tasks;
Expand All @@ -23,7 +22,6 @@ public class NServiceBusHostConfigurator :
NServiceBusHostOptions
{
readonly NServiceBusHostExeArgs _args;
NServiceBusHostQueues _queues;
readonly Path _path;
string _location;
string _exeName;
Expand Down Expand Up @@ -85,13 +83,6 @@ public void Profiles(string profiles)
_args.Profiles = profiles;
}

public void CreateServiceQueue(Action<NServiceBusHostQueues> queueOptions = null)
{
_queues = new NServiceBusHostQueues();
if (queueOptions != null)
queueOptions(_queues);
}

public override void RegisterRealTasks(PhysicalServer site)
{
_args.PromptForUsernameAndPasswordIfNecessary(_exeName);
Expand All @@ -105,9 +96,6 @@ public override void RegisterRealTasks(PhysicalServer site)
{
site.AddTask(new RemoteNServiceBusHostTask(_exeName, location, site, _args));
}

if (_queues != null)
_queues.RegisterRealTasks(site, _args.ServiceName, _args.Username);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
// specific language governing permissions and limitations under the License.
namespace dropkick.Configuration.Dsl.NServiceBusHost
{
using System;

public interface NServiceBusHostOptions
{
void ExeName(string name);
Expand All @@ -26,6 +24,5 @@ public interface NServiceBusHostOptions
void EndpointName(string name);
void EndpointConfigurationType(string iConfigureThisEndpointTypeFullName, string assembly);
void Profiles(string profiles);
void CreateServiceQueue(Action<NServiceBusHostQueues> queueOptions);
}
}

This file was deleted.

1 change: 0 additions & 1 deletion product/dropkick/dropkick.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
<Compile Include="Configuration\Dsl\NServiceBusHost\Extension.cs" />
<Compile Include="Configuration\Dsl\NServiceBusHost\NServiceBusHostConfigurator.cs" />
<Compile Include="Configuration\Dsl\NServiceBusHost\NServiceBusHostOptions.cs" />
<Compile Include="Configuration\Dsl\NServiceBusHost\NServiceBusHostQueues.cs" />
<Compile Include="Configuration\Dsl\RavenDb\Extension.cs" />
<Compile Include="Configuration\Dsl\RavenDb\RavenDbConfigurator.cs" />
<Compile Include="Configuration\Dsl\RavenDb\RavenDbOptions.cs" />
Expand Down