Category Logging
SignalR Messaging a complete client with a Console Application
This post continues on from: SignalR Messaging, a more complete server with a Console Application Now the client will be developed with some error handling and proper logging. This example is a robust client, which can restart or handle any client, server events. Code: https://github.com/damienbod/SignalRMessagingErrorHandling.git A base Hub client class is created, so that each […]
SignalR Messaging A more complete server with a Console Application
This post continues on from: SignalR Messaging with console server and client, web client, WPF client Now the server will be developed with some error handling, proper logging, an IoC and an Client assembly with an interface and DTOs. Code: https://github.com/damienbod/SignalRMessagingErrorHandling.git To make it easier to use in a .NET client project, we can create […]
Slab Logging with an IoC Container
Slab Logging or Semantic Logging is part of the Microsoft Enterprise Library 6. In this post, a wrapper framework will be used to log and use EventSource classes. The EventSource can then be used with an IoC container without requiring static constructors. We don’t want to create a wrapper class for each EventSource. Static methods […]
Creating a silent msi for Semantic Logging OUT-OF-PROCESS service using WiX
In a previous blog, the OUT-OF-PROCESS Semantic Logging service was installed from hand. (Power shell script and xml configuration). Enterprise Library 6, Semantic Logging, Part 2, OUT-OF-PROCESS A typical end user cannot be expected to do this. It would be better, if an msi could be created so that a fully pre-configured service can 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 […]
Windows 8 App with Semantic Logging
Windows 8 Pro or Windows 8 Enterprise offers the ability to use Semantic Logging so that a Window 8 App can log to a central database using the OUT-OF-PROCESS service from the Enterprise Library. (ETW with EventSource in the Windows App) Here’s a simple Howto: Step 1: Install the Enterprise Library Semantic Logging OUT-OF-PROCESS service. […]
Enterprise Library 6, Unity 3 InterfaceInterceptor with MVC 4, Part 4
This post continues on from the previous post. Part 3 Enterprise Library 6, Unity 3 and MVC 4, Registration by Convention Part 3 Microsoft.Practices.Unity.Interception Unity provides both instance and type interception, and enables interception with either objects you resolve through the container, or by using the stand-alone API to explicitly invoke interception on a known […]
Enterprise Library 6, Unity 3 and MVC 4, Registration by Convention Part 3
This post continues on from the previous post. Part 2 Enterprise Library 6, Unity 3 and MVC 4, LifetimeManagers Part 2 The MVC application with unity is starting to take shape. It would be better if the registration by convention method could select which interfaces with which lifetime manager should be registered and only the […]
Enterprise Library 6, Unity 3 and MVC 4, LifetimeManagers Part 2
This is an example of an MVC Application using Register by Convention and Unity.MVC Use nuget to add Unity.MVC to the MVC4 application. (Unity bootstrapper for ASP.NET MVC 3.0.1304.0) Now edit the UnityMvcActivator in the App_Start folder. The following code must be included. Then change the UnityConfig class. Add a custom function and use this […]