NimaAra / Easy.MessageHub

No need for .NET Events! A thread-safe, high performance & easy to use cross platform implementation of the Event Aggregator Pattern.
MIT License
258 stars 41 forks source link

Autofac working #14

Closed stephenburrows closed 5 years ago

stephenburrows commented 5 years ago

Class MessageHub contractor was private thus autofac could not create an instance set to public

NimaAra commented 5 years ago

This is by design. MessageHub is a singleton hence the private constructor.

You need to register MessageHub as an instance in AutoFac as explained HERE.