public void Configure(IServiceProvider serviceProvider, IStreamGeneratorConfig generatorConfig) { var cfg = generatorConfig as SimpleGeneratorConfig; if (cfg == null) { throw new ArgumentOutOfRangeException("generatorConfig"); } config = cfg; sequenceId = 0; streamGuid = Guid.NewGuid(); }
public void Configure(IServiceProvider serviceProvider, IStreamGeneratorConfig generatorConfig) { var cfg = generatorConfig as SimpleGeneratorConfig; if (cfg == null) { throw new ArgumentOutOfRangeException("generatorConfig"); } config = cfg; sequenceId = 0; streamGuid = Guid.NewGuid(); }