Skip to content

Instantly share code, notes, and snippets.

@ldhertert
Created November 16, 2011 16:35
Show Gist options
  • Save ldhertert/1370573 to your computer and use it in GitHub Desktop.
Save ldhertert/1370573 to your computer and use it in GitHub Desktop.
SignalR Orchard
public IEnumerable<RouteDescriptor> GetRoutes()
{
var routeCollection = new RouteCollection();
routeCollection.MapConnection<MyConnection>("echo", "echo/{*operation}");
return GetConferenceRoutes()
.Concat(GetSchoolRoutes())
.Concat(GetTeamRoutes())
.Concat(GetTeamSeasonRoutes()
.Concat(GetGameRoutes())
.Concat(GetStateRoutes()))
.Concat(routeCollection.Select(r => new RouteDescriptor { Route = r }));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment