Logo Barret Codes
  • Home
  • About
  • Engage With Me
  • Recent Posts
  • Silly Little Apps
  • More
    Podcasts
  • Posts
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Tags
  • 2025
  • 2026
  • Advent-of-Code-2021
  • Advent-of-Code-2022
  • Adventures-in-Net
  • Ai
  • Ai-Builder
  • Ai Code
  • Ai-Art
  • Aicode
  • Alexa
  • API
  • Application-Insights
  • Approval-Flows
  • April-Dunham
  • Architecture
  • Ardalis
  • Asp-Net-Core
  • Aspire
  • Axug
  • Azure
  • Azure AI
  • Azure-Back-to-School
  • Azure-Data-Factory
  • Azure-App-Service
  • Azure-Devops
  • Azure-Functions
  • Balance
  • Big-Data
  • Bing-Maps
  • Bitly
  • Blazor
  • Blog
  • Blogging
  • BlueSky
  • Burnout
  • C# Advent
  • C-Advent
  • Calendar
  • Canvas-App
  • Career
  • Change
  • Charity
  • Chatgpt
  • Cincydeliver
  • Civility
  • Class-Libraries
  • Claude
  • Cleveland C#
  • Code Reviews
  • Code-With-Ania-Kubow
  • CodeMash
  • Codementor
  • Cognitive-Services
  • Collections
  • Communication
  • Community
  • Conferences
  • Congitive Service
  • Connectors
  • Console-App
  • Content
  • Conversion
  • Copilot
  • Crm
  • Csharp
  • Css
  • Culture
  • Custom-Connector
  • Data-Types
  • Database
  • Datetime
  • Davinci Resolve
  • Delay
  • Deployment
  • Deployment-Slots
  • Desktop
  • Development
  • Devops
  • Dnd
  • Dotnet
  • Dotnetaspire
  • Dotnetrocks
  • Dynamics
  • Ef-Core
  • ELT
  • Employment
  • Encodian
  • Entity Framework
  • Entity Framework Core
  • Entra Id
  • Entraid
  • Equality
  • Error-Handling
  • Estimates
  • Ethics
  • ETL
  • Excel
  • Experience
  • Expressions
  • Extension-Methods
  • Extensions
  • Facebook
  • Facial-Recognition
  • Failure
  • Fast-Endpoints
  • Festive Tech
  • Festive-Tech-Calendar
  • Fired
  • Flow
  • Flowfam
  • Fluentmigrator
  • Forms
  • Function
  • Function-Friday
  • Functions
  • Gatekeeping
  • Gc20
  • Github
  • Github Copilot
  • Githubcopilot
  • Githubspeckit
  • Giving
  • Gmail
  • Goals
  • Google Calendar
  • Googlecalendar
  • Guidance-Counselor-2-0
  • Gulp
  • Hangfire
  • Hard-Drive
  • Hashtags
  • Hate
  • Hiring
  • HTTP
  • Hugo
  • Hybrid-Connector
  • Icymi
  • Ifttt
  • Iis
  • Image-Recognition
  • Images
  • Immutability
  • Imposter-Syndrome
  • Inclusivity
  • Instagram
  • Interviewing
  • Javascript-Friends
  • Jetbrains Datagrip
  • Jira
  • Job-Search
  • Json
  • Languages
  • Learning
  • Libraries
  • Life
  • Linkedin
  • Logging
  • Logic Apps
  • Logicapps
  • Love
  • Low-Code
  • Machine-Learning
  • Mastodon
  • Mentoring
  • Microsoft MVP
  • Minimal-Apis
  • Multi-Tenancy
  • Nimblepros
  • Nodejs
  • Nosql
  • Nsubstitute
  • Nuget
  • Nz365guy
  • Object-Recognition
  • Ocr
  • Octopus Deploy
  • OneDrive
  • Openai
  • Opentelemetry
  • Organizational-Skills
  • Otel
  • Outlook
  • Ownership
  • Ozcode
  • Package Management
  • Pc
  • Podcasts
  • Pos
  • Power-Apps
  • Power-Automate
  • Power-Automate-Desktop
  • Powerautomate
  • Powerautomatedesktop
  • Powershell
  • Privacy
  • Productivity
  • Racism
  • Razor
  • Recognition
  • Resharper
  • Responsibility
  • Retail
  • Rpa
  • Rss
  • Rss-Feed
  • Safe Habits
  • Sass
  • Scheduled-Tasks
  • Scheduling
  • SciFiDevCon
  • Security
  • Security-Questions
  • Sentiment-Analysis
  • Service-Fabric
  • Sexism
  • Shorts
  • Shouldly
  • Slides
  • Smart Cherry
  • Smart-Home
  • Soft-Skills
  • Specdrivendevelopment
  • Speckit
  • Sql
  • Sql-Server
  • Ssl
  • Stackexchange
  • Stackoverflow
  • Star Trek
  • Startrek
  • Startups
  • Stirtrek
  • Streamlabs Desktop
  • Summitna
  • Summitna2025
  • Surveillance
  • Task-Runner
  • Task-Runner-Explorer
  • Taylor-Desseyn
  • Teams
  • Tech
  • Tech Sharmitt
  • Templates
  • Testing
  • Text-Analytics
  • The-6-Figure-Developer
  • Time-Off
  • ToDo
  • Transition
  • Trello
  • Triggers
  • Troubleshooting
  • Try-Catch
  • Twitch
  • Twitter
  • Typescript
  • Unplug
  • Uri
  • User Groups
  • Utilities
  • Validation
  • Video
  • Videos
  • Vision-Api
  • Vision-Service
  • Visual-Studio
  • Visual Studio Code
  • Visualstudio
  • Visualstudio2026
  • Vsts
  • Web-Assembly
  • Website
  • Windows-10
  • Word
  • Workflow
  • Xml
  • Xpath
  • Xunit
  • YearInReview
  • Youtube
