Esempio n. 1
0
        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();
        }
Esempio n. 2
0
		public ElasticUserStore(IElasticClient nestClient, ElasticOptions options) : base(nestClient, options)
		{

		}