MassTransit / Automatonymous

A state machine library for .Net - 100% code - No doodleware
Apache License 2.0
736 stars 117 forks source link

MassTransit.Automatonymous.AutofacIntegration documentation #49

Closed ComputerHippie closed 5 years ago

ComputerHippie commented 6 years ago

Hi,

Can somebody provide any documentation and/or examples about MassTransit.Automatonymous.AutofacIntegration?

Most actual questions for me:

Thanks

phatboyg commented 6 years ago

The lifetime scope should already be added by the Autofac saga repository, so it's already there. The activity factory uses that lifetime scope to resolve any state machine activities that are required.

This unit tests shows how an activity is registered, and the state machine saga added to the receive endpoint.

https://github.com/MassTransit/MassTransit/blob/master/src/Containers/MassTransit.Containers.Tests/AutofacStateMachineSaga_Specs.cs#L52

phatboyg commented 5 years ago

The latest Autofac (and other container) integration support, including registration, takes care of all this stuff now so I'm closing this issue.

http://masstransit-project.com/MassTransit/usage/containers/autofac.html