Navigation
GitHubSpark Navigation


Data last updated: 2025-12-08 02:39:56 UTC Fresh data
GitHub User
Avatar
markhazleton

Joined GitHub on March 2010

Solutions Architect, lifelong learner, passionate for solutions which make technology work for business, not sidetracked by sizzle

Wichita, KS

View Profile
Repositories Information

A very simple key press counter and logger for windows
Main Language: C#
Owner markhazleton
Size 46573 KB
Default Branch main
Visibility public
License MIT License
Created At 2024-03-07
Last Push 2025-12-07 23:45
Repository Statistics
Stars: 1 Watchers: 1 Forks: 1 Open Issues: 0

Spark Your Inquiry, Ignite Insights.
Main Language: C#
Owner markhazleton
Size 9210 KB
Default Branch main
Visibility public
License MIT License
Created At 2023-10-24
Last Push 2025-12-07 06:07
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

Demonstration of some Async Methods
Main Language: C#
Owner markhazleton
Size 1555 KB
Default Branch main
Visibility public
License MIT License
Created At 2022-08-07
Last Push 2025-12-04 11:54
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

ReactSparkPortfolio is a production-ready, enterprise-grade developer portfolio built with React 19, TypeScript, and Vite.
Main Language: CSS
Owner markhazleton
Size 43397 KB
Default Branch main
Visibility public
License MIT License
Created At 2024-10-11
Last Push 2025-12-04 20:10
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 5

A Git Reporting tool
Main Language: TypeScript
Owner markhazleton
Size 935 KB
Default Branch main
Visibility public
License MIT License
Created At 2025-09-29
Last Push 2025-12-03 02:28
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

A JavaScript Development Environment (a.k.a. Starter Kit)
Main Language: JavaScript
Owner markhazleton
Size 2856 KB
Default Branch main
Visibility public
License MIT License
Created At 2022-06-06
Last Push 2025-12-03 02:02
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 1

A Demo of what you can do with a CSV file
Main Language: Visual Basic .NET
Owner markhazleton
Size 12926 KB
Default Branch main
Visibility public
License MIT License
Created At 2023-04-20
Last Push 2025-12-03 01:16
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

Main Language: Pug
Owner markhazleton
Size 118585 KB
Default Branch main
Visibility public
License MIT License
Created At 2023-07-28
Last Push 2025-12-07 09:06
Repository Statistics
Stars: 1 Watchers: 1 Forks: 1 Open Issues: 2

Demo of FastEndpoints Nuget Packages
Main Language: HTML
Owner markhazleton
Size 127 KB
Default Branch main
Visibility public
License MIT License
Created At 2024-04-06
Last Push 2025-11-16 23:08
Repository Statistics
Stars: 2 Watchers: 2 Forks: 1 Open Issues: 0

An application to demonstrate multiple ways of implementing simple maintenance (CRUD) and user interface in ASP.Net using latest public versions.
Main Language: HTML
Owner markhazleton
Size 29968 KB
Default Branch main
Visibility public
License MIT License
Created At 2019-04-25
Last Push 2025-11-25 14:05
Repository Statistics
Stars: 8 Watchers: 8 Forks: 4 Open Issues: 14

MechanicsOfMotherhood
Main Language: TypeScript
Owner markhazleton
Size 4784 KB
Default Branch main
Visibility public
License MIT License
Created At 2025-09-01
Last Push 2025-11-16 18:49
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

Main Language: C#
Owner markhazleton
Size 4058 KB
Default Branch main
Visibility public
License Other
Created At 2023-03-24
Last Push 2025-11-27 00:34
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 2

Main Language: Not specified
Owner markhazleton
Size 6580 KB
Default Branch main
Visibility public
License None
Created At 2021-04-17
Last Push 2025-11-04 00:30
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

This is the personal GitHub profile for Mark Hazleton
Main Language: SCSS
Owner markhazleton
Size 190 KB
Default Branch sources
Visibility public
License MIT License
Created At 2021-04-18
Last Push 2025-11-03 13:22
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

Configuration-driven decision routing engine for conversational experiences
Main Language: C#
Owner markhazleton
Size 68 KB
Default Branch main
Visibility public
License MIT License
Created At 2025-10-29
Last Push 2025-10-29 02:08
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

