Commits

Ben Foster committed d195b63

Added missing assembly references

Comments (0)

Files changed (4)

NServiceBusAzure/ServiceDefinition.build.csdef

   **********************************************************************************************
 -->
 <ServiceDefinition name="NServiceBusAzure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
-  <WorkerRole name="Worker" vmsize="Small">
+  <WorkerRole name="Worker" vmsize="Small" enableNativeCodeExecution="true">
     <ConfigurationSettings>
       <Setting name="AzureQueueConfig.ConnectionString" />
       <Setting name="NServiceBus.Profile" />

NServiceBusAzure/ServiceDefinition.csdef

 <?xml version="1.0" encoding="utf-8"?>
 <ServiceDefinition name="NServiceBusAzure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
-  <WorkerRole name="Worker" vmsize="Small">
+  <WorkerRole name="Worker" vmsize="Small" enableNativeCodeExecution="true">
     <ConfigurationSettings>
       <Setting name="AzureQueueConfig.ConnectionString" />
       <Setting name="NServiceBus.Profile" />

Worker/Worker.csproj

     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
   <ItemGroup>
+    <Reference Include="Common.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
+      <HintPath>..\lib\Common.Logging.dll</HintPath>
+    </Reference>
+    <Reference Include="Iesi.Collections, Version=1.0.1.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
+      <HintPath>..\lib\Iesi.Collections.dll</HintPath>
+    </Reference>
     <Reference Include="log4net">
       <HintPath>..\lib\log4net.dll</HintPath>
     </Reference>
     <Compile Include="EndpointConfig.cs" />
     <Compile Include="Host.cs" />
     <Compile Include="SendMessageCommandHandler.cs" />
-    <Compile Include="WorkerRole.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
   <ItemGroup>

Worker/WorkerRole.cs

-//using System;
-//using System.Collections.Generic;
-//using System.Diagnostics;
-//using System.Linq;
-//using System.Net;
-//using System.Threading;
-//using Microsoft.WindowsAzure;
-//using Microsoft.WindowsAzure.Diagnostics;
-//using Microsoft.WindowsAzure.ServiceRuntime;
-//using Microsoft.WindowsAzure.StorageClient;
-
-//namespace Worker
-//{
-//    public class WorkerRole : RoleEntryPoint
-//    {
-//        public override void Run()
-//        {
-//            // This is a sample worker implementation. Replace with your logic.
-//            Trace.WriteLine("Worker entry point called", "Information");
-
-//            while (true)
-//            {
-//                Thread.Sleep(10000);
-//                Trace.WriteLine("Working", "Information");
-//            }
-//        }
-
-//        public override bool OnStart()
-//        {
-//            // Set the maximum number of concurrent connections 
-//            ServicePointManager.DefaultConnectionLimit = 12;
-
-//            // For information on handling configuration changes
-//            // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
-
-//            return base.OnStart();
-//        }
-//    }
-//}