SignalR plus NancyFX : A simple but well worked example - signalr

There are a few examples of NancyFX being integrated with SignalR, for example
Signalr & Nancyfx integration
Since I am just starting out I want a simple, well worked canonical example that I can work from. A nancy version of the chat example from Microsoft would do fine.
Tutorial: Getting Started with SignalR (C#)
Thanks

I am going to answer my own question.
I put together a little canonical-chat example based on the Microsoft walkthrough. You can get it from GitHub:
Nancy + SignalR - Canonical Chat
Update
This example has been updated to use the latest SignalR and NancyFX Assemblies as of February 2015.
ScreenShot

Related

How to use SignalR real-time chart in ASP.Net WebForms

I want to use SignalR in my project for real time chart updates.
My project is developed in WebForms with VB.Net Language.
I searched for for 3,4 days but all I found were MVC examples. Can anyone suggest a solution?
Please notice me. Thank you
You can use SignalR with webforms, see this question for example :
Can SignalR be used with asp.net WebForms?
However, it will require to make your current webforms project evolve in several ways, which can be a loss of time and a risk if it's an old project hard to maintain.
An alternative could be to create a completely new web project for the backend with everything required for a clean support of SignalR server, and to consume it in JS (using jquery.signalr, etc) from your currently existing webforms pages on client side.
The ability to achieve this kind of thing will depend of what version of .Net and SignalR you could/must support.

How can I view IBM Watson Assistant conversation logs in my ASP.net application?

I understand that there is an API... but how do I implement it? I have a working node.js application but now I have to bring it over to asp.net. I think working from scratch on my asp.net web app is the best option now but I do not know how to start.
I agree that knowing the exact issues you run into will help us give a better answer, but to get you started here is the .net sdk
https://github.com/watson-developer-cloud/dotnet-standard-sdk
and the standard api reference with examples
https://console.bluemix.net/apidocs/assistant

How to install socket.io on a ASP.NET project on WebMatrix?

I just started working on WebMatrix 2 recently, I've been reading that socket.io is a great tool to send and receive events in my application.
The thing is I'm completely new to socket.io and I don't know where can I install it, I tried NugGet but I can't find a helper that offers the support for socket.io. I read that I should create a project from the Node.js templates but I want to work on ASP.NET and I'm not familiar with Node.js.
How can I install socket.io into my WebMatrix? What are the guidelines to use socket.io in a ASP.NET project?
Any help will be appreciated. Thanks in advance.
You're a little turned around :) Socket.io is a NPM module that's used with nodejs. This is different from writing an ASP.NET Web Pages site. If you want to use socket.io, you need to be using node. The Node Starter site in WebMatrix has an example of using socket.io to do a basic chat app. To see how to use this:
http://www.youtube.com/watch?v=aUT0ez6B-5w
If you would like to use ASP.NET, you should be using SignalR. Here's a good tutorial to get you started:
http://www.mikesdotnetting.com/Article/206/SignalR-And-Knockout-In-ASP.NET-Web-Pages-Using-WebMatrix
You can also check out this video:
http://channel9.msdn.com/Shows/Web+Camps+TV/WebcampsTV-Justin-and-Vishal-Build-an-Image-sharing-Site-with-Windows-Azure-Web-Sites
Happy Coding!

Framework used to develop the new windows azure management portal?

Does anyone know what framework microsoft used to develop the metro like web management portal on windows azure. If so. Is it available to developers?
I posed the same question and got a lot of hate for it. The winning answer is the Metro UI Pack. It does a lot of what they do in Azure, but you'd have to implement the rest yourself.
KnockOut Js
Require Js
TypeScript
Less
ASP.NET
D3 Js
Web sockets
Some links for more information
Steve Sanderson - Architecting large Single Page Applications with Knockout.js
Under the hood of the new Azure Portal
From the ground up: Building the Microsoft Azure Preview Portal
Framework used to develop the new windows azure management portal?
Credit Quora
The CSS is probably custom, but the portal uses a few open source libraries for the javascript part:
jquery-1.7.1
jquery-ui
jsObservable
JsRender
JsViews
jquery.event.drag
You can take a look at this codepen: https://codepen.io/utillity/project/editor/ArjgLa
It's basically a cascade of flexboxes.
Microsoft probably did not use this framework, but you might try jq-metro
If you are looking for angular component library for Metro, it is here

OpenID authentication in ASP.NET?

I am starting to build a new web application that will require user accounts. Now that I have an OpenID that I am using for this site I thought it would be cool if I could use OpenID for authentication in my application. Are there any good tutorials on how to integrate OpenID with an ASP.NET site?
See Scott Hanselman's post on using DotNetOpenID in ASP.NET. Andrew Arnott's blog is full of samples on using DotNetOpenID with ASP.NET, including ASP.NET MVC.
I recently hooked up DotNetOpenID for the Subtext 2.0 release. It went really smoothly - the code samples included with the DotNetOpenID download are pretty helpful. The one thing I'd recommend is that you just use the library and avoid the ASP.NET control. It uses table based layout (hardcoded) and is pretty difficult to restyle.
DotNetOpenId available at http://code.google.com/p/dotnetopenid
Are there any good tutorials on how to integrate OpenId with an ASP.NET site?
Andrew Arnott's post titled "How to add OpenID to your ASP.NET web site (in C# or VB.NET)"
I'm considering the same thing. On the Open ID site, there's a link 'For Developers' # http://openid.net/developers/ and from there is a link to 'Open Libraries' # http://wiki.openid.net/Libraries and finally from there is one called 'DotNetOpenID' # http://dotnetopenid.googlecode.com/ which is probably what you're looking for.
Good luck.
DotNetNuke may not be a good current example. When we did the integration, DotNetOpenID was not currently supporting OpenID 2.0 spec. I hacked together a fork to get the 2.0 support and have not had a chance to rip it back out for the official DotNetOpenID 2.0 release.
You should check out the DotNetNuke codebase as well, they have been using OpenID for the last several revisions, and you'll find working code for implementing it there.

Resources