Samples associated with Pluralsight design patterns in c# courses.
Main Language: HTML
Owner markhazleton
Size 242 KB
Default Branch main
Visibility public
License MIT License
Created At 2021-02-03
Last Push 2025-12-01 23:49
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 4

A simple starter for a React Native Web application
Main Language: TypeScript
Owner markhazleton
Size 2303 KB
Default Branch main
Visibility public
License MIT License
Created At 2025-07-26
Last Push 2025-11-24 11:50
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 2

Learning Concurrent Processing Through Code
Main Language: C#
Owner markhazleton
Size 40 KB
Default Branch main
Visibility public
License MIT License
Created At 2023-09-18
Last Push 2025-10-14 19:38
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

A small console application to run REST requests
Main Language: C#
Owner markhazleton
Size 373 KB
Default Branch main
Visibility public
License MIT License
Created At 2021-09-30
Last Push 2025-11-15 11:19
Repository Statistics
Stars: 2 Watchers: 2 Forks: 0 Open Issues: 1

An open-source PHP documentation & data exploration platform by Mark Hazleton (WebSpark suite) showcasing hybrid server-side + modern asset pipeline techniques.
Main Language: PHP
Owner markhazleton
Size 2727 KB
Default Branch main
Visibility public
License MIT License
Created At 2023-09-08
Last Push 2025-08-18 02:15
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

Sandbox for trying out new stuff
Main Language: C#
Owner markhazleton
Size 5239 KB
Default Branch main
Visibility public
License None
Created At 2022-06-10
Last Push 2025-07-12 20:54
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 1

Main Language: JavaScript
Owner markhazleton
Size 19440 KB
Default Branch master
Visibility public
License None
Created At 2020-03-29
Last Push 2025-05-20 12:48
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

Extensions for the Azure.Data.Tables library to easier access & manipulate data inside Azure Table Storage
Main Language: C#
Owner markhazleton
Size 240 KB
Default Branch main
Visibility public
License MIT License
Created At 2025-02-25
Last Push 2025-05-20 11:45
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

Decorator Design Pattern: Adding Telemetry to HttpClient
Main Language: HTML
Owner markhazleton
Size 2665 KB
Default Branch main
Visibility public
License MIT License
Created At 2023-02-09
Last Push 2025-05-08 21:21
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

C# Barcode Image Generation Library
Main Language: JavaScript
Owner markhazleton
Size 53603 KB
Default Branch main
Visibility public
License Apache License 2.0
Created At 2019-06-20
Last Push 2025-05-04 03:27
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 1

Google Maps Web Services API wrapper for .NET
Main Language: C#
Owner markhazleton
Size 2230 KB
Default Branch main
Visibility public
License BSD 2-Clause "Simplified" License
Created At 2024-03-28
Last Push 2025-05-04 02:20
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

PromptSpark Chat Workflow: Real-time Conversational Flows with ASP.NET Core and Adaptive Cards
Main Language: C#
Owner markhazleton
Size 18717 KB
Default Branch main
Visibility public
License MIT License
Created At 2024-12-31
Last Push 2025-04-27 04:54
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

The official .NET library for the OpenAI API
Main Language: Not specified
Owner markhazleton
Size 16923 KB
Default Branch main
Visibility public
License MIT License
Created At 2025-03-16
Last Push 2025-03-12 16:28
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

Main Language: C#
Owner markhazleton
Size 1314 KB
Default Branch master
Visibility public
License MIT License
Created At 2020-07-02
Last Push 2024-12-24 13:47
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 0

Pluralsight Project for Blazor Bug Tracking
Main Language: C#
Owner markhazleton
Size 1556 KB
Default Branch master
Visibility public
License None
Created At 2022-06-08
Last Push 2024-10-29 12:43
Repository Statistics
Stars: 0 Watchers: 0 Forks: 0 Open Issues: 1

Understanding GitHub and Its API

GitHub Platform

GitHub is the world's leading platform for software development and version control, enabling millions of developers to collaborate on projects. Its ecosystem includes:

  • Version control using Git
  • Team collaboration tools
  • Code management
  • CI/CD automation
GitHub API

