Skip to content

Instantly share code, notes, and snippets.

View jtbennett's full-sized avatar

John Bennett jtbennett

View GitHub Profile
@jtbennett
jtbennett / LastInWinsReplicationConflictResolver.cs
Created March 10, 2012 16:41
RavenDB LastInWinsReplicationConflictResolver
using System;
using System.Linq;
using NLog;
using Raven.Abstractions.Data;
using Raven.Bundles.Replication;
using Raven.Bundles.Replication.Plugins;
using Raven.Json.Linq;
namespace MyRavenReplicationBundle
{
@jtbennett
jtbennett / Global.asax.cs
Created December 16, 2012 21:04
Proposed naming convention for MVC areas installed by NuGet
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
...
ViewEngines.Engines.Clear();
ViewEngines.Engines.Add(this.GetRazorViewEngine());
}
private RazorViewEngine GetRazorViewEngine()