Tag Archives: SignalR

CSV export using Elasticsearch and Web API

This article demonstrates how to export data from Elasticsearch to a CSV file using Web API. The data is retrieved from Elasticsearch using _search with scan and scroll. This API can retrieve data very fast without any sorting. The data is then exported to a CSV file using WebApiContrib.Formatting.Xlsx from Jordan Gray. The progress of […]

SignalR Self Hosting in a Windows Service

This blog provides a simple template or example of a windows service which hosts a SignalR service. Code: https://github.com/damienbod/SignalRWSelfHostingWindowsServiceTemplate The Start and Stop methods used by the Windows Service use a long running Task which can be cancelled. SignalR is self hosted in OWIN. The main method of the service just starts the service. If […]

SignalR Message Buffers with SQLite

This post demonstrates how to set up a very basic message queue using SignalR with SQLite. This could be used to collect data from a measurement system or a client which is not always online but no data messages should be lost or the sequence of the messages. Code: https://github.com/damienbod/SignalRMessagingBuffering Only the client contains a […]

SignalR A complete WPF client using MVVM

In this post, a WPF application using MVVM is created and used to send and recieve SignalR messages. The post continues on from: SignalR Messaging, a more complete server with a Console Application Code: https://github.com/damienbod/SignalRMessagingErrorHandling The application uses 4 different projects: Damienbod.SignalR.IHubSync.Client: This project helps us use the SignalR Hub hosted in the server console […]

The end of WCF is on the horizon

I’m still a great fan of WCF and all it brings with it. This was one of the best developments in the .NET world and made it easy to implement multi process software, distributed systems and SOA. Why will it no longer be required? Web Api 2 and SignalR Great open source frameworks. source code […]

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

Using SignalR with Unity

This post demonstrates how to use Unity as an IoC for SignalR. To inject into SignalR, the Microsoft.AspNet.SignalR.Hubs.IHubActivator class should be used. Code: https://github.com/damienbod/SignalRHostWithUnity Step 1: Use NuGet to add Unity and SignalR and also SignalR Self Host Step 2: Create an UnityHubActivator class. This class implements the IHubActivator interface. The Unity container is used […]

SignalR Messaging with console server and client, web client, WPF client

The code in this post is a basic example of a SignalR messaging system. I wanted to create an example which works for 3 client types, WPF, Web and Console. It is built upon the hello worlds provided on the asp.net/signalR website. The hub was then changed to add 3 methods, a simple method with […]

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