Tag Archives: Unity

Windows Service with Self Hosted Wep Api 2

This is a simple example of a windows backend service which hosts a Web Api 2 service. The application is deployed using WiX. The application can then be used as a backend for a simple game with different UIs, for example an android App, MVC 5 web application, or an WPF UI application. The application […]

Self Hosted Web Api using Owin and Unity, Nuget Package Documentation

This is the documentation for the nuget package Unity.SelfHostWebApiOwin. The package is dependent on Katana 2. The code can be found here: Example, how to use: https://github.com/damienbod/HelloWorldUnityWithSelfHostedOwin Source code: https://github.com/damienbod/SelfHostWebApiWithOwinAndUnityUsingNuget How to create an application using the nuget package: Step 1: Create a Console application. This will be used to start the application or could […]

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 […]

Self Host WebApi with Owin and Unity

Using Unity together with a WebApi application and OWIN Hosting is a little bit more complicated compared to the standard WebApi and Unity. This blog shows how to host ASP.NET Web API in a console application, using OWIN to self-host the Web API framework and Unity as an IoC. The following steps need to be […]

AOP with ASP.NET Web Api

This blog demonstrates the usage of filters and unity interface interception with an ASP.NET Web Api application. AOP = Aspect oriented programming. This programming paradigm can be used to add functionality to existing methods. In the following example, we wrap the controller method with diagnosis using filters and then we wrap the business manager with […]

Windows 8 App using Unity 3 IoC

Unity.3.0.1304.1 now supports Windows 8 Apps with the Microsoft.Practices.Unity.NetCore assembly. This is a reduced set of features compared with the full version of Unity. This blog demonstates how this IoC container could be used with a default Windows 8 App. Step 1: Get Unity using nuget: Step 2: Create a UnityHelper class which will be […]

MVC real time Diagnosis using SignalR

UPDATED 2014.04.12: latest version of SignalR used and all other packages. The idea of this example is to create a simple SignalR service, so that all Log messages can be sent to a client browser in real time. In the example, EventSource classes are used to send the logs to the ETW. Semantic Logging OUT-OF-PROCESS […]