Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View etishor's full-sized avatar

Iulian Margarintescu etishor

View GitHub Profile
@etishor
etishor / UserWorkItemIndex.cs
Created November 6, 2012 10:50
Definition of a user work item index using multi map reduce
public class UserWorkItemIndex : AbstractMultiMapIndexCreationTask<UserWorkItemIndex.Result>
{
public class Result
{
public string UserId { get; set; }
public string DocumentId { get; set; }
public int Validated { get; set; }
public int Total { get; set; }
public string FieldId { get; set; }
@etishor
etishor / UowDispatchMessageInspector.cs
Created March 22, 2011 15:02
Sample WCF message inspector to hook up nhibernate session binding/unbinding from the WcfOperationSessionContext
// this code was simplified for the purpose of beeing a sample
public class UowDispatchMessageInspector : IDispatchMessageInspector
{
private readonly ISessionFactory factory;
public UowDispatchMessageInspector(ISessionFactory factory)
{
this.factory = factory;
}