Category NuGet

Using Entity Framework Core to process Azure Service Messages in ASP.NET Core

This article shows how to use Entity Framework Core together with an Azure Service Bus receiver in ASP.NET Core. This message handler is a singleton and so requires that an Entity Framework Core context inside this singleton is not registered as a scoped service but created and disposed for each message event. Code: https://github.com/damienbod/AspNetCoreServiceBus Posts […]

Policeman Guard NuGet Package

This post is a simple article which shows how the use the Policeman.Guard NuGet package. The package can be used for simple checks in your methods to guard against null arguments, required conditions or whatever. Code: https://github.com/damienbod/Policeman NuGet Package: https://www.nuget.org/packages/Policeman.Guard/ The Requires guard method can be used to do any type of method checks. You […]

Web API Tracing with SLAB and Elasticsearch

The article demonstrates how to use Web API Tracing, and trace the data using SLAB, in-process or out-of-process to a flat file or an Elasticsearch sink. Semantic.Logging from Enterprise Library now includes an Elasticsearch sink. The NuGet package also includes an implementation of the IExceptionLogger interface and a logging ActionFilter which logs the data using […]

Semantic Logging with Elasticsearch

UPDATE: This NuGet package will no longer be supported as SLAB now supports an Elasticsearch sink. This blog still demonstates how to create a custom sink for SLAB. With the version 1.1 bulk inserts can also be used for custom sinks. See https://damienbod.wordpress.com/2014/04/02/semanic-logging-with-elasticsearch-using-semanticlogging-elasticsearch-nuget-package/ This post demonstrates how to create a Semantic.Logging Sink which adds documents […]

SelfHost WebApi with Owin and unity using a Nuget package

This post continues in from the previous blog Self Host WebApi with Owin and Unity The blog project and nuget package can be downloaded from here: nuget: https://www.nuget.org/packages/Unity.SelfHostWebApiOwin code: https://github.com/damienbod/SelfHostWebApiWithOwinAndUnityUsingNuget In this blog, a nuget packet will be created, so unity can be used with a self hosted web Api easily. What is required in […]

How to create a nuget Server

Required – VS2012 – NuGet.server 2.5.0.1 Create a new empty web application Menu: File/new/Project Right click the created project and click Manage NuGet Packages… In the new project search for nuget. Install NuGet.Server Open the web config and delete the complilation node as shown below Run the application and you should see the following: Per […]