/// <summary> /// Initializes a new instance of the <see cref="SqlServerBuilderExtension"/> class. /// </summary> /// <param name="builder">The builder.</param> public SqlServerBuilderExtension(SagaMediatorBuilder builder) { this.builder = builder; }
/// <summary> /// Uses the internal DI container to configure all NSaga components /// </summary> /// <param name="assembliesToScan">List of assemblies to scan for registration</param> /// <returns>an instance of <see cref="SagaMediatorBuilder"/> that guides configuration</returns> public static SagaMediatorBuilder UseInternalContainer(params Assembly[] assembliesToScan) { var builder = new SagaMediatorBuilder(assembliesToScan); return(builder); }
/// <summary> /// Starts the fluent chain to configure <see cref="SqlSagaRepository"/> /// </summary> /// <param name="builder">The builder.</param> /// <returns></returns> public static SqlServerBuilderExtension UseSqlServer(this SagaMediatorBuilder builder) { return(new SqlServerBuilderExtension(builder)); }
/// <summary> /// Uses the internal DI container to configure all NSaga components /// </summary> /// <returns>an instance of <see cref="SagaMediatorBuilder"/> that guides configuration</returns> public static SagaMediatorBuilder UseInternalContainer() { var builder = new SagaMediatorBuilder(); return(builder); }