picture of code on a screen
Try-Catch-Throw in C#

We had an interesting discussion in a team meeting today and a good point was brought up about try/catch blocks and what happens when you throw an error in the catch section that perhaps a lot of developers new to C# might not be aware of.

  • try-catch
  • csharp
  • dotnet
Wednesday, January 22, 2025 | 4 minutes Read
hero image
C# Advent 2024 - Making a List, Checking It Twice

He’s making a list Checking it twice Writing some code To track who’s naughty and nice Santa Claus is wri-ting… C# tldr; With .NET 9, you can now add custom action buttons to the .NET Aspire dashboard screen You ever wonder how Santa is able to keep track of the kids who are naughty and nice? I mean, it was probably fairly easy when an old man could send out his army of short helpers to check up on the handful of kids who fell into his purview from time to time through the year, and to keep all that recorded on paper. But today? With the world’s population exploding? How on Earth could he possibly do that now? With each passing year it’s gotten harder and harder. Never fear, Santa, I got ya covered. Let me throw together a quick proof of concept (POC) and show you the future!

  • Aspire
  • csharp
  • dotnet
  • C# Advent
Tuesday, December 10, 2024 | 8 minutes Read
hero image
.NET Aspire - Adding Configuration

A followup video to my video about getting started with .NET Aspire. What if you already have a data source you want your Aspire app to connect to?

  • Aspire
  • csharp
  • dotnet
Monday, October 28, 2024 | 1 minute Read
hero image
Getting Started with .NET Aspire

It’s a new video. If you missed my talk at Central Ohio .NET (CONDG) about .NET Aspire, I finally got the time to record it for my YouTube channel. Here it is: Getting started with .NET Aspire

  • Aspire
  • csharp
  • dotnet
Monday, October 21, 2024 | 1 minute Read
hero image
Using C# and Power Automate To Sync An Outlook Calendar

There are some good tools out there for syncing your Outlook calendar to other calendars, especially for O365 or Outlook.com calendars. And they’re well worth the money for the good ones. But sometimes, in certain circumstances (such as if you have an on-prem exchange server that you can’t access from the cloud), you just need a quick and dirty tool to copy calendar events from a local Outlook instance to another calendar. That’s something you can do pretty quickly with a little C# and some Power Automate.

  • csharp
  • dotnet
  • flow
  • power-automate
