Self Hosting a secured ASP.Net Web API

Thursday, March 3, 2016

  Recently I had to build a self-hosted service that needs also to be contacted via SSL. I’ve found a few guides on the internet however they weren’t updated to the Owin.SelfHost so I’ve decided to write one of my own.   So, Here it is. 1, On your service you need to have a startup class, the same as you might have on your ASP.Net application.  There is nothing different between a regular and secured service. public class Startup { // This code configures Web API. The Startup class is specified as a type // parameter in the WebApp.Start method. public void Configuration(IAppBuilder appBuilder) { // Configure Web API for self-host. HttpConfiguration config =...
no comments

Demos and Slide deck from Sela Open house

Monday, July 29, 2013

Today We held an open house at Sela when I presented SignalR  I want to thank all attendees who participate in that session.   You can download the demo code presented in that session here   You can watch the slide deck here below.   Realtime web open house from ranwahle
no comments

Demo code and Slide decks from my signalR session

Tuesday, May 7, 2013

Today I gave my session about signalR at Sela Developer Practice. It went great and I wish to thank all attendees.  Furthermore,I wish to thank everyone who helped me through the day with my ill baby who I had to bring to the conference. Here are the demos, including some additional demos we didn’t go through. Here, you can see the slides from today’s presentation
no comments

Real-time web experience with signalR Slides and demos

Wednesday, March 20, 2013

Yesterday, I had a great time speaking about signalR in front of WDCIL audience. We had some problems at the beginning when we couldn’t duplicate my screen display. Fortunately Yaniv Rodensky came to the rescue with his own laptop,and surprisingly all demos worked well. I want to thank all attendees who came to hear me speak.   Below, you can see the slides from my presentation, and download demos Here.   Realtime web experience with...
no comments

Logging with SignalR

Tuesday, February 26, 2013

Logging with SignalR Debugging your signalR application on both client and server can consume time. To save time we might go to Fiddler,  or use the Network tab on our browser’s developer tools. signalR offers simple logging mechanism for javascript clients. in this post I’ll briefly show how to enable this log, what it writes when enable, and how to add some custom log records.   Enable logging To enable logging you simply need to add the following...
no comments

First signalR eBook by Jose M. Aguilar

Tuesday, February 19, 2013

First signalR eBook was published yesterday. The book was authored by Jose M. Aguilar, Microsoft ASP.NET MVP.   The book is free of charge along with code samples.   Click here to download.
one comment

SignalR Protocol

Sunday, February 17, 2013

SignalR Protocol   After showing how to get started with SignalR, how to use it with .Net client and how to self host it, I wish to show what SignalR does on the network level. In this post I will review the protocol SignalR implements and see what data is sent at the various stages.   Negotiation phase: One of SignalR best qualities is its ability to support various communication techniques without its API user have to change...
one comment

About embedded & external resource files

Tuesday, February 5, 2013

About embedded & external resource files Recently I was asked by a colleague of mine to help him with a problem. He had tried numerous times to work with resource files on a web project and got many errors until he had moved the files build action from content to embedded resource.   What’s the difference? Embedded resources are files that are put inside the compiled assembly when compiling it. However, when a resource file build action is...
tags: ,

Self Hosting SignalR

Sunday, January 20, 2013

Self Hosting SignalR SignalR, as shown in the earlier posts, can be hosted within a regular ASP.NET application (in other words, on IIS), but can also be self-hosted. You may want to do so if you don’t want the SignalR hosting machine to have IIS installed. In this post I’ll show a simple way of doing so with a console application. It won’t be much different with windows service and I’ll explain how to do it there as well.   ...

Using SignalR with .Net client

Saturday, December 29, 2012

Using SignalR with .Net client   In my previous post I demonstrated how to use SignalR with javascript client. After this post, I got an email from my extremely talented colleague Bnaya Eshet  asking if there’s a way to to SignalR with .Net client. I said “yes” of course so now I want to demonstrate how to do it. The server side code is the same as in my previous post, this is just another client...