tag:blogger.com,1999:blog-61870757067695611262024-03-19T01:41:36.865-07:00Mission-IT : Free Online Software Training ProgramC# | MVC | DotnetCore | Web API | Blazor | HTML | BootStrap | JavaScript | JQuery | EF | Angular | SQL | AzureHamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.comBlogger387125tag:blogger.com,1999:blog-6187075706769561126.post-72217578408490669002023-06-13T06:46:00.002-07:002023-09-18T23:54:40.678-07:00Upload file in Blob Storage in C#<p> string connectionString = "DefaultEndpointsProtocol=https;AccountName=abcStorage;AccountKey=/ABCDEFGHIJKKlaDfOG6ix+Ek+24J7cBi==;EndpointSuffix=core.windows.net";</p><span class="ui-provider gs b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr">
//"DefaultEndpointsProtocol=https;AccountName=your_storage_account;AccountKey=your_storage_account_key;EndpointSuffix=core.windows.net";<br />
string containerName = "mycontainer";<br />
string filePath = @"C:\MyCustomDoc\123.csv";<br />
string blobName = @"FileData\123.csv";<br />
UploadFile(connectionString, containerName, filePath, blobName);<br />
Console.WriteLine("file uploaded successfully.");</span><div><span class="ui-provider gs b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"><br /></span></div><div><span class="ui-provider gs b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr">---------------------------------------</span></div><div><span class="ui-provider gs b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"><span class="ui-provider gs b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"><p>static void UploadFile(string connectionString, string containerName, string filePath, string blobName)<br />
{<br />
try<br />
{<br />
BlobServiceClient blobServiceClient = new BlobServiceClient(connectionString);<br />
BlobContainerClient containerClient = blobServiceClient.GetBlobContainerClient(containerName);</p><p> </p><p> using (FileStream fileStream = File.OpenRead(filePath))<br />
{<br />
containerClient.UploadBlob(blobName, fileStream);<br />
}<br />
}<br />
catch (Exception ex)<br />
{<br />
Console.WriteLine(ex.ToString());<br />
throw ex;<br />
}<br /><br />
}</p></span></span></div>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-82059877523231688332023-06-13T06:36:00.001-07:002023-06-13T06:36:11.445-07:00Get Azure Key Valut data in Azure Function<p> using Azure.Security.KeyVault.Secrets;</p><span class="ui-provider gs b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"><p>
using Azure.Identity;<br />
using Azure;<br />
using System.Threading;<br />
using System.Linq;</p><p> // Ref: https://www.serverlessnotes.com/docs/no-code-integration-of-azure-key-vault-with-azure-functions</p><p>namespace App1<br />
{<br />
public class GetKeyVault<br />
{<br />
[FunctionName("GetKeyVault")]<br />
public async Task<IActionResult> Run(<br />
[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequest req,<br />
ILogger log)<br />
{<br />
log.LogInformation("Function execution started.");</p><p> // Get KV Url from AppConfig</p><p> var KvUrl = Environment.GetEnvironmentVariable("KvUrl");<br />
log.LogInformation($"Kv Url : {KvUrl}");</p><p> </p><p> string allowedDomains = Environment.GetEnvironmentVariable("allowedDomains");<br />
log.LogInformation($"allowedDomains : {allowedDomains}");</p><p> </p><p> if (!string.IsNullOrWhiteSpace(allowedDomains))<br />
{<br />
string[] allowedDomainList = allowedDomains.Split(',');</p><p> </p><p> // Check if the domain is allowed<br />
var clientOrigin = GetOroginFromRequestHeaders(req);<br />
if (!string.IsNullOrWhiteSpace(clientOrigin) && allowedDomainList.Contains(clientOrigin))<br />
{<br />
log.LogInformation($"clientOrigin : {clientOrigin}");<br />
var resultAll = await GetAllSecretAsync(KvUrl);<br />
List<KeyVaultResponse> kvList = KvResponseMapper(resultAll);</p><p> </p><p> return new OkObjectResult(kvList);<br />
}</p><p> </p><p> else<br />
{<br />
log.LogInformation($"clientOrigin : {clientOrigin}");<br />
return new UnauthorizedResult();<br />
}<br />
}</p><p> </p><p> else<br />
{<br />
log.LogInformation($"There is no allowedDomains set in your functionApp.");<br />
return new BadRequestResult();<br />
}<br />
}</p><p> </p><p> </p><p> #region Private Section</p><p> </p><p> /// <summary><br />
/// Get All keyVault Secret in single call<br />
/// </summary><br />
/// <param name="kvUrl"></param><br />
/// <param name="cancellationToken"></param><br />
/// <returns></returns><br />
private async Task<IList<KeyVaultSecret>> GetAllSecretAsync(string kvUrl, CancellationToken cancellationToken = default)<br />
{<br />
var _client = new SecretClient(new Uri(kvUrl), new DefaultAzureCredential());<br />
AsyncPageable<SecretProperties> secretProperties = _client.GetPropertiesOfSecretsAsync(cancellationToken);<br />
var secrets = new List<KeyVaultSecret>();</p><p> </p><p> await foreach (var secretProperty in secretProperties)<br />
{<br />
var response = await _client.GetSecretAsync(secretProperty.Name, cancellationToken: cancellationToken).ConfigureAwait(false);<br />
secrets.Add(response.Value);<br />
}<br />
return secrets;<br />
}</p><p> </p><p> /// <summary><br />
/// Key Vault Response Mapper<br />
/// </summary><br />
/// <param name="resultAll"></param><br />
/// <returns></returns><br />
private List<KeyVaultResponse> KvResponseMapper(IList<KeyVaultSecret> resultAll)<br />
{<br />
var kvList = new List<KeyVaultResponse>();</p><p> </p><p> foreach (var kv in resultAll)<br />
{<br />
KeyVaultResponse res = new()<br />
{<br />
Name = kv.Name,<br />
Value = kv.Value<br />
};</p><p> </p><p> kvList.Add(res);<br />
}</p><p> </p><p> return kvList;<br />
}</p><p> </p><p><br />
/// <summary><br />
/// Get Client Origin that requested the function<br />
/// </summary><br />
/// <param name="request"></param><br />
/// <returns></returns><br />
private static string GetOroginFromRequestHeaders(HttpRequest request)<br />
{<br />
var clientIp = request.Headers["Origin"].ToString();<br />
if (!string.IsNullOrEmpty(clientIp))<br />
{<br />
return clientIp;<br />
}</p><p> </p><p> return "";<br />
}</p><p> </p><p> #endregion<br />
}<br />
}</p></span>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-11060637003441739902021-06-02T06:20:00.001-07:002021-06-02T06:20:04.193-07:00First Char Of Each Word ToUpper in C#<p> public static string FirstCharOfEachWordToUpper(string textInfo, string seprator)</p><p> {</p><p> var spString = textInfo.Split(" ");</p><p> var s1 = seprator == " " ? "_" : seprator == "_" ? " " : seprator;</p><p> var result = "";</p><p> foreach (var item in spString)</p><p> {</p><p> string firstLetterOfString = item.Substring(0, 1).ToUpper() + item.Substring(1);</p><p> if (item != spString[spString.Length - 1])</p><p> {</p><p> result += firstLetterOfString + s1;</p><p> }</p><p> else</p><p> {</p><p> result += firstLetterOfString;</p><p> }</p><p> }</p><p> return result;</p><p> }</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-9669739141806385762021-06-02T03:32:00.003-07:002021-06-02T03:36:12.021-07:00C# coding interview Link<p> https://ankitsharmablogs.com/csharp-coding-questions-for-technical-interviews/</p><p><br /></p><p>In this link you will get following list of interview questions code</p><p>Q.1: How to reverse a string?</p><p>Q.2: How to find if the given string is a palindrome or not?</p><p>Q.3: How to reverse the order of words in a given string?</p><p>Q.4: How to reverse each word in a given string?</p><p>Q.5: How to count the occurrence of each character in a string?</p><p>Q.6: How to remove duplicate characters from a string?</p><p>Q.7: How to find all possible substring of a given string?</p><p>Q.8: How to perform Left circular rotation of an array?</p><p>Q.9: How to perform Right circular rotation of an array?</p><p>Q.10: How to find if a positive integer is a prime number or not?</p><p>Q.11: How to find the sum of digits of a positive integer?</p><p>Q.12: How to find second largest integer in an array using only one loop?</p><p>Q.13: How to find third largest integer in an array using only one loop?</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-60898840253028404052021-06-02T03:20:00.000-07:002021-06-02T03:20:44.186-07:00Find Most Occurance Of Char In String in C#<p> public static char? FindMostOccuranceOfCharInString(string value)</p><p> {</p><p> char? maxOccuranceChar = null;</p><p> int maxOccuranceValue = 0;</p><p> if (string.IsNullOrWhiteSpace(value))</p><p> return null;</p><p> char[] arr = value.ToLower().Trim().ToCharArray();</p><p> Dictionary<char, int> _dic = new Dictionary<char, int>();</p><p> for (int i = 0; i < arr.Length; i++)</p><p> {</p><p> if (arr[i] != ' ')</p><p> {</p><p> if (!_dic.ContainsKey(arr[i]))</p><p> { _dic.Add(arr[i], 1);}</p><p> else</p><p> { _dic[arr[i]]++;</p><p> }}}</p><p><br /></p><p> foreach (KeyValuePair<char, int> item in _dic)</p><p> {</p><p> if (item.Value > maxOccuranceValue)</p><p> {</p><p> maxOccuranceChar = item.Key;</p><p> maxOccuranceValue = item.Value;</p><p> } }</p><p><br /></p><p> return maxOccuranceChar;</p><p> }</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com1tag:blogger.com,1999:blog-6187075706769561126.post-20277018785054857232021-06-02T01:04:00.002-07:002021-06-02T01:04:12.561-07:00Check given string is palindrome or not<p> public bool IsPalindrome(string value) </p><p> { bool result = true; </p><p> if (string.IsNullOrEmpty(value)) </p><p> return false; </p><p> _title = value.ToLower().Trim(); </p><p> var min = 0; </p><p> var max = _title.Length - 1; </p><p> while (max >= 0) </p><p> { if (value[min] == value[max]) </p><p> { min++; max--; } </p><p> else { return false; } } </p><p> </p><p> return result; </p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-92108856375644849212021-06-02T00:58:00.002-07:002021-06-02T00:58:20.807-07:00Get Reverse string in C#<p> public string GetReverseString(string value) </p><p> { string result = ""; </p><p> if (string.IsNullOrEmpty(value)) </p><p> return ""; </p><p> for (int i = value.Length - 1; i >= 0; i--) </p><p> { result += value[i]; </p><p> } return result; </p><p> } </p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-74536353034478130872021-06-02T00:44:00.003-07:002021-06-02T00:46:54.314-07:00FindDuplicateChar or unique Char in C#<p> public static StringBuilder FindDuplicateChar(string value)</p><p> { StringBuilder result = new StringBuilder();</p><p> StringBuilder duplicateChar = new StringBuilder();</p><p> foreach (var item in value)</p><p> { if (result.ToString().IndexOf(item.ToString().ToLower()) == -1)</p><p> { result.Append(item);}</p><p> else</p><p> { duplicateChar.Append(item);}</p><p> }</p><p> // return duplicateChar; // Use for Duplicate</p><p> // return result ; // Use for unique</p><p> }</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-20299730089250847472021-06-01T08:32:00.005-07:002021-06-01T08:32:29.602-07:00Find Majority Element in C#<p> public class FindMajorityElementClass</p><p> static void findMajority(int[] arr)</p><p> { int maxCount = 0; int index = 0;</p><p> int n = arr.Length;</p><p> for (int i = 0; i < n; i++) {</p><p> int count = 0;</p><p> for (int j = 0; j < n; j++) {</p><p> if (arr[i] == arr[j])</p><p> count++;</p><p> }</p><p> if (count > maxCount) {</p><p> maxCount = count;</p><p> index = i;</p><p> } }</p><p> </p><p> if (maxCount > n / 2)</p><p> Console.WriteLine(arr[index]);</p><p> else</p><p> Console.WriteLine("No Majority Element");</p><p> }</p><p> static public void Main()</p><p> { int[] arr = { 1, 1, 2, 1, 3, 5, 1 };</p><p> findMajority(arr); }}</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-33912660149885174222021-06-01T08:11:00.002-07:002021-06-01T08:11:24.186-07:00Find second largest number in array in C#<p> int[] myArray = new int[] { 0, 1, 2, 3, 13, 8, 5 };</p><p>int largest = int.MinValue;</p><p>int second = int.MinValue;</p><p>foreach (int i in myArray)</p><p>{</p><p> if (i > largest)</p><p> {</p><p> second = largest;</p><p> largest = i;</p><p> }</p><p>else if (i > second)</p><p> second = i;</p><p>}</p><p><br /></p><p>System.Console.WriteLine(second);</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com1tag:blogger.com,1999:blog-6187075706769561126.post-14634727863866644712021-06-01T08:08:00.001-07:002021-06-01T08:08:07.885-07:00Find Second Smallest number in C#<p> private static void FindSecondSmallest()</p><p> {</p><p> int[] elements = { 2, 5, 8, -5, -4, 0, 2, 10, 3, -3 };</p><p> int smallest = int.MaxValue;</p><p> int secondSmallest = int.MaxValue;</p><p> for (int i = 0; i < elements.Length; i++)</p><p> {</p><p> if (elements[i] == smallest)</p><p> {</p><p> secondSmallest = smallest;</p><p> }</p><p> else if (elements[i] < smallest)</p><p> {</p><p> secondSmallest = smallest;</p><p> smallest = elements[i];</p><p> }</p><p> else if (elements[i] < secondSmallest)</p><p> {</p><p> secondSmallest = elements[i];</p><p> }</p><p><br /></p><p> }</p><p> Console.WriteLine(secondSmallest);</p><p> }</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-53536868626779719142021-06-01T06:14:00.001-07:002021-06-01T06:14:06.917-07:00Print duplicate item from array<p> //Initialize array </p><p> int[] arr = new int[] {1,5,7,3,4, 9, 11, 15, 17, 1, 2, 3, 4, 2, 7, 8, 8, 3 };</p><p><br /></p><p> Console.WriteLine("Duplicate elements in given array: ");</p><p> //Searches for duplicate element </p><p> for (int i = 0; i < arr.Length; i++)</p><p> {</p><p> for (int j = i + 1; j < arr.Length; j++)</p><p> {</p><p> if (arr[i] == arr[j])</p><p> {</p><p> Console.WriteLine("Array of i "+ arr[i]);</p><p> Console.WriteLine("Array of J "+arr[j]);</p><p> }</p><p> }</p><p> }</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-13339128945314761672021-06-01T05:28:00.004-07:002021-06-01T05:28:48.606-07:00Screen Capture in C#<p>using System;</p><p>using System.Drawing;</p><p>using System.Drawing.Imaging;</p><p>using System.Threading;</p><p><br /></p><p> </p><p>int i = 0;</p><p> do</p><p> {</p><p> i++;</p><p> Bitmap bitmap = new Bitmap(1920, 1080);</p><p> Graphics graphics = Graphics.FromImage(bitmap as Image);</p><p> graphics.CopyFromScreen(0, 0, 0, 0, bitmap.Size);</p><p> Random rnd = new Random();</p><p> int rndNumber = rnd.Next(1, 10000);</p><p> //var n1 = i + rndNumber;</p><p> var ImgName = $"{i}_{rndNumber}_test";</p><p> bitmap.Save($"E:\\FreeSoftwareTraining\\ScreenImg\\{ImgName}.jpeg", ImageFormat.Jpeg);</p><p> Thread.Sleep(30000);</p><p> }</p><p> while (true);</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-69454137957349755062021-05-27T13:02:00.003-07:002021-05-27T13:02:44.390-07:00Basic Generic class and method<p> public class TestList<T></p><p>{</p><p> public void Add(T input) { }</p><p>}</p><p>class TestGList</p><p>{</p><p> private class Example1 { }</p><p> static void Main()</p><p> {</p><p> // Declare a list of type int.</p><p> TestList<int> list1 = new TestList<int>();</p><p> list1.Add(1);</p><p><br /></p><p> // Declare a list of type string.</p><p> TestList<string> list2 = new TestList<string>();</p><p> list2.Add("");</p><p><br /></p><p> // Declare a list of type Example1.</p><p> TestList<Example1> list3 = new TestList<Example1>();</p><p> list3.Add(new Example1());</p><p> }</p><p>}</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-37860025642335812732021-05-27T12:46:00.003-07:002021-05-27T12:53:03.668-07:00Generic Method in C#<p> public class GClass {</p><p> static void Swap2Values<T>(T lhs, T rhs) {</p><p> T temp; temp = lhs; lhs = rhs; rhs = temp;</p><p> }</p><p> static void Main(string[] args) {</p><p> int a, b; char c, d; a = 5; b = 10; c = 'h'; d = 'k';</p><p> // Before swap display values :</p><p> Console.WriteLine("Before Swap:");</p><p> Console.WriteLine("a = {0}, b = {1}", a, b);</p><p> Console.WriteLine("-------:");</p><p> Console.WriteLine("c = {0}, d = {1}", c, d);</p><p> //call generic Method</p><p> Swap<int>(a, b);</p><p> Swap<char>(c, d);</p><p> //After swap:</p><p> Console.WriteLine("After swap:");</p><p> Console.WriteLine("a = {0}, b = {1}", a, b);</p><p> Console.WriteLine("--------");</p><p> Console.WriteLine("c = {0}, d = {1}", c, d);</p><p>}</p><p>}</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-11061046646216438492021-05-18T11:55:00.002-07:002021-05-18T11:55:34.628-07:00How to create the storage account in azure<p> az storage account create \</p><p> --kind StorageV2 \</p><p> --resource-group r-g-name-test321 \</p><p> --location centralus \</p><p> --name satest1</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-73112730941661420452021-03-30T12:13:00.005-07:002021-04-04T02:32:34.455-07:00HTML Planning session<p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg77B7HAmSVJczQxWrs_wK7ukJfF5SOpeqRL-d5i8edGfWYs2w0_AivWQQ0FrZARdlTAZ8PMpaaMF2Mqvj1sILaMn8n3B2c5wGkzLnE6vJIN6MhL51knF2kAfjW5LQw72Mrcj4r5ytPH8M/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="121" data-original-width="456" height="220" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg77B7HAmSVJczQxWrs_wK7ukJfF5SOpeqRL-d5i8edGfWYs2w0_AivWQQ0FrZARdlTAZ8PMpaaMF2Mqvj1sILaMn8n3B2c5wGkzLnE6vJIN6MhL51knF2kAfjW5LQw72Mrcj4r5ytPH8M/w509-h220/image.png" width="509" /></a></div><br /><p></p><div><div>Time: 9PM-10PM IST</div><div><br /></div><div># Organized by:</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijug42Hxug-Y_s840WeJwrh8-LCwL0nTjlQmouRlV8ORhncMld0Eik2vZOylasm0fO0ihUkXv4MKex44ojvr7fvul3UyYl-qmwJay_XOaJ4vVTeAV8mGJe3f7v3kriDZ0DvmWCZKclXuQ/s1237/OrganizedBy.PNG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="288" data-original-width="1237" height="151" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijug42Hxug-Y_s840WeJwrh8-LCwL0nTjlQmouRlV8ORhncMld0Eik2vZOylasm0fO0ihUkXv4MKex44ojvr7fvul3UyYl-qmwJay_XOaJ4vVTeAV8mGJe3f7v3kriDZ0DvmWCZKclXuQ/w512-h151/OrganizedBy.PNG" width="512" /></a></div><div><div class="separator" style="clear: both; text-align: center;"><br /></div></div></div><div><br /></div><div> <a href="https://www.linkedin.com/in/hamid-khan-4993a456/" target="_blank">https://www.linkedin.com/in/hamid-khan-4993a456/</a></div><div><br /></div><div> <a href="https://www.c-sharpcorner.com/members/hamid-khan9" target="_blank">https://www.c-sharpcorner.com/members/hamid-khan9</a></div><div><br /></div><div><br /></div><div><b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;"><span style="color: #2b00fe;"><span style="background-color: white;">Note: Interested people can put your </span><span style="background-color: #fcff01;">LinkedIn Profile</span><span style="background-color: white;"> in comment section</span></span></b></div>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com5tag:blogger.com,1999:blog-6187075706769561126.post-81121914582402195362021-03-29T05:18:00.000-07:002021-03-29T05:18:02.594-07:00 Basic Sql query part 1<p> Basic Sql query part 1</p><p><br /></p><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="356" src="https://www.youtube.com/embed/BayHKqLdT8s" width="578" youtube-src-id="BayHKqLdT8s"></iframe></div><br /><p><br /></p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-89775266988128749862021-03-28T06:47:00.007-07:002021-04-03T02:29:40.219-07:00 Free Software Training<p>I am running free training for fresher or final years student, those are belongs to IT courses.</p><p>Objective from this training is to fill the skill gap between College to Industry</p><p>In this training we will cover</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY6YvuJP3GLOTg6uvSOXRDUmyWowSCTXj5Dl1fOJqE2IiOT1_ynOpKVET1vojw9yF8IAOAjnUAZ1SJvd-UI-ory71HupxmVL2k8dZFWqDDallpgaENGlgn4ed5MslbnpNbzfHdDDJIeQE/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="461" data-original-width="710" height="260" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY6YvuJP3GLOTg6uvSOXRDUmyWowSCTXj5Dl1fOJqE2IiOT1_ynOpKVET1vojw9yF8IAOAjnUAZ1SJvd-UI-ory71HupxmVL2k8dZFWqDDallpgaENGlgn4ed5MslbnpNbzfHdDDJIeQE/w400-h260/image.png" width="400" /></a></div><p></p><div><h2 style="text-align: left;"><span style="color: #2b00fe;"># Other consulting for career advice in IT Industry & Placement</span></h2><p># Prepare Interview Question & Article:</p><p><a href="https://dotnetwithhamid.blogspot.com/2018/11/dotnet-interview-question-part-2.html" target="_blank">https://dotnetwithhamid.blogspot.com/2018/11/dotnet-interview-question-part-2.html</a><br /></p><p><a href="https://www.c-sharpcorner.com/members/hamid-khan9" target="_blank">https://www.c-sharpcorner.com/members/hamid-khan9</a></p><p>Note: We will be available in every friday & saturday 10PM-12PM IST</p><p># Organized by:</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSZ04-1PG6Qcm7lOXrZhKujcYcbWW2YlGBKnOxhWUZ-XvIgODaj9FHszS1rZhjaYKiiB7YNENz86iA0UvlL3fxJB0HgS0Xd44LoDpst1owUxnhCGpU7vxFAftfrXrO46fX5DlikVQQa3Q/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="166" data-original-width="710" height="94" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSZ04-1PG6Qcm7lOXrZhKujcYcbWW2YlGBKnOxhWUZ-XvIgODaj9FHszS1rZhjaYKiiB7YNENz86iA0UvlL3fxJB0HgS0Xd44LoDpst1owUxnhCGpU7vxFAftfrXrO46fX5DlikVQQa3Q/w400-h94/image.png" width="400" /></a></div><p></p><p><a href="https://www.linkedin.com/in/hamid-khan-4993a456/">https://www.linkedin.com/in/hamid-khan-4993a456/</a><br /></p><p>Current Session : HTML</p><p>Upcoming Session : Bootstrap</p><p>Completed Session: SQL</p><p><b><span style="color: #2b00fe;">Note: Interested people can put your <i><span style="background-color: #fcff01; font-size: medium;">Linked Profile</span></i> in comment section</span></b></p><p><br /></p><p><br /></p></div>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com34tag:blogger.com,1999:blog-6187075706769561126.post-63713243077858823412021-03-28T06:37:00.005-07:002021-03-28T06:38:04.996-07:00How to start online exam test project<p></p><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="353" src="https://www.youtube.com/embed/F16kqaSBzjU" width="531" youtube-src-id="F16kqaSBzjU"></iframe></div><br /> <p></p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-71316715334226791722021-03-28T06:29:00.002-07:002021-03-28T06:29:36.657-07:00 SQL Join Concept<p><br /></p><p><br /></p><table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"><tbody><tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSb7gFf6tn6p78A9RTbiU0aurJe3xwTYL2k-GhrFCZw1RDe2CIa5u7fSEck4FS4Yd3eLxsWJJI_Ms3MGr8_PdqEtuT3ZrKsBTrgoCf5_63c7fCnRp7U4isxg0dKYEFQ3UfT2kNweqNkOM/s903/sqlJoinM1.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="903" data-original-width="860" height="462" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSb7gFf6tn6p78A9RTbiU0aurJe3xwTYL2k-GhrFCZw1RDe2CIa5u7fSEck4FS4Yd3eLxsWJJI_Ms3MGr8_PdqEtuT3ZrKsBTrgoCf5_63c7fCnRp7U4isxg0dKYEFQ3UfT2kNweqNkOM/w559-h462/sqlJoinM1.PNG" width="559" /></a></td></tr><tr><td class="tr-caption" style="text-align: center;"></td></tr></tbody></table><br /><p><br /></p><p><br /></p><p><br /></p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-33344119992419502032020-11-06T06:59:00.001-08:002020-11-06T06:59:05.657-08:00get first char from each word in angular<p> var myStr1 = "hamid ali";</p><p>var matches = myStr1.match(/\b(\w)/g);</p><p>console.log(matches.join('')</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-8683199396739430652020-11-06T06:55:00.001-08:002020-11-06T06:55:12.091-08:00setValue vs patch value in angular<p> To set all FormGroup values use, setValue:</p><p><br /></p><p>this.myFormGroup.setValue({</p><p> name: 'h1', </p><p> designation: 'se'</p><p>});</p><p><br /></p><p><br /></p><p>this.myFormGroup.patchValue({</p><p> name: 'h1', </p><p> // designation: 'se' (can be omitted)</p><p>});</p>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-126066011669014032020-10-31T11:25:00.004-07:002020-11-06T11:19:41.407-08:00Learn Angular <li>https://code-maze.com/upload-files-dot-net-core-angular/</li><ol><li></li><li>https://stackoverflow.com/questions/58297628/how-to-connect-visual-studio-2019-to-tfs</li><li> https://www.c-sharpcorner.com/article/file-upload-and-download-in-angular-9/#ReadAndPostComment</li><li> https://stackblitz.com/edit/angular-material-table-export-excel-xlsx</li><li>https://stackoverflow.com/questions/57443246/how-can-we-print-and-download-mat-table-as-pdf</li><li> https://morioh.com/p/44aeb57cdf81</li><li>https://damienbod.com/2016/04/29/angular-2-localization-with-an-asp-net-core-mvc-service/</li><li>https://www.c-sharpcorner.com/blogs/global-exception-handling-in-asp-net-core-as-exception-filter</li><li>https://code-maze.com/authentication-aspnetcore-jwt-2/</li><li>https://jasonwatmore.com/post/2019/10/11/aspnet-core-3-jwt-authentication-tutorial-with-example-api</li><li>https://www.blexin.com/en-US/Article/Blog/Uploading-and-Downloading-files-with-Angular-and-AspNet-Core-22</li><li>https://stackblitz.com/edit/matdialog-sharing-data-demo?file=app%2Fapp.module.ts</li><li>https://blog.kevinchisholm.com/angular/child-parent-communication-output/</li></ol><div><br /></div><div> <b><span style="color: #04ff00;"> Form-array-patch</span></b></div><ol><li>https://stackblitz.com/edit/form-array-patch-qslxxb?file=app%2Fapp.component.ts</li><li>https://stackblitz.com/edit/angular-form-array-example-update-value-tybgeq?file=src%2Fapp%2Fapp.component.html</li></ol>Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com0tag:blogger.com,1999:blog-6187075706769561126.post-36574856023109630102020-05-27T05:35:00.002-07:002020-05-27T05:35:45.160-07:00Async Await Reference Implementation<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 24pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Issue # 1 - </span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">async method is called in a void method</span></h1>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">InCorrect Usage:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> public static async Task FooAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> // some async code here...</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> await Task.Delay(10000);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<b id="docs-internal-guid-280d67f5-7fff-b9b4-c2ad-cb4a30d2e474" style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> public void ThisWillNotWaitForAsyncCodeToComplete()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">try</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: -36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Console.WriteLine("Before : " + DateTime.Now.ToString());</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> FooAsync();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> Console.WriteLine("After : " + DateTime.Now.ToString());</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> catch (Exception ex)</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> //The below line will never be reached</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> Console.WriteLine(ex.Message);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Correct Usage:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public static async Task FooAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> await Task.Delay(10000);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> public async Task ThisWillNotWaitForAsyncCodeToCompleteAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> Console.WriteLine("Before : " + DateTime.Now.ToString());</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> await FooAsync();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> Console.WriteLine("After : " + DateTime.Now.ToString());</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<b style="font-weight: normal;"><br /></b><br />
<div dir="ltr" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 10pt 0pt 0pt 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Changes to be noted carefully:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">FooAsync</span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">() is called using await.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Method having async Task in the signature</span></div>
</li>
</ol>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Result:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Async / await chain is followed properly. </span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Parent thread will wait for the child thread to complete. In case of any database or event operations being performed, parent thread will wait for the completion before quitting.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">SEVERITY Level = FATAL</span></div>
</li>
</ol>
<h1 dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 24pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Issue # 2 - </span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">no </span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">“async”</span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> keyword used and </span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">“task”</span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> object is returned </span></h1>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">InCorrect Usage:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public static Task BarAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> // some async code here...</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> return Task.Delay(10000);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public void ThisWillNotWaitForAsyncCodeToComplete()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">try</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> Console.WriteLine("Before : " + DateTime.Now.ToString());</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> BarAsync();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> Console.WriteLine("After : " + DateTime.Now.ToString());</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> catch (Exception ex)</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> //The below line will never be reached</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> Console.WriteLine(ex.Message);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Correct Usage:</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public static async Task BarAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">await Task.Delay(10000);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public async Task ThisWillNotWaitForAsyncCodeToCompleteAsyncAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> Console.WriteLine("Before : " + DateTime.Now.ToString());</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">await BarAsync();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> Console.WriteLine("After : " + DateTime.Now.ToString());</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<b style="font-weight: normal;"><br /></b><br />
<div dir="ltr" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 10pt 0pt 0pt 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Changes to be noted carefully:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">FooAsync() is using async and not returning task.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">ThisWillNotWaitForAsyncCodeToCompleteAsync() is calling FooAsync() using await.</span></div>
</li>
</ol>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Result:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Async / await chain is followed properly. </span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Parent thread will wait for the child thread to complete. In case of any database or event operations being performed, the parent thread will wait for the completion before quitting.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">SEVERITY Level = FATAL</span></div>
</li>
</ol>
<h1 dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 24pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Issue # 3 - </span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Method is marked as “async Task” but no async method is called inside.</span></h1>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">InCorrect Usage:</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-left: 36pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Public void Foo()</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-left: 36pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{}</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-left: 36pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Public void Bar()</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-left: 36pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{}</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public async Task FakeAsyncMethod()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Foo();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 72pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Bar();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 72pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Return Task.CompletedTask;</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Correct Usage:</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-left: 72pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Public void Foo()</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-left: 72pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{}</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-left: 72pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Public void Bar()</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-left: 72pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{}</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public void FakeAsyncMethod()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Foo</span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 72pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Bar</span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<div dir="ltr" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 10pt 0pt 0pt 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Changes to be noted carefully:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Remove async task from the FakeAsyncMethod()</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Removed return task statement.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
</li>
</ol>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 10pt 0pt 0pt 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Result</span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Normally the sync method should be called as expected.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">SEVERITY level = Important</span></div>
</li>
</ol>
<b style="font-weight: normal;"><br /></b>
<h1 dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 24pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Issue # 4 - </span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">async has blocking call instead of using await</span></h1>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">InCorrect Usage : </span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> public static async Task FooAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> await Task.Delay(10000);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public void ThisWillNotWaitForAsyncCodeToCompleteAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> Console.WriteLine("Before : " + DateTime.Now.ToString());</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> FooAsync().Result;</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> Console.WriteLine("After : " + DateTime.Now.ToString());</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Correct Usage : </span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public static async Task FooAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">await Task.Delay(10000);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> public void ThisWillNotWaitForAsyncCodeToCompleteAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> Console.WriteLine("Before : " + DateTime.Now.ToString());</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> await FooAsync();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> Console.WriteLine("After : " + DateTime.Now.ToString());</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<div dir="ltr" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 10pt 0pt 0pt 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Changes to be noted carefully:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">added </span><span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">await</span><span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> in FooAsync() to follow the appropriate async/await chain.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Using .Result deprives off the async benefit</span></div>
</li>
</ol>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 10pt 0pt 0pt 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Result</span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">async method should be called as per the recommendation and the correct way of doing.</span></div>
</li>
</ol>
<ol start="3" style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">SEVERITY level = Important</span></div>
</li>
</ol>
<h1 dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 24pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Issue # 5 - </span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Blocking async method with .Wait</span></h1>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">InCorrect Usage : </span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public async Task FooAsync(string id)</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">… some more function code without any await operation inside…</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">await Task.Delay(10000);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public void Bar()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">console.writeline(“Hello world”);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">FooAsync().Wait();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Correct Usage : </span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public async Task FooAsync(string id)</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">… some more function code without any await operation inside…</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">await Task.Delay(10000);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public async Task BarAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">console.writeline(“Hello world”);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">await FooAsync();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<div dir="ltr" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Changes to be noted carefully:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Use async await in </span><span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">BarAsync</span><span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">() to follow the appropriate async/await pattern.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
</li>
</ol>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 10pt 0pt 0pt 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Result</span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">async method should be called as per the way they are supposed to rather than forcefully converting them to sync and blocking the current thread.</span></div>
</li>
</ol>
<ol start="4" style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">SEVERITY level = Important</span></div>
</li>
</ol>
<b style="font-weight: normal;"><br /></b>
<h1 dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 24pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Issue # 6 - </span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Create task for sync method and waiting on the task.</span></h1>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">InCorrect Usage : </span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public void SomeMethod1()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">… some function code ….</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Var task = Task.Run(()=>SomeMethod2);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">task.Wait();</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">… some functional code….</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public void SomeMethod2()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">… Some function code goes here ...</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Correct Usage : </span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public void SomeMethod1()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">… some function code ….</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">SomeMethod2();</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">… some functional code….</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public void SomeMethod2()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">… Some function code goes here ...</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 10pt 0pt 0pt 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Changes to be noted carefully:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #353744; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Use sync method normally the way it is supposed to use. Making a task and then waiting on the task is just wasting an additional thread on the pool when the same work can be done the main thread itself.</span></div>
</li>
</ol>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 10pt 0pt 0pt 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Result</span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Optimized performance rather than bloating CPU for creation of task when method has to be waited anyway.</span></div>
</li>
</ol>
<ol start="5" style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">SEVERITY level = Important</span></div>
</li>
</ol>
<h1 dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 24pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Issue # 7 - </span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Retrieving result of multiple tasks</span></h1>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">InCorrect Usage : </span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public async Task<string> FooAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">string result = string.empty;</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">… some function code…</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">return result;</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public async Task<string> BarAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">string result = string.empty;</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">… some function code…</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">return result;</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<b style="font-weight: normal;"><br /></b><br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public void ParentMethod()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">var task1 = FooAsync();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">var task2 = BarAsync();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Task.WaitAll(task1,task2);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
</div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Correct Usage : </span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public async Task<string> FooAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">string result = string.empty;</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">… some function code…</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">return result;</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public async Task<string> BarAsync()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">string result = string.empty;</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">… some function code…</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">return result;</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<b style="font-weight: normal;"><br /></b><br />
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">public async Task ParentMethod()</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">{</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">var task1 = FooAsync();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">var task2 = BarAsync();</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">await task.WhenAll(task1,task2);</span></div>
<div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: white; color: #434343; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">}</span></div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 10pt 0pt 0pt 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Changes to be noted carefully:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">We should avoid mixing blocking & unblocking code. Task.WaitAll is blocking call whereas Task.WhenAll is nonblocking and maintains the async semantics.</span></div>
</li>
</ol>
<div dir="ltr" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 10pt;">
<br /></div>
<div dir="ltr" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Result</span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Code is optimized and works as per the async / await programming guidelines of avoiding blocking calls.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">SEVERITY level = Important</span></div>
</li>
</ol>
<b style="font-weight: normal;"><br /></b>
<h1 dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 24pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Issue # 8 - </span><span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Sync version used when Async is available.</span></h1>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #434343; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">InCorrect Usage : </span></div>
<hr />
<br />
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> public bool CheckLabelAlreadyExist(string labelName, Guid facilityKey, int labelTypeCode)</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> return GetQueryable().Any(x => x.DescriptionText == labelName && x.FacilityKey == facilityKey && x.LabelTypeCode == labelTypeCode);</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">CorrectUsage:</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> public async Task<bool> CheckLabelAlreadyExist(string labelName, Guid facilityKey, int labelTypeCode)</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> {</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> return await GetQueryable().AnyAsync(x => x.DescriptionText == labelName && x.FacilityKey == facilityKey && x.LabelTypeCode == labelTypeCode);</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"> }</span></div>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Task Waiting General Rules (phase 1):</span></div>
<div align="left" dir="ltr" style="margin-left: 0pt;">
<table style="border-collapse: collapse; border: none; table-layout: fixed; width: 540pt;"><colgroup><col></col><col></col><col></col></colgroup><tbody>
<tr style="height: 0pt;"><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">To Do This …</span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Instead of This …</span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Use This</span></div>
</td></tr>
<tr style="height: 0pt;"><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Retrieve the result of a background task</span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Task.Wait, Task.Result or Task.GetAwaiter.GetResult</span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">await</span></div>
</td></tr>
<tr style="height: 0pt;"><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Wait for any task to complete</span><span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Task.WaitAny</span><span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">await Task.WhenAny</span></div>
</td></tr>
<tr style="height: 0pt;"><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Retrieve the results of multiple tasks</span><span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Task.WaitAll</span><span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">await Task.WhenAll</span></div>
</td></tr>
<tr style="height: 0pt;"><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Wait a period of time</span><span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Thread.Sleep</span><span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span></div>
</td><td style="border-bottom: solid #000000 1pt; border-left: solid #000000 1pt; border-right: solid #000000 1pt; border-top: solid #000000 1pt; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"><div dir="ltr" style="line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #444444; font-family: Arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">await Task.Delay</span></div>
</td></tr>
</tbody></table>
</div>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Method Naming Conventions:</span></div>
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #353744; font-family: 'Proxima Nova',sans-serif; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">All async methods should have “async” suffix in the method name for easy readability and differentiation between sync and async methods. </span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Having “async” in the methods, make it more prominent and reduces the chances of error in implementation.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">This can be done in phase 2</span></div>
</li>
</ol>
<b style="font-weight: normal;"><br /></b>
<div dir="ltr" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">References :</span></div>
<br />
<ol style="margin-bottom: 0; margin-top: 0;">
<li dir="ltr" style="background-color: transparent; color: #353744; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<a href="https://markheath.net/post/async-antipatterns" style="text-decoration: none;"><span style="-webkit-text-decoration-skip: none; background-color: white; color: #1155cc; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration-skip-ink: none; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">https://markheath.net/post/async-antipatterns</span></a></div>
</li>
<li dir="ltr" style="background-color: transparent; color: #222222; font-family: 'Trebuchet MS'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline; white-space: pre;"><div dir="ltr" role="presentation" style="line-height: 1.56; margin-bottom: 0pt; margin-top: 10pt;">
<span style="background-color: white; color: #1155cc; font-family: "Trebuchet MS"; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration-skip-ink: none; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"><a href="https://docs.microsoft.com/en-us/archive/msdn-magazine/2013/march/async-await-best-practices-in-asynchronous-programming" style="text-decoration: none;">https://docs.microsoft.com/en-us/archive/msdn-magazine/2013/march/async-await-best-practices-in-asynchronous-programming</a></span></div>
</li>
</ol>
<div>
<span style="color: #222222; font-family: Trebuchet MS;"><span style="font-size: 14.6667px; white-space: pre;">This brought under the Guidence of Vishal Sharma (Solution Architech)</span></span></div>
<div>
<a class="Xx" data-display="https://www.linkedin.com/in/vishal-sharma-a86124167/" data-sanitized="https://www.google.com/url?q=https://www.linkedin.com/in/vishal-sharma-a86124167/&sa=D&source=hangouts&ust=1590667933996000&usg=AFQjCNHYvBmOS9Zm1UXpvkjcxWEiebc1qw" dir="ltr" href="https://www.google.com/url?q=https://www.linkedin.com/in/vishal-sharma-a86124167/&sa=D&source=hangouts&ust=1590667933996000&usg=AFQjCNHYvBmOS9Zm1UXpvkjcxWEiebc1qw" rel="nofollow noreferrer noopener" style="color: #263238; font-family: Roboto, Arial, sans-serif; font-size: 13px; unicode-bidi: isolate;" tabindex="-1" target="_blank">https://www.linkedin.com/in/vishal-sharma-a86124167/</a></div>
</div>
Hamidhttp://www.blogger.com/profile/12068029369766700490noreply@blogger.com4