| area | resourceName | routeTemplate |
|---|---|---|
| acs | WRAPv0.9 | {resource} |
| AdminEngagement | Organization | _apis/{area}/{resource}/{action} |
| advSec | Enablement | _apis/{area}/{resource} |
| advSec | billableCommitters | {project}/_apis/{area}/{resource} |
| advSec | EstimateProject | {project}/_apis/{area}/Estimate |
| advSec | EstimateRepo | {project}/_apis/{area}/repositories/{repositoryId}/Estimate |
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
| // a class to wrapp xunits ITestOutputHelper as a TextWriter | |
| public class TestOutputHelperWriter(ITestOutputHelper helper) : TextWriter | |
| { | |
| public override Encoding Encoding { get; } = Encoding.Unicode; | |
| public override void WriteLine(string? value) | |
| { | |
| helper.WriteLine(value); | |
| } | |
| public override void WriteLine([StringSyntax("CompositeFormat")] string format, params object?[] args) | |
| { |
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
| $nics = (get-netadapter -Physical | where Status -EQ -Value 'Up') | |
| #(get-netadapter -Physical | ? Status -EQ -Value 'Up') | % { Write-Host $_.InterfaceDescription; }; | |
| #(get-netadapter -Physical | ? Status -EQ -Value 'Up') | % { Set-DNSClientServerAddress –interfaceIndex $_.ifIndex –ServerAddresses ("8.8.8.8", "8.8.4.4"); }; | |
| foreach($nic in $nics) | |
| { | |
| Write-Host "Setting $($nic.InterfaceDescription) DNS to 8.8.8.8, 8.8.4.4"; | |
| Set-DNSClientServerAddress –interfaceIndex $nic.ifIndex –ServerAddresses ("8.8.8.8", "8.8.4.4"); | |
| } |
| area | id | maxVersion | minVersion | releasedVersion | resourceName | resourceVersion | routeTemplate |
|---|---|---|---|---|---|---|---|
| acs | 8b1e4204-96e8-41c2-81ca-5cad5cd5ef25 | 7.20 | 0.00 | 7.1 | WRAPv0.9 | 1 | {resource} |
| AdminEngagement | bec0e728-8f67-4ee3-81e8-9f475d184e45 | 5.10 | 1.00 | 0.0 | Organization | 1 | _apis/{area}/{resource}/{action} |
| advSec | 3aa66234-9ab4-4ff9-9d5a-09b7ac9133b1 | 7.20 | 7.10 | 0.0 | Enablement | 1 | _apis/{area}/{resource} |
| advSec | f890a08b-1e12-4f1a-be3f-31a8b361b24e | 7.20 | 7.10 | 0.0 | billableCommitters | 1 | {project}/_apis/{area}/{resource} |
| advSec | bffb42ee-3cb6-450c-9d11-70797507c7d7 | 7.20 | 7.20 | 0.0 | EstimateProject | 1 | {project}/_apis/{area}/Estimate |
| advSec | 99e4aa9e-93dd-4f07-a70b-928b37aedde0 | 7.20 | 7.20 | 0.0 | EstimateRepo | 1 | {project}/_apis/{area}/repositories/{repositoryId}/Estimate |
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 static class Extensions | |
| { | |
| /// <summary> | |
| /// Try to get the single value from the collection | |
| /// </summary> | |
| /// <typeparam name="T">The type of elements in the collection</typeparam> | |
| /// <param name="source">the source collection</param> | |
| /// <param name="predicate">The predicate to test elements</param> | |
| /// <param name="item">The item found, or null</param> | |
| /// <returns>true if found, false otherwise</returns> |
public static class X { /// Easy with structs</remarks public static bool TryGetValue(this T? nullable, ref T value) where T : struct { if (nullable.HasValue) { value = nullable.Value; return true; }
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> | |
| /// Some extensions for <seealso cref="ImmutableList{T}"/> | |
| /// </summary> | |
| public static class ImmutableListExtensions | |
| { | |
| /// <summary> | |
| /// Replace <paramref name="value"/> in <paramref name="source"/> based on object equality | |
| /// </summary> | |
| /// <remarks> | |
| /// This method depends on the <typeparamref name="T"/> implementing Object.Equals, if it does not, |
The structure of IPv4 addresses lies at the core of the internet's architecture
- does calling out IPv4 mean many of the details in this chapter apply to IPv6?
- "Locator" in what sense?
[Just as a street address indicates a specific location, an IP address designates a particular device on a network. The subnet mask, analogous to the zip code, guides data packets to their intended destination.](https://cwoodruff.github.io/book-network-programming-csharp/chapter02/#:~:text=just%20as%20
NewerOlder