forked from ravendb/ravendb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
3,540 additions
and
3,540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.