GoorooTHINK

Thought provoking and helpful articles
from the Gooroo community.

Do you have something to say? Contribute or create an article and add it to your Gooroo bio.

  1. Asynchronous lambda expression with Func

    HiI share this simple article to show you some code about a TCache async method. I encountered this exception: Unable to convert a async lambda expression in Func.The previows signature was :T Get(string cacheKeyName, int cacheTimeOutSeconds, Func<T> func); It is a generic method.This method takes 3 arguments: cacheKeyName: the name of the item in cachecacheTimeOutSeconds: the expiration policy.func: the delegate that you can use to load the data from database if the cache object...
  2. Operation Not Legal in the Current State - Debugging ASP.NET Core Web Applications

    The other evening I was playing around with an ASP.NET Core application. When I started debugging it, I immediately saw an error message pop up that said It was a bit of a head scratcher, so I decided to restart the debug session and see if the problem resolved itself. This didn't help and I saw the same error again.I also saw that my Chrome browser had started up, but it wasn't showing my web page. It was stuck on a notification page telling me that JavaScript debugging is now enabled in Visual...
  3. Maintain Your User Interface Responsive with Task-await

  4. Contributing to .NET for Dummies

    Over the past few months in the little spare time that I have, I’ve managed to submit a handful of pull requests to various .NET-related repositories (e.g. coreclr, corefx, docs, etc.) and incredibly, they were accepted.Now, for some, this may not seem like a big deal. But it felt like a pretty big one to me so I thought I would take some time to elaborate on the process itself, share my experience, and hopefully dispel a few myths or misconceptions that you might have that may be holding you back...
  5. Extending Tag Helpers in ASP.NET Core

    A few days ago, I was answering questions on Stack Overflow when I came across one that I thought might be relevant to share with others that might have a similar issue. The issue itself revolved around Tag Helpers, and in particular, getting data attributes found on models to properly generate the appropriate attributes when rendered.This post will introduce how to easily extend an existing tag helper for a common use-case. It will primarily focus around the use of the Input Tag Helper, the [MaxLength]...
  6. Sharing is Caring: Using Shared Projects in ASP.NET

    As software developers, copy-pasting some code or a few files and having it in multiple places has always been smelly. There are several different avenues that you can take to avoid this kind of redundancy, but this post will focus on one that it seems isn’t talked about too often: Shared Projects.Prior to the introduction to Shared Projects, I’ll briefly go over why Shared Projects themselves were introduced, and how you might have accomplished similar behavior before their release.With the major...
  7. .Net Regular Expressions Demystified Part 1

    In very simple terms we can say that"regular expression is a group of characters that defines a pattern" and using that pattern we find out specific information that we required in our caseSo the regular expressions are nothing but a group of characters that have special meanings to regular expression engine which is already installed in .Net framework and represented by System.Text.RegularExpressions.Regex .My goal in this article is to give you a basic understanding of regular expressions in very...
  8. Using the HoloToolkit for HoloLens

    Developing applications and experiences for HoloLens is not hard to get started with, but after you have started a number of projects and worked through the same setup and plumbing a few times, you wish there was an easier way to do it. Well, there is! Created by the team that produced Fragments and Young Conker, the HoloToolkit is a collection of scripts and components intended to accelerate the development of holographic applications targeting Windows Holographic. The toolkit is all free...
  9. Templates Available for dotnet new command

    • Amal Dev Ambassador
    • updated 9 months ago
    Early this week Microsoft announced the release of updates to .NET Core Tooling included in the Visual Studio 2017 RC which brings some major changes in the tool set. You can refer this link to read about the official release of the update. One of the major change is in creating new projects using the dotnet new command which is widely used by novice and experienced hands in their day to day life as a developer. According to the release note, the updated dotnet command will be having the following...
  10. Using response compression in ASP.NET Core 1.1

    Modern browsers support multiple compression schemes such as deflate and gzip. Using this nifty feature in your web application can contribute greatly to an improved overall user experience. In this article, we'll discuss response (gzip) compression, it's benefits and how to implement it in your ASP.NET core web application. Response compression is an effective way to improve the efficiency of any website. It helps reduce bandwidth use and dramatically speeds up your website's load time...
  11. Edit DRAFT Edit

    • updated