Skip to content
Browse files

Merge pull request #2 from vantreeseba/master

Actually added README
  • Loading branch information...
2 parents 5ff765c + 140b64e commit 84dad685febb63465b29ec3718b5da426cd0b8f9 @jeffdoolittle committed Aug 8, 2012
Showing with 33 additions and 33 deletions.
  1. +33 −0 README.md
  2. 0 SignalR.StructureMap/README
  3. +0 −33 SignalR.StructureMap/README.md
View
33 README.md
@@ -0,0 +1,33 @@
+#SignalR.StructureMap
+
+---
+
+Install it from the nuget package.
+Register the Resolver with structuremap.
+
+
+###Register the resolver directly like
+
+ ObjectFactory.Initialize(cfg => {
+ cfg.For<IDependencyResolver>().Singleton().Add<StructureMapDependencyResolver>();
+ });
+
+###OR Build a registry like
+
+ public class SignalRRegistry : Registry
+ {
+ public SignalRRegistry()
+ {
+ For<IDependencyResolver>().Singleton().Add<StructureMapDependencyResolver>();
+ }
+
+ public void Configure()
+ {
+ GlobalHost.DependencyResolver = ObjectFactory.GetInstance<IDependencyResolver>();
+ RouteTable.Routes.MapHubs();
+ }
+ }
+
+Just make sure that the configure call comes in your application_start or where you call that in asp.net mvc, or it will explode.
+This has been tested and known working in fubumvc, as long as you call the configure after fubu bootstraps.
+
View
0 SignalR.StructureMap/README
No changes.
View
33 SignalR.StructureMap/README.md
@@ -1,33 +0,0 @@
-#SignalR.StructureMap
-
----
-
-Install it from the nuget package.
-Register the Resolver with structuremap.
-
-
-###Register the resolver directly like
-
- ObjectFactory.Initialize(cfg => {
- cfg.For<IDependencyResolver>().Singleton().Add<StructureMapDependencyResolver>();
- });
-
-###OR Build a registry like
-
- public class SignalRRegistry : Registry
- {
- public SignalRRegistry()
- {
- For<IDependencyResolver>().Singleton().Add<StructureMapDependencyResolver>();
- }
-
- public void Configure()
- {
- GlobalHost.DependencyResolver = ObjectFactory.GetInstance<IDependencyResolver>();
- RouteTable.Routes.MapHubs();
- }
- }
-
-Just make sure that the configure call comes in your application_start or where you call that in asp.net mvc, or it will explode.
-This has been tested and known working in fubumvc, as long as you call the configure after fubu bootstraps.
-

0 comments on commit 84dad68

Please sign in to comment.
Something went wrong with that request. Please try again.