Пример #1
0
        public DatastoreService(CloudAuthenticator authenticator, DatastoreConfiguration configuration)
            : this(authenticator)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }

            Configuration = configuration;
        }
Пример #2
0
        public DatastoreService(CloudAuthenticator authenticator) : base(authenticator)
        {
            if (authenticator == null)
            {
                throw new ArgumentNullException(nameof(authenticator));
            }

            if (IndexContainer == null)
            {
                IndexContainer = new InMemoryIndexContainer();
            }

            Configuration = new DatastoreConfiguration(); // default config
        }