Staying Logged in across Azure App Service Swap

,
January 14, 2017 / No Comment

I love being able to deploy to slots with Azure Standard and above App Services. These allow me a main production site, a slot for testing which has a separate database, and staging slot that shares a database with production.
The Problem
Whenever I swap the production and stage sites, all the users of the production site get logged out. […]
Read more

AUTHOR: CATEGORY: .Net, .NET Core, Azure, Blog, C#

Immediate Need for SDET (QA Engineer/C#)

,
November 1, 2016 / 2 Comments

Immediate Opening!! IntelliTect is a growing computer engineering consulting firm seeking an experienced Quality Assurance Engineer.  If you live and breathe development innovation, interactive applications and learning new technologies for fun, check out the opportunity currently at IntelliTect.
 
We are looking for individuals with test automation experience who can help us accelerate delivery and improve the quality of enterprise […]
Read more

AUTHOR: CATEGORY: C#, Headlines, Uncategorized

Generalized Async Return Types in C# 7.0

,
October 14, 2016 / No Comment

Ever since C# 5.0 when the async/await pattern was introduced, the only supported return types were Task<TResult>, Task, and void (the latter only in exceptional cases). The problem with this limitation is that on occasions when the result is known immediately, it is still necessary to proceed with the formality of instantiating a Task even though no task is actually required […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#

Implementing an Implicit Conversion With C# 7.0 Deconstructors

,
October 14, 2016 / No Comment

While the deconstruct syntax is interesting for its convenience in assigning to a set of variables, what I believe has far broader implications is its potential to provide an “implicit conversion operator” and in a syntax that, quite frankly, is far easier to recall than the implicit cast operator.  For example, I can provide deconstructors that map to a string […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#

Deterministic Finalization with IDisposable and the Using Statement

,
October 14, 2016 / No Comment

The problem with finalizers on their own is that they don’t support deterministic finalization (the ability to know when a finalizer will run). Rather, finalizers serve the important role of being a backup mechanism for cleaning up resources if a developer using a class neglects to call the requisite cleanup code explicitly.
For example, consider the TemporaryFileStream, which includes not […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#

Finalizers in C#

,
October 14, 2016 / No Comment

The following is an Expert from Chapter 9 of Essential C#.
Finalizers allow developers to write code that will clean up a class’s resources. Unlike constructors that are called explicitly using the new operator, finalizers cannot be called explicitly from within the code. There is no new equivalent such as a delete operator. Rather, the garbage collector is responsible for […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#

Creating a Fody Add-in

,
September 22, 2016 / 1 Comment

Fody is a fantastic framework for creating IL weavers. For those who are unfamiliar with IL weaving, it is the art (and at times a seemingly magical incantation) of modifying an assembly post-compile. In this article we will walk through creating a library that can modify an existing .NET assembly.
Let’s start by looking at what actually happens when you […]
Read more

AUTHOR: CATEGORY: .Net, C#, Visual Studio

Displaying the Build Date on your Web Pages

,
August 26, 2016 / No Comment

The Build Date Problem
I have struggled to find a good way to communicate with users the version of a web site. Version numbers are tricky and only meaningful to people close to the project. I like dates but they are often tricky to implement.
My default choice has always been dates because they are easy for customers to understand. […]
Read more

Making unit testing easier

,
August 4, 2016 / No Comment

I love unit tests. Specifically, I love unit tests that are easy to maintain. When I spend more time setting up a test then doing actual testing, it is a very strong code smell. Sloppy unmaintainable code has no place in your projects, especially not in your unit test project.
 
In this post I would like to present two […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#

Locking a Block of Code With an Integer

,
June 27, 2016 / No Comment

I was talking with a developer recently who was convinced that you could use a static integer variable to lock a block of code merely by casting it to an object, like this

First it must be noted that an integer cannot be used by itself in a lock statement because it is a value type. But when you […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#