This file contains 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 BitstampApiException : Exception | |
{ | |
// https://www.bitstamp.net/api/#section/Response-codes | |
public BitstampApiException(string method, string message, string code) | |
: base("BitstampClient@" + method + " - " + message + " - " + code) | |
{ | |
Code = code; | |
} | |
public string Code { get; set; } |
This file contains 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 RateLimitMiddleware | |
{ | |
private readonly RequestDelegate next; | |
private readonly IDistributedCache distributedCache; | |
private readonly IHostingEnvironment hostingEnvironment; | |
public RateLimitMiddleware(RequestDelegate next, IDistributedCache distributedCache, IHostingEnvironment hostingEnvironment) | |
{ | |
this.next = next; |