Friday, April 14, 2023 | 12 minutes Read
hero image
Turning Any JSON API Into An App

The Internet is fantastic. There are a seemingly infinite array of APIs available for people to use. Many of them are completely free and open to use in pretty much any way you want to. For example, NASA has a wide variety of things available through its public API. I use one of them in Power Automate with a custom connector to post their daily image to Twitter. For my contribution to this year’s C# Advent, I will demonstrate how easily you can implement any JSON-based API into a C# based application.

  • csharp
  • c-advent
  • dotnet
Tuesday, December 13, 2022 | 9 minutes Read
hero image
Advent of Code 2022

I’m participating in the Advent of Code again this year. We’ll see if I get further than I did last year, which was about halfway before I quit. You can follow my progress in my GitHub repo over here. As usual, my solutions are written in C#.

  • advent-of-code-2022
  • csharp
  • dotnet
Wednesday, December 7, 2022 | 1 minute Read
hero image
Azure Back to School 2022 - Saving Customer Relationships with Azure Cognitive Services

For those of you who missed it yesterday, you can catch one of my two Azure Back to School sessions below. https://www.youtube.com/watch?v=pUL7Iuac3bI&ab_channel=BarretCodes

  • azure
  • azure-back-to-school
  • cognitive-services
  • dotnet
Sunday, September 4, 2022 | 1 minute Read
hero image
C# Advent 2021 - Using C# Code in Power Automate

This post is my contribution to the C# Advent 2021. Power Automate has a fantastic feature in preview that lets you add some C# code to your flows. It requires using a custom connector, so it’s limited to those with a license that allows that. There are also a number of other limitations which I’ll get into later. But it’s a start. Yeah, I know, if you want to use C#, why not use a Logic App or Azure Function? And that’s perfectly all right (and for production apps I’d go that route right now). But this is cool, so why not? I’ve blogged before about creating custom connectors in Power Automate. I glossed over the Code tab in that post, but now it’s time to return to it.

  • csharp
  • c-advent
  • custom-connector
  • dotnet
  • flow
  • power-automate
Monday, December 13, 2021 | 6 minutes Read
hero image
Advent of Code - Day 12

Photo by Any Lane from Pexels I’m participating in the Advent of Code 2021. Here’s my solutions for Day 12 - Passage Pathing. Problem 1 The Puzzles for Day 12 are a pathing problem. We are finding our way through a cave system. The system has a start point, and end point and a series of caves that are either large caves (represented by capital letters) or small caves (represented by lower case letters). The cave system input is in a the format of:

  • advent-of-code-2021
  • csharp
  • dotnet
Sunday, December 12, 2021 | 6 minutes Read
hero image
Advent of Code - Day 11

Photo by Any Lane from Pexels I’m participating in the Advent of Code 2021. Here’s my solutions for Day 11 - Dumbo Octopus. Problem 1 For Puzzles for Day 11, we want to navigate through a cave of octopi by predicting when their bioluminescent energy will flash so we don’t disturb them. The octopi are arranged in a 10x10 grid, with each octopus represented by a power level from 0 to 9.

  • advent-of-code-2021
  • csharp
  • dotnet
Saturday, December 11, 2021 | 6 minutes Read
hero image
Advent of Code 2021 - Day 10

Photo by Any Lane from Pexels I’m participating in the Advent of Code 2021. Here’s my solutions for Day 10 - Syntax Scoring. Problem 1 For Puzzles for Day 10, we’re trying to resolve damage to the navigation subsystem of our submarine. Each navigation line contains a series of “chunks”, which are pairs of delimiter characters (), {}, [] and . They may or may not be nested and appear in formats such as:

  • advent-of-code-2021
  • csharp
  • dotnet
Friday, December 10, 2021 | 4 minutes Read
  • ««
  • «
  • 1
  • 2
  • 3
  • 4
  • »
  • »»
Navigation
  • About
  • Engage With Me
  • Recent Posts
  • Silly Little Apps
  • Podcasts
  • Posts
Contact me:
  • barretblake@live.com
  • barretb
  • Barret

Toha Theme Logo Toha
© Copyright Barret Blake.
Powered by Hugo Logo