BenchmarkDotNet=v0.10.1, OS=Windows
Processor=?, ProcessorCount=8
Frequency=2435779 Hz, Resolution=410.5463 ns, Timer=TSC
dotnet cli version=1.0.0-preview2-003131
[Host] : .NET Core 4.6.24628.01, 64bit RyuJIT
DefaultJob : .NET Core 4.6.24628.01, 64bit RyuJIT
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
| [RoutePrefix("api/my")] | |
| public class MyController : ApiController | |
| { | |
| [AllowAnonymous] | |
| [Route("anon")] | |
| public IHttpActionResult Get() => Ok(User); | |
| [Route("auth")] | |
| public IHttpActionResult GetAuth() => Ok(User); | |
| } |
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.Text; | |
| namespace GIS | |
| { | |
| public class Utility | |
| { | |
| /// <summary> |
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
| #----------------------------- Global Properties ----------------------------# | |
| /outputDir:bin/$(Platform) | |
| /intermediateDir:obj/$(Platform) | |
| /platform:DesktopGL | |
| /config: | |
| /profile:Reach | |
| /compress:False |
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 Microsoft.Xna.Framework; | |
| using Microsoft.Xna.Framework.Graphics; | |
| using Microsoft.Xna.Framework.Input; | |
| namespace ConsoleIdea | |
| { | |
| /// <summary> |
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
| private class LogException : Exception | |
| { | |
| private readonly object[] _arguments; | |
| private readonly Level _level; | |
| private readonly string _message; | |
| private readonly Type _type; | |
| private LogException(Type type, Level level, string message, object[] arguments) | |
| { | |
| _arguments = arguments; |
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
| [Route("api/applications")] | |
| public class ApplicationsController : Controller | |
| { | |
| private IApplicationService applicationService; | |
| public ApplicationsController(IApplicationService applicationService) | |
| { | |
| this.applicationService = applicationService; | |
| } | |
| [HttpGet("{key}")] | |
| public async Task<IActionResult> Get(string key) |
BenchmarkDotNet=v0.10.1, OS=Windows
Processor=?, ProcessorCount=8
Frequency=2435775 Hz, Resolution=410.5470 ns, Timer=TSC
dotnet cli version=1.0.0-preview2-003131
[Host] : .NET Core 4.6.24628.01, 64bit RyuJIT
DefaultJob : .NET Core 4.6.24628.01, 64bit RyuJITMethod | Mean | StdErr | StdDev | Gen 0 | Allocated |
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
| (function (total) { | |
| times = [] | |
| function time(name, fn) { | |
| var t0 = performance.now(); | |
| fn(); | |
| var t1 = performance.now(); | |
| times.push(name + " took " + (t1 - t0)); | |
| } |