The GitHub API provides programmatic access to GitHub data and functionality, enabling developers to:

  • Retrieve user profiles
  • List repositories and their contents
  • Track issues and pull requests
  • Automate workflows and tasks

By leveraging the GitHub API with asynchronous programming in .NET, you can create responsive applications that seamlessly integrate GitHub data while maintaining optimal performance and user experience.

Integrating GitHub User and Repo Data into WebSpark's GitHubSpark Section

In this tutorial, we'll walk through how to use GitHub's API and asynchronous programming in .NET to create a responsive and interactive interface for displaying GitHub user and repository data in the GitHubSpark section of WebSpark. We will also make use of Bootstrap 5 to design a polished and user-friendly interface.

Why Use Async Programming?

Asynchronous programming is crucial when working with external APIs, like GitHub's, because it ensures the web page remains responsive while waiting for the API responses. The async/await pattern in .NET helps make non-blocking API calls and ensures that the user experience is not interrupted, enhancing the smoothness and efficiency of your web application.

Fetching GitHub Data Asynchronously

First, we will create a method that fetches GitHub user and repository data asynchronously using the HttpClient class. This allows us to make non-blocking HTTP requests to the GitHub API.


public async Task<GitHubCacheViewModel> GetGitHubDataAsync(string username, string repoName)
{
    var user = await _httpClient.GetFromJsonAsync<GitHubUser>($"https://api.github.com/users/{username}");
    var repo = await _httpClient.GetFromJsonAsync<GitHubRepo>($"https://api.github.com/repos/{username}/{repoName}");

    return new GitHubCacheViewModel
    {
        User = user,
        RepoInfo = repo
    };
}

In the code above, we use the await keyword to make sure the API requests to GitHub are handled asynchronously, improving the efficiency of our application by not blocking the main thread.

Creating the View Model

Next, we define a view model, GitHubCacheViewModel, to store the user and repository data. This helps to separate the data fetching logic from the view.


public class GitHubCacheViewModel
{
    public GitHubRepo? RepoInfo { get; set; }
    public GitHubUser? User { get; set; }
}

With this model, we can easily pass data from our controller to the view and render it in the UI.

Building the Bootstrap-Powered View

We can now create a Bootstrap-powered view to display the GitHub user and repository data. Bootstrap 5's responsive components make it easy to create an attractive and functional UI that works across different screen sizes. Below is an example of how to display the GitHub user's information in a card component.


<div class="card shadow-sm">
    <div class="card-header bg-dark text-white">
        <h5 class="card-title mb-0">
            <i class="bi bi-person-circle"></i> GitHub User
        </h5>
    </div>
    <div class="card-body text-center">
        <img src="@Model.User?.ResponseResults?.AvatarUrl" alt="Avatar" class="rounded-circle img-thumbnail mb-3">
        <h5 class="card-title">@Model.User?.ResponseResults?.Login</h5>
        <p class="text-muted">@Model.User?.ResponseResults?.Bio</p>
        <a href="@Model.User?.ResponseResults?.HtmlUrl" class="btn btn-primary" target="_blank">
            <i class="bi bi-github"></i> View Profile
        </a>
    </div>
</div>

In this example, we used Bootstrap's card component along with Bootstrap Icons to create a user-friendly and aesthetically pleasing UI for displaying GitHub user data.

Handling Asynchronous Fetching with Grace

When working with asynchronous data fetching, it's essential to provide feedback to the user. If the GitHub API request fails or data is unavailable, displaying an error message can enhance the user experience.


@if (Model.User == null)
{
    <div class="alert alert-danger" role="alert">
        Could not retrieve GitHub user data. Please try again later.
    </div>
}

This ensures that the UI remains engaging, even if the external API call fails.

Conclusion

Integrating GitHub user and repository data into the GitHubSpark section of WebSpark demonstrates the power of asynchronous programming in .NET. Not only does it show how easily external APIs can be consumed, but it also highlights how to build a responsive, user-friendly interface using Bootstrap 5.

Asynchronous programming ensures that the page loads smoothly, even when waiting for external resources like GitHub's API. Combining clean async code with polished Bootstrap design, WebSpark illustrates how developers can benefit from both performance and aesthetics in real-world applications.