Tuesday, November 14, 2017

Repository Pattern Async Await

https://www.youtube.com/watch?v=C5VhaxQWcpE

Async and Await are the two keywords that help us to program asynchronously. An async keyword is a method that performs asynchronous tasks such as fetching data from a database, reading a file, etc, they can be marked as “async”. Whereas await keyword making  “await” to a statement means suspending the execution of the async method it is residing in until the asynchronous task completes. After suspension, the control goes back to the caller method. Once the task completes, the control comes back to the states where await is mentioned and executes the remaining statements in the enclosing method.



---------------------------------------------





http://www.c-sharpcorner.com/UploadFile/8a67c0/Asp-Net-mvc-code-first-approach-with-repository-pattern/

http://www.c-sharpcorner.com/UploadFile/3d39b4/crud-using-the-repository-pattern-in-mvc/

http://freefrontend.com/html-bootstrap-ui-kits/

Async Await
http://www.c-sharpcorner.com/UploadFile/4b0136/async-and-await-in-asynchronous-programming-in-C-Sharp/


NodeJS

https://nodejs.org/en/download/

https://blogs.msdn.microsoft.com/webdev/2016/11/21/client-side-debugging-of-asp-net-projects-in-google-chrome/

Monday, November 6, 2017

Download Manager

The 15 Best Freelance Websites


https://www.entrepreneur.com/article/245953

Download Video from Plural Site

http://download.cnet.com/Internet-Download-Manager/3000-2071_4-10071618.html

  [Route("api/WorkFlowTask")]   
    public class WorkFlowTaskController : Controller
    {

        [HttpGet("GetQualifyingQuestions/{workflowVariantName}")] //http://localhost:61031/api/WorkFlowTask/GetQualifyingQuestions/soloklite           

        public async Task GetQualifyingQuestions(string workflowVariantName)
        {

            using (var client = new HttpClient())
            {
                try
                {
                    client.DefaultRequestHeaders.Accept.Clear();

                    client.BaseAddress = new Uri("http://localhost:49403");
                    var response = await client.GetAsync($"api/workflowtask/GetQualifyingQuestions/" + workflowVariantName);
                    response.EnsureSuccessStatusCode();
                    var stringResult = await response.Content.ReadAsStringAsync();

                    return Ok(stringResult);
                }
                catch (HttpRequestException httpRequestException)
                {
                    return BadRequest($"Service is Unavailable: {httpRequestException.Message}");
                }
            }

        }
    }

Driving

 https://youtube.com/shorts/5Ac2qZHrApU?si=_X-G7pJFHiZoD-s7 https://www.youtube.com/watch?v=f6pSsex87oU