Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ayende committed Jul 29, 2012
1 parent ac7ff70 commit e807e57
Show file tree
Hide file tree
Showing 6 changed files with 3,540 additions and 3,540 deletions.
150 changes: 75 additions & 75 deletions Raven.Client.Lightweight/Linq/RavenQueryStatistics.cs
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
//-----------------------------------------------------------------------
// <copyright file="RavenQueryStatistics.cs" company="Hibernating Rhinos LTD">
// Copyright (c) Hibernating Rhinos LTD. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.ComponentModel;
using Raven.Abstractions.Data;

namespace Raven.Client.Linq
{
/// <summary>
/// Statistics about a raven query.
/// Such as how many records match the query
/// </summary>
public class RavenQueryStatistics
{
/// <summary>
/// Whatever the query returned potentially stale results
/// </summary>
public bool IsStale { get; set; }

/// <summary>
/// What was the total count of the results that matched the query
/// </summary>
public int TotalResults { get; set; }

/// <summary>
/// Gets or sets the skipped results (duplicate documents);
/// </summary>
public int SkippedResults { get; set; }

/// <summary>
/// The time when the query results were unstale.
/// </summary>
public DateTime Timestamp { get; set; }

/// <summary>
/// The name of the index queried
/// </summary>
public string IndexName { get; set; }

/// <summary>
/// The timestamp of the queried index
/// </summary>
public DateTime IndexTimestamp { get; set; }

/// <summary>
/// The etag of the queried index
/// </summary>
public Guid IndexEtag { get; set; }

/// <summary>
/// Gets or sets a value indicating whether any of the documents returned by this query
/// are non authoritative (modified by uncommitted transaction).
/// </summary>
public bool NonAuthoritativeInformation { get; set; }

/// <summary>
/// Update the query stats from the query results
/// </summary>
internal void UpdateQueryStats(QueryResult qr)
{
IsStale = qr.IsStale;
NonAuthoritativeInformation= qr.NonAuthoritativeInformation;
TotalResults = qr.TotalResults;
SkippedResults = qr.SkippedResults;
Timestamp = qr.IndexTimestamp;
IndexName = qr.IndexName;
IndexTimestamp = qr.IndexTimestamp;
IndexEtag = qr.IndexEtag;
}


}
//-----------------------------------------------------------------------
// <copyright file="RavenQueryStatistics.cs" company="Hibernating Rhinos LTD">
// Copyright (c) Hibernating Rhinos LTD. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.ComponentModel;
using Raven.Abstractions.Data;

namespace Raven.Client.Linq
{
/// <summary>
/// Statistics about a raven query.
/// Such as how many records match the query
/// </summary>
public class RavenQueryStatistics
{
/// <summary>
/// Whatever the query returned potentially stale results
/// </summary>
public bool IsStale { get; set; }

/// <summary>
/// What was the total count of the results that matched the query
/// </summary>
public int TotalResults { get; set; }

/// <summary>
/// Gets or sets the skipped results (duplicate documents);
/// </summary>
public int SkippedResults { get; set; }

/// <summary>
/// The time when the query results were unstale.
/// </summary>
public DateTime Timestamp { get; set; }

/// <summary>
/// The name of the index queried
/// </summary>
public string IndexName { get; set; }

/// <summary>
/// The timestamp of the queried index
/// </summary>
public DateTime IndexTimestamp { get; set; }

/// <summary>
/// The etag of the queried index
/// </summary>
public Guid IndexEtag { get; set; }

/// <summary>
/// Gets or sets a value indicating whether any of the documents returned by this query
/// are non authoritative (modified by uncommitted transaction).
/// </summary>
public bool NonAuthoritativeInformation { get; set; }

/// <summary>
/// Update the query stats from the query results
/// </summary>
internal void UpdateQueryStats(QueryResult qr)
{
IsStale = qr.IsStale;
NonAuthoritativeInformation= qr.NonAuthoritativeInformation;
TotalResults = qr.TotalResults;
SkippedResults = qr.SkippedResults;
Timestamp = qr.IndexTimestamp;
IndexName = qr.IndexName;
IndexTimestamp = qr.IndexTimestamp;
IndexEtag = qr.IndexEtag;
}


}
}
54 changes: 27 additions & 27 deletions Raven.Studio/Commands/NavigateToExternalUrlCommand.cs
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
using System;
using System.Windows.Browser;
using Raven.Studio.Infrastructure;
using Raven.Studio.Models;

namespace Raven.Studio.Commands
{
public class NavigateToExternalUrlCommand : Command
{
private string href;

public override bool CanExecute(object parameter)
{
href = parameter as string;
return href != null;
}

public override void Execute(object parameter)
{
if (href.StartsWith("http://") == false)
{
var ravendbUrl = ApplicationModel.Current.Server.Value.Url;
href = ravendbUrl + "/" + href;
}
HtmlPage.Window.Navigate(new Uri(href, UriKind.Absolute), "_blank");
}
}
using System;
using System.Windows.Browser;
using Raven.Studio.Infrastructure;
using Raven.Studio.Models;

namespace Raven.Studio.Commands
{
public class NavigateToExternalUrlCommand : Command
{
private string href;

public override bool CanExecute(object parameter)
{
href = parameter as string;
return href != null;
}

public override void Execute(object parameter)
{
if (href.StartsWith("http://") == false)
{
var ravendbUrl = ApplicationModel.Current.Server.Value.Url;
href = ravendbUrl + "/" + href;
}
HtmlPage.Window.Navigate(new Uri(href, UriKind.Absolute), "_blank");
}
}
}
8 changes: 4 additions & 4 deletions packages/xunit.1.9.0.1566/lib/xunit.dll.tdnet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<TestRunner>
<FriendlyName>xUnit.net {0}.{1}.{2} build {3}</FriendlyName>
<AssemblyPath>xunit.runner.tdnet.dll</AssemblyPath>
<TypeName>Xunit.Runner.TdNet.TdNetRunner</TypeName>
<TestRunner>
<FriendlyName>xUnit.net {0}.{1}.{2} build {3}</FriendlyName>
<AssemblyPath>xunit.runner.tdnet.dll</AssemblyPath>
<TypeName>Xunit.Runner.TdNet.TdNetRunner</TypeName>
</TestRunner>
Loading

0 comments on commit e807e57

Please sign in to comment.