Skip to content

Commit

Permalink
reference changes in sample projects
Browse files Browse the repository at this point in the history
  • Loading branch information
davybrion committed Jul 15, 2011
1 parent 7753c82 commit e76dcdf
Show file tree
Hide file tree
Showing 20 changed files with 85,989 additions and 19 deletions.
7 changes: 4 additions & 3 deletions examples/Sample.DotNetClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ static void Main(string[] args)
{
InitializeAgatha();
Console.WriteLine(@"Press a key to end this program (hopefully, you saw ""Hello World!"" twice)");
//CallTheServiceSynchronously();
CallTheServiceSynchronously();
CallTheServiceAsynchronously();
Console.ReadKey();
}
Expand Down Expand Up @@ -97,7 +97,8 @@ private static void InitializeAgatha()
//new ClientConfiguration(typeof(HelloWorldRequest).Assembly, typeof(Agatha.Castle.Container)).Initialize();
//new ClientConfiguration(typeof(HelloWorldRequest).Assembly, typeof(Agatha.Ninject.Container)).Initialize();
//new ClientConfiguration(typeof(HelloWorldRequest).Assembly, typeof(Agatha.Unity.Container)).Initialize();
new ClientConfiguration(typeof(HelloWorldRequest).Assembly, typeof(Agatha.Spring.Container)).Initialize();
}
//new ClientConfiguration(typeof(HelloWorldRequest).Assembly, typeof(Agatha.Spring.Container)).Initialize();
new ClientConfiguration(typeof(HelloWorldRequest).Assembly, typeof(Agatha.StructureMap.Container)).Initialize();
}
}
}
3 changes: 2 additions & 1 deletion examples/Sample.DotNetClient/Sample.DotNetClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Common.Logging">
<HintPath>..\..\libs\Common.Logging.dll</HintPath>
<HintPath>..\packages\Common.Logging.2.0.0\lib\2.0\Common.Logging.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
Expand Down Expand Up @@ -95,6 +95,7 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
Expand Down
4 changes: 4 additions & 0 deletions examples/Sample.DotNetClient/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Common.Logging" version="2.0.0" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<Reference Include="Common.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
<HintPath>..\packages\Common.Logging.2.0.0\lib\2.0\Common.Logging.dll</HintPath>
</Reference>
<Reference Include="Common.Logging.Log4Net, Version=2.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
<Reference Include="Common.Logging.Log4Net">
<HintPath>..\packages\Common.Logging.Log4Net.2.0.0\lib\2.0\Common.Logging.Log4Net.dll</HintPath>
</Reference>
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
Expand Down
2 changes: 2 additions & 0 deletions examples/Sample.ServiceLayer.Host/log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WARN 2011-07-16 12:23:20 - Performance warning: 2924ms for the following batch: HelloWorldRequest, ReverseStringRequest
WARN 2011-07-16 12:23:23 - Performance warning: 2733ms for the following batch: HelloWorldCommand
19 changes: 9 additions & 10 deletions examples/Sample.ServiceLayer/ComponentRegistration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@ public static void Register()
// NOTE: i'm using Castle Windsor as the IOC container for this sample... if you would want Agatha to use the same container instance that the rest
// of your code is using, check this out: http://davybrion.com/blog/2009/11/integrating-your-ioc-container-with-agatha/

//new ServiceLayerConfiguration(Assembly.GetExecutingAssembly(), typeof(HelloWorldRequest).Assembly, typeof(Agatha.Castle.Container)).Initialize();
//new ServiceLayerConfiguration(Assembly.GetExecutingAssembly(), typeof(HelloWorldRequest).Assembly, typeof(Agatha.StructureMap.Container)).Initialize();
//var config = new ServiceLayerConfiguration(Assembly.GetExecutingAssembly(), typeof(HelloWorldRequest).Assembly, typeof(Agatha.Castle.Container))
// {
// RequestProcessorImplementation = typeof(PerformanceLoggingRequestProcessor)
// };
//config.Initialize();

//var config = new ServiceLayerConfiguration(Assembly.GetExecutingAssembly(), typeof(HelloWorldRequest).Assembly, typeof(Agatha.Castle.Container))
// {
// RequestProcessorImplementation = typeof(PerformanceLoggingRequestProcessor)
// };
//config.Initialize();

//new ServiceLayerConfiguration(Assembly.GetExecutingAssembly(), typeof(HelloWorldRequest).Assembly, typeof(Agatha.Unity.Container)).Initialize();
new ServiceLayerConfiguration(Assembly.GetExecutingAssembly(), typeof(HelloWorldRequest).Assembly, typeof(Agatha.Castle.Container)).Initialize();
//new ServiceLayerConfiguration(Assembly.GetExecutingAssembly(), typeof(HelloWorldRequest).Assembly, typeof(Agatha.StructureMap.Container)).Initialize();
//new ServiceLayerConfiguration(Assembly.GetExecutingAssembly(), typeof(HelloWorldRequest).Assembly, typeof(Agatha.Unity.Container)).Initialize();
//new ServiceLayerConfiguration(Assembly.GetExecutingAssembly(), typeof(HelloWorldRequest).Assembly, typeof(Agatha.Ninject.Container)).Initialize();
new ServiceLayerConfiguration(Assembly.GetExecutingAssembly(), typeof(HelloWorldRequest).Assembly, typeof(Agatha.Spring.Container)).Initialize();
//new ServiceLayerConfiguration(Assembly.GetExecutingAssembly(), typeof(HelloWorldRequest).Assembly, typeof(Agatha.Spring.Container)).Initialize();
}
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Ninject, Version=2.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Ninject.2.2.1.4\lib\sl4\Ninject.dll</HintPath>
</Reference>
<Reference Include="System.Windows" />
<Reference Include="mscorlib" />
<Reference Include="system" />
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit e76dcdf

Please sign in to comment.