.NET
I originally came across Stowage on the blog aggregator Awesome .NET. Its github repo has a description which reads “Stowage is a bloat-free .NET cloud storage kit that supports at minimum THE major cloud providers.” That caught my attention because I’d been contemplating how best …
Description # JsonEnvelopes is a simple .NET Standard library which utilizes a concrete implementation of JsonCovnverter<T> (System.Text.Json) to serialize and deserialize objects in a way that allows message receivers to be agnostic with respect to message type.
Messaging in .NET # Any …
I started paying attention to gRPC about a year ago. Almost every gRPC advocate and evangelist I came across touted its performance capabilities as a significant value-add over other available service technologies.
The release of .NET Core 3.0 came with a new gRPC project template so I dove right …
I’ve been working with Blazor Client (WASM) a fair amount recently and a couple of days ago someone asked me about how to load configuration from a file. I’d never had the need for that type of configuration before but it got me curious about what was possible.
After a little searching I …
Last year I saw a reference to LiteDB on Awesome .NET. It described itself as “An embedded NoSQL database for .NET”. That drew my attention. A short examination of their documents further peaked my interest.
LiteDB describes its target scenarios in the Where to use section of the GitHub …
In my previous post .NET Core Configuration Files I discussed a simple and resilient method of accessing configuration data with .NET Core. In this post I’ll explore .NET Core configuration options in greater depth.
For this discussion let’s start with the following appsettings.json …
My first exposure to Blazor was prior to it having a name. In late 2017 I watched a recording of Steve Sanderson’s NDC Oslo 2017 presentation Web Apps can’t really do that, can they? He discussed four emerging web technologies being supported by the major browser manufacturers. One of those …
My first look into F# was in 2011 when I read Programming F#. I enjoyed working through that book and I realized that F# had opened the door to functional programming in .NET but at the time C# was vastly superior in both available information and developer experience. I set F# aside.
Recently I …
Background # I’ve found myself trying to quantify differences between available data store options in .NET many times over the last decade. Historically I’ve performed such comparisons using a simple Console Application project in Visual Studio. I’d write test methods to provide …
For this discussion let us assume we wish to store configuration in the file config.json.
{ "epicswords": { "stormbringer": "elric", "excalibur": "arthur" } } If you start investigating configuration for .NET Core you’ll discover reading from .json files …
I have a Web API project which leverages an SQL database through Entity Framework. Pretty standard Microsoft technology stacks I’ve been using for years. When using EF I’ve historically disabled lazy loading and proxy generation due to lack of need for those features. This project I left …
I came across something I found sort of interesting a week or two ago. I had an array of integers that I wanted to use in populating a ComboBox for a tool I was working on. I started to call the ComboBox.Items.AddRange method which simply takes an array of objects. To my surprise I received the …
This is part 2 of my previous That pesky enum post. You should read part 1 first. In part 1 I defined the enum Beers and a static class BeersMockEnum and illustrated their use.
Now, I make modifications to these types by inserting a new item (Bitter) in the Beers enum and the BeersMockEnum class as …
The .NET enum, such a simple concept. At the most basic level an enum is a collection of key/value pairs with a restricted string key and an integer value. However, the enum can trick you. It would seem logical that when you define a new enum it’d obey the same rules as would any class you …
I came across something that grabbed my attention the other day. I was working with a Silverlight application and had bound TextBox controls to two separate decimal properties of a ViewModel class. I was using the default formatting for display and was quite perplexed when I found that even though …