This file contains hidden or 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
public class FileSystem | |
{ | |
public void Evaluate(IFolder folder) | |
{ | |
int? count; | |
TimeSpan? howLong; | |
var firstTen = Query(folder) | |
.Statistics(x => count = x.Count) | |
.Statistics(x => howLong = x.ExecutionSpan) |
This file contains hidden or 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
namespace RavenIndexSandbox.Customers | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using FizzWare.NBuilder; | |
using NUnit.Framework; | |
using Raven.Client; | |
using Raven.Client.Embedded; | |
using Raven.Client.Indexes; |
This file contains hidden or 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
namespace RavenIndexSandbox | |
{ | |
using System; | |
using System.Linq; | |
using NUnit.Framework; | |
using Raven.Client.Embedded; | |
using Raven.Client.Indexes; | |
[TestFixture] | |
public class WhenGroupinByLocation |
This file contains hidden or 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
namespace MultiMapSpatialTests | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using NUnit.Framework; | |
using Raven.Client.Embedded; | |
using Raven.Client.Indexes; | |
[Serializable] |
This file contains hidden or 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
namespace Sagas | |
{ | |
using System; | |
using System.Collections.Generic; | |
class Program | |
{ | |
static ActivityHost[] processes; |
This file contains hidden or 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
public class ConcurrentGateway | |
{ | |
private ConcurrentQueue<Action> _workQueue = new ConcurrentQueue<Action>(); | |
private int _writeLock = 0; | |
private static AutoResetEvent _waitEvent = new AutoResetEvent(false); | |
protected static AutoResetEvent GetThreadWaitEvent() | |
{ | |
//returns same event for all threads ,but we could easily provide a |
This file contains hidden or 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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Raven.Imports.Newtonsoft.Json; | |
using Raven.Tests.Helpers; | |
using Xunit; |
This file contains hidden or 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
void Main() | |
{ | |
var orders = false; | |
if(orders) | |
ParallelExecute(db => { | |
using(var session = db.OpenSession()) | |
{ | |
var list = new [] {new Order(), new Order()}; | |
foreach (var order in list) |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using System.Collections.Concurrent; | |
using System.Reflection.Emit; | |
using System.Threading; |
This file contains hidden or 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
void Main() | |
{ | |
var c = new ContainerBuilder(); | |
c.RegisterInLifetimeScope<Handler, ConcreteReflectionActivatorData>(x => x.RegisterType<Handler>()); | |
var scope = c.Build(); | |
scope.Resolve<IHandler>().Dump(); | |
} |
OlderNewer