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
| { | |
| "glossary": { | |
| "title": "See Jared, I'm from Gist!", | |
| "GlossDiv": { | |
| "title": "S", | |
| "GlossList": { | |
| "GlossEntry": { | |
| "ID": "SGML", | |
| "SortAs": "SGML", | |
| "GlossTerm": "Standard Generalized Markup Language", |
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 static class NinjectWebCommon | |
| { | |
| private static void RegisterServices(IKernel kernel) | |
| { | |
| kernel.Bind<INotificationService>().To<NotificationService>().InRequestScope(); | |
| //I shouldn't need this to be injected for the UsersController to queue jobs. | |
| kernel.Bind<IEmailService>().ToProvider<EmailServiceProvider>(); | |
| } | |
| } |
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
| App.errorLogger = (function (window, $, app) { | |
| var settings = { | |
| logErrors: false, | |
| logUrl: '/error/stacklog' | |
| }, | |
| traverse = function (object) { | |
| var name, | |
| method; |
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.Web; | |
| using System.Web.Caching; | |
| namespace App | |
| { | |
| public class CacheUtility | |
| { | |
| /// <summary> | |
| /// Gets an object from the cache and calls a delagate if it doesn't exist. |