This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Validation.Tests | |
{ | |
using System; | |
using System.Collections.Generic; | |
using Xunit; | |
public class User | |
{ | |
public string Name { get; set; } | |
public int Age { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --- outside of the user controls, e.g. on the container page --- | |
$(function() { | |
window.hubReady = $.connection.hub.start(); | |
}); | |
// --- in your other pages --- | |
$(function() { | |
window.hubReady.done(function() { | |
// call hub method | |
}); |