public static IEventFlowOptions AddSagas(
            this IEventFlowOptions eventFlowOptions,
            Assembly fromAssembly,
            Predicate <Type> predicate = null)
        {
            predicate = predicate ?? (t => true);
            var sagaTypes = fromAssembly
                            .GetTypes()
                            .Where(t => !t.GetTypeInfo().IsAbstract&& t.IsAssignableTo <ISaga>())
                            .Where(t => predicate(t));

            return(eventFlowOptions.AddSagas(sagaTypes));
        }
 public static IEventFlowOptions AddSagas(
     this IEventFlowOptions eventFlowOptions,
     params Type[] sagaTypes)
 {
     return(eventFlowOptions.AddSagas(sagaTypes));
 }