no dogma blog
no dogma blog
Blog Posts
Podcast
Web API Lambda Course
Polly Course
Photos
Contact
Support this Site
About
RSS
Light
Dark
Automatic
dotNet
Throw ThrowIfCancellationRequested in a Method that Returns a Value when Using a Cancellation Token
When sending a cancellation request to a method that returns a value, you must return a value or throw an exception. Here is how to throw the exception.
Jan 3, 2024
#
C#
,
dotNet
,
async
,
CancellationToken
Simple Cancellation Token Example
Here is an example of using a cancellation token to stop the execution of a method.
Dec 28, 2023
#
C#
,
dotNet
,
async
,
CancellationToken
Sending MediatR Notifications Immediately After Saving an Entity with Entity Framework Core
After you save an entity, you may want to send out a notification so other parts of your application can react to the change. This post shows how to do that with MediatR and Entity Framework Core.
May 2, 2023
#
Entity Framework
,
MediatR
,
Notifications
,
dotNet
Using Step Functions to Orchestrate a Series of Lambda Functions
See how to use AWS Step Functions to control the flow of a series of Lambda functions. In this example, the Lambda functions execute quickly, return a result, and trigger the next step.
Apr 7, 2023
#
AWS
,
Step Functions
,
AWS Lambda
,
dotNet
Triggering a .NET Lambda Function from an Amazon SQS Queue
.NET Lambda functions can be triggered when messages arrive in an SQS queue. There are a few steps to set this up, read on to see how.
Apr 6, 2023
#
AWS
,
AWS Lambda
,
Amazon SQS
,
dotNet
Turning off Tracking for Find and FindAsync in Entity Framework
Find/FindAsync is a popular way to retrieve a single entity using its primary key with Entity Framework, but by default Entity Framework tracks that entity for changes. This post shows how to turn off tracking for Find/FindAsync.
Apr 4, 2023
#
Entity Framework
,
dotNet
,
Change Tracker
Accessing Objects Just After they are Saved by Entity Framework
Here is a way to access objects just after they are saved by Entity Framework and have had a primary key assigned to them.
Apr 2, 2023
#
dotNet
,
Entity Framework
,
Change Tracker
An exception of type 'System.MissingMethodException' occurred in System.Collections.Concurrent.dll
I left out version number in a package reference and got the exception - Exception has occurred: CLR/System.MissingMethodException An exception of type ‘System.MissingMethodException’ occurred in System.Collections.Concurrent.dll but was not handled in user code: ‘Method not found: ‘System.IServiceProvider.
Mar 30, 2023
#
Dependency Injection
,
dotNet
,
Entity Framework
Smallest Minimal Web API in .NET?
A puzzle - create the smallest minimal Web API in .NET. It has to return valid JSON. Mine is 54 characters.
Mar 24, 2023
#
dotNet
,
MinimalApi
Programmatically get your AWS Account ID with .NET
It took me a little while to figure this out, so I thought I’d share.
Mar 17, 2023
#
AWS
,
dotNet
»
Cite
×