• About
  • Privacy Policy
  • Utilities
Darchuk.NET

Web Development

ASP.NET Core 2.2 SignalR Server

July 12, 2019 by Robert 1 Comment

SignalR is a technology that allows you to write bi-directional communication between a server and a client.  This can lead to some pretty cool interactions, such as a live-updating dashboard on a website, or the ability to communicate requests to a server without building HTTP endpoints.  SignalR does a lot of heavy lifting behind the … [Read more…]

Posted in: .NET Core, ASP.NET, C#, SignalR, Web Development Tagged: .NET Core, ASP.NET, C#, Realtime, SignalR, Web Development

ASP.NET Core Unit Testing – Setting the request body

June 28, 2019 by Robert Leave a Comment

Every now and again I find it necessary to set up the request body manually (as opposed to using the [FromBody] tag).  In the controller you can read from the request body easily enough: via GIPHY Testing How do you test this?  Normally I would just create a controller, call the method, and check the … [Read more…]

Posted in: .NET Core, ASP.NET, C#, MVC, Unit Testing, Web API, Web Development Tagged: ASP.NET, ASP.NET Core, Csharp, unit testing, Web Development

Javascript–Caching a web request with Promises

March 1, 2019 by Robert Leave a Comment

Suppose you have some data that comes from a web server somewhere.  But, it doesn’t change – so we really only need to fetch it once, and then store the result for easy access (maybe its an Enum that you map to a list of key/value pairs).  We can do this easily enough in a … [Read more…]

Posted in: Angular, JavaScript, Typescript, Web Development Tagged: Angular, Typescript, Web Development, WebAPI

Angular 2+: Binding HTML Select ngModel to a number

April 20, 2018 by Robert Leave a Comment

I hate magic things.  In programming, I mean.  I try to avoid magic strings and magic numbers as much as possible because I can barely remember the thing I typed five seconds ago, let alone something that you have to maybe type five hours from now.  So, I tend to use a lot of enums … [Read more…]

Posted in: Angular, HTML, Typescript, Web Development Tagged: Angular, HTML, JavaScript, Option, Select, Typescript, Web Development

Everything Is Fine–how to make and deploy a server that always returns 200 OK

January 12, 2018 by Robert Leave a Comment

Have you ever wanted to have a web server to just return 200 OK no matter what it is fed?  Basically, a web server to just say: No matter what? Recently I was working on a solution that was logging to a server that I didn’t have access to because I wasn’t inside of the … [Read more…]

Posted in: .NET Core, C#, Web API, Web Development Tagged: .NET Core, C#, Web Development, Web Server

IIS Request Logs

September 22, 2017 by Robert Leave a Comment

How many times have you wanted to check the IIS Request Logs to see if anything is going wrong, only to find a bunch of arbitrarily named W3SVx folders because you have more than one website running?  And then you open the folder, but all of the log files are also arbitrarily named?  And then … [Read more…]

Posted in: Debugging, Web Development Tagged: Debugging, IIS, Logs, Web Development

Schema.org microdata

August 30, 2017 by Robert Leave a Comment

I haven’t done a lot of SEO-type stuff for web development, as a lot of my work has been for intranet applications with no outside face, but today at work I was tasked with fixing some errors that had come up on my client’s Google Search Console.  They didn’t know what the errors were, exactly, … [Read more…]

Posted in: Web Development Tagged: Microdata, Schema.org, SEO, Web Development

Recent Posts

  • Allowing trailing JSON commas in ASP.NET Core 3
  • YADNC3JSG–Yet Another .NET Core 3.0 JSON Serializer Gotcha
  • Logging in a .NET Core 3 SignalR client
  • .NET Core 3 unit testing project sdk
  • .NET Core 3.0 Upgrade–New JSON Serializer Gotchas

Recent Comments

  1. Robert on C# Setting Socket Keep-Alive
  2. Oliver Schramm on C# Setting Socket Keep-Alive
  3. John Anderson on Waiting for a keypress asynchronously in a C# console app
  4. Ronald Garlit on .NET Core 3 unit testing project sdk
  5. Ronald Garlit on .NET Core 3 unit testing project sdk

Copyright © 2025 Darchuk.NET.

Omega WordPress Theme by ThemeHall