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.Net.Http; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| /// <summary> | |
| /// </summary> | |
| public class MessageLoggingHandler : DelegatingHandler | |
| { |
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
| param( | |
| [Parameter(Mandatory=$true)] | |
| [string]$Thumbprint | |
| ) | |
| $stores = @( | |
| "Cert:\LocalMachine\My", | |
| "Cert:\LocalMachine\Root", | |
| "Cert:\LocalMachine\AuthRoot", | |
| "Cert:\LocalMachine\TrustedPublisher", |
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 sealed class ElectricPotentialConverter : QuantityConverter<ElectricPotential, ElectricPotentialUnit> | |
| { | |
| protected override ElectricPotential FromValueAndUnit(double value, ElectricPotentialUnit unit) | |
| { | |
| return ElectricPotential.From(value, unit); | |
| } | |
| protected override ElectricPotentialUnit GetUnit(ElectricPotential quantity) | |
| { | |
| return quantity.Unit; |