Design Concepts and Code

This category is intended for code snippets, design or architecture entries or general programming thoughts.

Introduction As APIs and web services become more and more prevalent, particularly in the Enterprise, there is an increasing need to look at ways to secure the more important interfaces, particularly if they enable access to sensitive data. Recently, I’ve been investigating ways to secure ASP.NET Web APIs using Active […]

Securing a Web API with ADFS 3.0 and JWT tokens

So this article isn’t going to be for everyone, however I suspect it will be somewhat appealing for anyone who is looking at Windows Server 2012 R2’s Failover Clustering capability.  Introduction I’m going to write this in a series of posts, as I think there’s also some merit in looking […]

High Availability: MassTransit 2.x with Clustered MSMQ – Part 1

Welcome, 2015 – may you be an improvement on your predecessor. Today’s article focuses on the deceptively non-trivial task of reading from the Windows Event Logs using the Microsoft .NET Framework.  For those who haven’t looked there in a while, here’s a quick look at the Event Viewer: The Windows […]

Programmatically Reading Event Logs

Hello there.  I’ve been spending a lot of time of late trying to develop a solution to a very obscure problem scenario.  The entire problem itself is outside the scope of this article – and to be honest, probably wouldn’t be terribly relevant to many – however, I felt there […]

Getting to know Cross-Origin Resource Sharing (CORS)

image_thumb.png 2
Introduction In Part 1, we had a brief look at OWIN/OAuth concepts, and then prepared a clean ASP.NET web forms project for integration with NuGet packages essential to supporting a lightweight integration for OAuth handling. In Part 2  we established the information required to authenticate users against the Live Connect […]

A lightweight implementation OWIN OAuth for ASP.NET Web Forms using ...

image_thumb.png 2
Introduction Where we left off in Part 1, we’d established the prerequisites to prepare either a new or existing web forms project for the implementation of a lightweight OWIN/OAuth provider. This article, Part 2, will focus on how to prepare your development environment and also how to configure for Windows […]

A lightweight implementation OWIN OAuth for ASP.NET Web Forms using ...

Introduction Disclaimer: this article assumes the reader is already familiar with OWIN and OAuth standards.  It is published in three parts. Late last year I wanted to implement Open Web Interface for .Net (OWIN) OAuth  functionality for an administrative subdomain.  As it happened, I wanted to specifically integrate OWIN/OAuth authentication/authorization […]

A lightweight implementation OWIN OAuth for ASP.NET Web Forms using ...

Introduction When we left off in Part 1, we had edited the T4 template which generates Entity Framework POCO entities and had it add appropriate attributes to assist in data validation checks. The next step is to show you how we can make use of these annotations. Note: the data […]

Entity Validation and the Entity Framework – Part 2

Introduction Recently I began writing a series of articles demonstrating how you could take a blank Database schema and bring it all together with a fully integrated object relational mapping access model (Entity Framework) and then exposing the entire object graph via WCF web services in a completely detached mode.  […]

Flexible Data Operations with the Entity Framework V6 RC1

image_thumb.png 12
Introduction This article is part of the ongoing series I’ve been writing recently, but can be read as a standalone article.  I’m going to do a better job of integrating the changes documented here into the ongoing solution I’ve been building.  However, considering how much time and effort I put […]

Solving the detached many-to-many problem with the Entity Framework

Introduction Following on from the previous article, Data Access with the Entity Framework V6 RC1, this time I’m going to go deeper and look at how we manipulate entities through a structured and often times generic approach. We’ll take a particularly close look at an approach to adding, updating and […]

Basic Data Operations with the Entity Framework V6 RC1

Introduction Today I’m following on from my previous series of articles from last week, particularly (and logically) from the article More with the Entity Framework V6 RC1. This time around, I’m going to go under the covers and document a new approach I’m trying out around the Entity Framework Data […]

Data Access with the Entity Framework V6 RC1