Skip to content
View mhagrelius's full-sized avatar
  • Carvana
  • Scottsdale, AZ, USA
Block or Report

Block or report mhagrelius

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. IAsyncEnumerable ADO.NET Example IAsyncEnumerable ADO.NET Example
    1
    public static async IAsyncEnumerable<IEnumerable<object?>> GetResults(this SqlConnection connection, string query, [EnumeratorCancellation] CancellationToken token)
    2
    {
    3
        if (string.IsNullOrWhiteSpace(query))
    4
        {
    5
            throw new ArgumentException(nameof(query));
  2. Retrieve Groups From Microsoft Graph Retrieve Groups From Microsoft Graph
    1
    /*
    2
      Uses Flurl.Http instead of default http client
    3
      Your app registration will need the appropriate permissions for microsoft graph
    4
      
    5
      *** Additional exception handling needed if in a production scenario ***
  3. Workaround for Azure AD groups and A... Workaround for Azure AD groups and Asp.Net Core Roles
    1
        namespace Example
    2
        {
    3
          public class RoleClaimsTransformation : IClaimsTransformation
    4
          {
    5
              public Task<ClaimsPrincipal> TransformAsync(ClaimsPrincipal principal)
  4. Test for adherence to clean architec... Test for adherence to clean architecture guidelines
    1
    #!/bin/bash
    2
    RESULT=$(grep -r -i --include \*.cs --include \*.cshtml --exclude Startup.cs --exclude /bin/\* --exclude /obj/\* --exclude /Configuration/\*.cs "Infrastructure.Namespace.Here" FolderNameHere)
    3
    
                  
    4
    if [ -z "$RESULT" ]
    5
    then
  5. pydataparc pydataparc Public

    A python library for accessing tag data in Capstone DataPARC historian

    Python 1

  6. Azure DevOps Pipeline Example Azure DevOps Pipeline Example
    1
    # ASP.NET Core
    2
    # Build and test ASP.NET Core projects targeting .NET Core.
    3
    # Add steps that run tests, create a NuGet package, deploy, and more:
    4
    # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
    5