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 JabbR.Infrastructure; | |
| using JabbR.Models; | |
| using JabbR.Services; | |
| using Nancy; | |
| using Nancy.Authentication.WorldDomination; | |
| using WorldDomination.Web.Authentication; | |
| namespace JabbR.Nancy | |
| { |
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 NooVerbs | |
| { | |
| public class MyBadgerModule : NooModuleBase | |
| { | |
| public MyBadgerModule() | |
| { | |
| this.Get["/"] = _ => "erm"; | |
| } | |
| } | |
| } |
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 HomeModule : NancyModule | |
| { | |
| public HomeModule() | |
| { | |
| this.RequireClaim("stuff") | |
| .For("GET") | |
| .On("/test/{claim}") | |
| .With(o => | |
| { | |
| return "YAY"; |
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 NancyModule : NancyModule<RouteBuilder> | |
| { | |
| } | |
| public class NancyModule<T> where T : RouteBuilder | |
| { | |
| private static ConcurrentDictionary<Type, Func<object>> CompiledRouteBuilders = new ConcurrentDictionary<Type, Func<object>>(); | |
| public virtual T Get | |
| { |
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.Dynamic; | |
| using System.Linq; | |
| using System.Reflection; | |
| using Raven.Client; | |
| using Raven.Client.Document; | |
| using Raven.Json.Linq; | |
| namespace ChainedAPISample |
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.Linq; | |
| using Raven.Abstractions.Indexing; | |
| using Raven.Client; | |
| using Raven.Client.Document; | |
| using Raven.Client.Indexes; | |
| using Raven.Client.Linq; | |
| namespace RavenDBProjectionTest |
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
| [Serializable] | |
| public class Blobbed<T> : IUserType where T : class | |
| { | |
| public new bool Equals(object x, object y) | |
| { | |
| if (x == null && y == null) | |
| return true; | |
| if (x == null || y == null) | |
| return false; |
NewerOlder