Name | Description | Exceptions |
---|---|---|
Avoid async void | Prefer async Task methods over async void methods | Event handlers |
Async all the way | Don't mix blocking and async code | Console main method |
Configure context | Use ConfigureAwait(false) when you can |
Methods that require context |
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
# EXAMPLE OUTPUT | |
# ============== | |
# opening device 0xddcc | |
# connected | |
# tester present ... | |
# read data by id: boot software id ... | |
# 39990-TVA-A110 | |
# read data by id: application software id ... | |
# 39990-TVA-A150 | |
# read data by id: application data id ... |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Security.Cryptography; | |
using Newtonsoft.Json; | |
namespace ConsoleApp6 | |
{ | |
public class Program |