Skip to content

Instantly share code, notes, and snippets.

View ayende's full-sized avatar

Ayende Rahien ayende

View GitHub Profile
@ayende
ayende / clusterTest.cs
Created March 8, 2017 19:53 — forked from jolovin-mmi/clusterTest.cs
Custom Cluster Test
public class CustomReplicationInformer : IDocumentStoreReplicationInformer
{
private readonly ReplicationInformer _informer;
public CustomReplicationInformer(DocumentConvention conventions, HttpJsonRequestFactory jsonRequestFactory, Func<string, IRequestTimeMetric> requestTimeMetricGetter)
{
_informer = new ReplicationInformer(conventions, jsonRequestFactory, requestTimeMetricGetter);
}
public event EventHandler<FailoverStatusChangedEventArgs> FailoverStatusChanged
using System;
using System.Collections.Generic;
using System.Linq;
namespace Voron.Util
{
/// <summary>
/// A list that can be used by readers as a true immutable read-only list
/// and that supports relatively efficient "append to the end" and "remove
/// from the front" operations, by sharing the underlying array whenever
using System;
using System.Linq;
using Raven.Abstractions.Indexing;
using Raven.Client;
using Raven.Client.Indexes;
using Xunit;
namespace Raven.Tests.MailingList
{
public class NullableIssue : RavenTest
@ayende
ayende / gist:1186051
Created September 1, 2011 12:14 — forked from Andrea/gist:1186006
namespace ravenConsole
{
using System;
using System.Linq;
using Raven.Client.Document;
using Raven.Client.Indexes;
using Xunit;
public class DocumentsTests
{