/// <summary> /// Adds SagaStateMachines to the registry, using the factory method, and updates the registrar prior to registering so that the default /// saga registrar isn't notified. /// </summary> /// <param name="configurator"></param> /// <param name="types">The state machine types to add</param> public static void AddSagaStateMachines(this IServiceCollectionConfigurator configurator, params Type[] types) { var registrar = new DependencyInjectionSagaStateMachineRegistrar(configurator.Collection); configurator.AddSagaStateMachines(registrar, types); }