Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

Commit

Permalink
Upgrade to raven 2.5.2750.
Browse files Browse the repository at this point in the history
Make sure feed query waits for non stale results
  • Loading branch information
jgeurts committed Nov 26, 2013
1 parent 8a8c745 commit 5a4e804
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 44 deletions.
2 changes: 1 addition & 1 deletion RssToEmail/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static void Main(string[] args)
var failedSends = 0;
foreach (var url in urls)
{
var savedFeed = session.Query<Feed>().SingleOrDefault(x => x.Url == url) ??
var savedFeed = session.Query<Feed>().Customize(x => x.WaitForNonStaleResultsAsOfLastWrite()).SingleOrDefault(x => x.Url == url) ??
new Feed {
Url = url
};
Expand Down
68 changes: 29 additions & 39 deletions RssToEmail/RssToEmail.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,56 +37,52 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="BouncyCastle.Crypto">
<HintPath>..\packages\RavenDB.Database.1.2.2060-Unstable\lib\net40\BouncyCastle.Crypto.dll</HintPath>
</Reference>
<Reference Include="Esent.Interop">
<HintPath>..\packages\RavenDB.Database.1.2.2060-Unstable\lib\net40\Esent.Interop.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.NRefactory">
<HintPath>..\packages\RavenDB.Database.1.2.2060-Unstable\lib\net40\ICSharpCode.NRefactory.dll</HintPath>
</Reference>
<Reference Include="log4net">
<HintPath>..\packages\log4net.2.0.3\lib\net40-full\log4net.dll</HintPath>
</Reference>
<Reference Include="Lucene.Net">
<HintPath>..\packages\RavenDB.Database.1.2.2060-Unstable\lib\net40\Lucene.Net.dll</HintPath>
</Reference>
<Reference Include="Lucene.Net.Contrib.Spatial">
<HintPath>..\packages\RavenDB.Database.1.2.2060-Unstable\lib\net40\Lucene.Net.Contrib.Spatial.dll</HintPath>
<Reference Include="Microsoft.CompilerServices.AsyncTargetingPack.Net4">
<HintPath>..\packages\Microsoft.CompilerServices.AsyncTargetingPack.1.0.1\lib\net40\Microsoft.CompilerServices.AsyncTargetingPack.Net4.dll</HintPath>
</Reference>
<Reference Include="Lucene.Net.Contrib.SpellChecker">
<HintPath>..\packages\RavenDB.Database.1.2.2060-Unstable\lib\net40\Lucene.Net.Contrib.SpellChecker.dll</HintPath>
<Reference Include="Microsoft.Data.Edm, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.Data.Edm.5.2.0\lib\net40\Microsoft.Data.Edm.dll</HintPath>
</Reference>
<Reference Include="NLog">
<HintPath>..\packages\NLog.2.0.0.2000\lib\net40\NLog.dll</HintPath>
<Reference Include="Microsoft.Data.OData, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.Data.OData.5.2.0\lib\net40\Microsoft.Data.OData.dll</HintPath>
</Reference>
<Reference Include="Raven.Abstractions">
<HintPath>..\packages\RavenDB.Client.1.2.2060-Unstable\lib\net40\Raven.Abstractions.dll</HintPath>
<Reference Include="Microsoft.WindowsAzure.Configuration">
<HintPath>..\packages\Microsoft.WindowsAzure.ConfigurationManager.1.8.0.0\lib\net35-full\Microsoft.WindowsAzure.Configuration.dll</HintPath>
</Reference>
<Reference Include="Raven.Backup">
<HintPath>..\packages\RavenDB.Database.1.2.2060-Unstable\lib\net40\Raven.Backup.exe</HintPath>
<Reference Include="Microsoft.WindowsAzure.Storage">
<HintPath>..\packages\WindowsAzure.Storage.2.0.6.1\lib\net40\Microsoft.WindowsAzure.Storage.dll</HintPath>
</Reference>
<Reference Include="Raven.Client.Embedded">
<HintPath>..\packages\RavenDB.Embedded.1.2.2060-Unstable\lib\net40\Raven.Client.Embedded.dll</HintPath>
<Reference Include="Raven.Abstractions, Version=2.5.0.0, Culture=neutral, PublicKeyToken=37f41c7f99471593, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\RavenDB.Client.2.5.2750\lib\net40\Raven.Abstractions.dll</HintPath>
</Reference>
<Reference Include="Raven.Client.Lightweight">
<HintPath>..\packages\RavenDB.Client.1.2.2060-Unstable\lib\net40\Raven.Client.Lightweight.dll</HintPath>
<Reference Include="Raven.Client.Embedded, Version=2.5.0.0, Culture=neutral, PublicKeyToken=37f41c7f99471593, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\RavenDB.Embedded.2.5.2750\lib\net40\Raven.Client.Embedded.dll</HintPath>
</Reference>
<Reference Include="Raven.Database">
<HintPath>..\packages\RavenDB.Database.1.2.2060-Unstable\lib\net40\Raven.Database.dll</HintPath>
<Reference Include="Raven.Client.Lightweight, Version=2.5.0.0, Culture=neutral, PublicKeyToken=37f41c7f99471593, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\RavenDB.Client.2.5.2750\lib\net40\Raven.Client.Lightweight.dll</HintPath>
</Reference>
<Reference Include="Raven.Smuggler">
<HintPath>..\packages\RavenDB.Database.1.2.2060-Unstable\lib\net40\Raven.Smuggler.exe</HintPath>
</Reference>
<Reference Include="Spatial4n.Core">
<HintPath>..\packages\RavenDB.Database.1.2.2060-Unstable\lib\net40\Spatial4n.Core.dll</HintPath>
<Reference Include="Raven.Database, Version=2.5.0.0, Culture=neutral, PublicKeyToken=37f41c7f99471593, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\RavenDB.Database.2.5.2750\lib\net40\Raven.Database.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Data.Services.Client" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.Spatial, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\System.Spatial.5.2.0\lib\net40\System.Spatial.dll</HintPath>
</Reference>
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
Expand All @@ -107,12 +103,6 @@
</None>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Content Include="..\packages\RavenDB.Embedded.1.2.2060-Unstable\tools\Raven.Studio.xap">
<Link>Raven.Studio.xap</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
13 changes: 9 additions & 4 deletions RssToEmail/packages.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.3" targetFramework="net40" />
<package id="NLog" version="2.0.0.2000" targetFramework="net40-Client" />
<package id="RavenDB.Client" version="1.2.2060-Unstable" targetFramework="net40-Client" />
<package id="RavenDB.Database" version="1.2.2060-Unstable" targetFramework="net40-Client" />
<package id="RavenDB.Embedded" version="1.2.2060-Unstable" targetFramework="net40-Client" />
<package id="Microsoft.CompilerServices.AsyncTargetingPack" version="1.0.1" targetFramework="net40" />
<package id="Microsoft.Data.Edm" version="5.2.0" targetFramework="net40" />
<package id="Microsoft.Data.OData" version="5.2.0" targetFramework="net40" />
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="1.8.0.0" targetFramework="net40" />
<package id="RavenDB.Client" version="2.5.2750" targetFramework="net40" />
<package id="RavenDB.Database" version="2.5.2750" targetFramework="net40" />
<package id="RavenDB.Embedded" version="2.5.2750" targetFramework="net40" />
<package id="System.Spatial" version="5.2.0" targetFramework="net40" />
<package id="WindowsAzure.Storage" version="2.0.6.1" targetFramework="net40" />
</packages>

0 comments on commit 5a4e804

Please sign in to comment.