lethek / SignalR.Extras.Autofac

Adds support for per-request lifetime scopes for SignalR hub dependencies when using Autofac as your IoC container.
MIT License
10 stars 2 forks source link

Allow InstancePerRequest dependencies #2

Closed mattyway closed 8 years ago

mattyway commented 8 years ago

This pull request adds a tag that is used when creating the hub's lifetime scope. Dependencies can be registered using the InstancePerRequest method with the RequestLifetimeScopeTag property in the ScopeLifetimeTag class. It is backwards compatible with existing dependency registrations.

lethek commented 8 years ago

Great idea! Thanks for the pull request