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
| /// <summary> | |
| /// Console Color Helper class that provides coloring to individual commands | |
| /// ref: https://weblog.west-wind.com/posts/2020/Jul/10/A-NET-Console-Color-Helper | |
| /// </summary> | |
| public static class ColorConsole | |
| { | |
| /// <summary> | |
| /// WriteLine with color | |
| /// </summary> | |
| /// <param name="text"></param> |
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 Microsoft.Extensions.Logging; | |
| using Newtonsoft.Json; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net.Http; | |
| using System.Threading.Tasks; | |
| namespace MyWebApiProxy.Examples | |
| { |
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.Text.RegularExpressions; | |
| namespace HttpModules | |
| { | |
| /// <summary> | |
| /// This module handles complications from our load balancer configuration not properly passing the client's true IP | |
| /// address to our code via the REMOTE_ADDR and REMOTE_HOST variables. We tried to use URL Rewrite to compensate for | |
| /// this, but it does not run when default documents are being accessed (a longstanding bug). |