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 crap | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Data; | |
| using System.Data.SqlClient; | |
| public class PartialAppPlayground |
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 Result<T> | |
| { | |
| public bool IsSuccess { get; private set; } | |
| public string ErrorMessage { get; private set; } | |
| public IEnumerable<T> Results { get; private set; } | |
| private Result() | |
| { } | |
| public static Result<T> Success(IEnumerable<T> results) |
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
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var server = WebApp.Start("http://localhost:1002/", (app) => | |
| { | |
| var config = new HttpConfiguration(); | |
| config.MapHttpAttributeRoutes(); | |
| config.Services.Replace(typeof(IExceptionHandler), new RethrowExceptionHandler()); |
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 enum Cacheability | |
| { | |
| NoCache, | |
| Private, | |
| Public, | |
| } |
OlderNewer