public ElasticBaseStore(IElasticClient nestClient, ElasticOptions options) { if (nestClient == null) { throw new ArgumentException(nameof(nestClient)); } if (options == null) { throw new ArgumentException(nameof(options)); } if (string.IsNullOrEmpty(options.UsersIndex)) { throw new ArgumentException(nameof(options.UsersIndex)); } if (string.IsNullOrEmpty(options.RolesIndex)) { throw new ArgumentException(nameof(options.RolesIndex)); } if (string.IsNullOrEmpty(options.UserRolesIndex)) { throw new ArgumentException(nameof(options.UserRolesIndex)); } _nestClient = nestClient; Options = options; EnsureInitialization(); }
public ElasticUserStore(IElasticClient nestClient, ElasticOptions options) : base(nestClient, options) { }