Skip to content

Commit

Permalink
OR Repository Locator
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic Pillinger committed Jan 27, 2012
1 parent 7cc0bcb commit 33cd0c5
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 40 deletions.
Expand Up @@ -6,9 +6,9 @@

namespace agilex.persistence.openrasta
{
public static class AgilexOpenRasta
public static class AgilexOpenRastaDatabase
{
public static void ConfigureDatabase(IDatabaseConfigurationParams configurationParams)
public static void Configure(IDatabaseConfigurationParams configurationParams)
{
ResourceSpace.Uses.PipelineContributor<RepositoryOpeningPipeline>();
ResourceSpace.Uses.PipelineContributor<RepositoryClosingPipeline>();
Expand Down
20 changes: 20 additions & 0 deletions src/agilex.persistence.openrasta/OpenRastaRepositoryLocator.cs
@@ -0,0 +1,20 @@
using OpenRasta.Web;
using agilex.persistence.openrasta.Pipelines;

namespace agilex.persistence.openrasta
{
public class OpenRastaRepositoryLocator : IRepositoryLocator
{
readonly IRepository _repository;

public OpenRastaRepositoryLocator(ICommunicationContext communicationContext)
{
_repository = communicationContext.PipelineData[ContextKeys.Repository] as IRepository;
}

public IRepository RepositoryInstance
{
get { return _repository; }
}
}
}
Expand Up @@ -32,10 +32,10 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="agilex.persistence, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\agilex.persistence.1.0.0.9\lib\net40\agilex.persistence.dll</HintPath>
<HintPath>..\packages\agilex.persistence.1.0.0.12\lib\net40\agilex.persistence.dll</HintPath>
</Reference>
<Reference Include="agilex.persistence.nhibernate, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\agilex.persistence.1.0.0.9\lib\net40\agilex.persistence.nhibernate.dll</HintPath>
<HintPath>..\packages\agilex.persistence.1.0.0.12\lib\net40\agilex.persistence.nhibernate.dll</HintPath>
</Reference>
<Reference Include="Castle.Core">
<HintPath>..\packages\Castle.Core.2.5.2\lib\NET35\Castle.Core.dll</HintPath>
Expand Down Expand Up @@ -69,7 +69,8 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="OpenRasta.cs" />
<Compile Include="AgilexOpenRastaDatabase.cs" />
<Compile Include="OpenRastaRepositoryLocator.cs" />
<Compile Include="Pipelines\ContextKeys.cs" />
<Compile Include="Pipelines\RepositoryClosingPipeline.cs" />
<Compile Include="Pipelines\RepositoryOpeningPipeline.cs" />
Expand Down
2 changes: 1 addition & 1 deletion src/agilex.persistence.openrasta/packages.config
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="agilex.persistence" version="1.0.0.9" />
<package id="agilex.persistence" version="1.0.0.12" />
<package id="Castle.Core" version="2.5.2" />
<package id="FluentNHibernate" version="1.2.0.712" />
<package id="Iesi.Collections" version="3.1.0.4000" />
Expand Down
Binary file not shown.
34 changes: 34 additions & 0 deletions src/packages/agilex.persistence.1.0.0.12/build_log.txt
@@ -0,0 +1,34 @@
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 27/01/2012 11:31:31.
Project "c:\Projects\agilex.persistence\src\agilex.persistence.nhibernate\agilex.persistence.nhibernate.csproj" on node 1 (default targets).
Project "c:\Projects\agilex.persistence\src\agilex.persistence.nhibernate\agilex.persistence.nhibernate.csproj" (1) is building "c:\Projects\agilex.persistence\src\agilex.persistence\agilex.persistence.csproj" (2) on node 1 (default targets).
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Microsoft.CSharp.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll" /debug:pdbonly /filealign:512 /optimize+ /out:obj\Release\agilex.persistence.dll /target:library IRepositoryLocator.cs DatabaseConfigurationParams.cs EntityNotFoundException.cs IDatabaseConfigurationParams.cs IRepository.cs IRepositoryFactory.cs Properties\AssemblyInfo.cs "d:\Users2\nic\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.cs"
CopyFilesToOutputDirectory:
Copying file from "obj\Release\agilex.persistence.dll" to "bin\Release\agilex.persistence.dll".
agilex.persistence -> c:\Projects\agilex.persistence\src\agilex.persistence\bin\Release\agilex.persistence.dll
Copying file from "obj\Release\agilex.persistence.pdb" to "bin\Release\agilex.persistence.pdb".
Done Building Project "c:\Projects\agilex.persistence\src\agilex.persistence\agilex.persistence.csproj" (default targets).
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE /reference:c:\Projects\agilex.persistence\src\agilex.persistence\bin\Release\agilex.persistence.dll /reference:c:\Projects\agilex.persistence\src\packages\Castle.Core.2.5.2\lib\NET35\Castle.Core.dll /reference:c:\Projects\agilex.persistence\src\packages\FluentNHibernate.1.2.0.712\lib\FluentNHibernate.dll /reference:c:\Projects\agilex.persistence\src\packages\Iesi.Collections.3.1.0.4000\lib\Net35\Iesi.Collections.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Microsoft.CSharp.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" /reference:c:\Projects\agilex.persistence\src\packages\NHibernate.Castle.3.1.0.4000\lib\Net35\NHibernate.ByteCode.Castle.dll /reference:c:\Projects\agilex.persistence\src\packages\NHibernate.3.1.0.4000\lib\Net35\NHibernate.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll" /debug:pdbonly /filealign:512 /optimize+ /out:obj\Release\agilex.persistence.nhibernate.dll /target:library NhibernateConfiguration.cs Properties\AssemblyInfo.cs Repository.cs RepositoryFactory.cs "d:\Users2\nic\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.cs"
_CopyFilesMarkedCopyLocal:
Copying file from "c:\Projects\agilex.persistence\src\agilex.persistence\bin\Release\agilex.persistence.dll" to "bin\Release\agilex.persistence.dll".
Copying file from "c:\Projects\agilex.persistence\src\agilex.persistence\bin\Release\agilex.persistence.pdb" to "bin\Release\agilex.persistence.pdb".
CopyFilesToOutputDirectory:
Copying file from "obj\Release\agilex.persistence.nhibernate.dll" to "bin\Release\agilex.persistence.nhibernate.dll".
agilex.persistence.nhibernate -> c:\Projects\agilex.persistence\src\agilex.persistence.nhibernate\bin\Release\agilex.persistence.nhibernate.dll
Copying file from "obj\Release\agilex.persistence.nhibernate.pdb" to "bin\Release\agilex.persistence.nhibernate.pdb".
Done Building Project "c:\Projects\agilex.persistence\src\agilex.persistence.nhibernate\agilex.persistence.nhibernate.csproj" (default targets).

Build succeeded.
0 Warning(s)
0 Error(s)

Time Elapsed 00:00:00.34
Binary file not shown.
Binary file not shown.
Binary file not shown.
34 changes: 0 additions & 34 deletions src/packages/agilex.persistence.1.0.0.9/build_log.txt

This file was deleted.

Binary file not shown.
Binary file not shown.

0 comments on commit 33cd0c5

Please sign in to comment.