Beispiel #1
0
        protected EntityDataStore(
            IAzureTokenProvider azureTokenProvider,
            EntityDataStoreOptions entityDataStoreOptions)
        {
            if (azureTokenProvider == null)
            {
                throw new ArgumentNullException(nameof(azureTokenProvider));
            }

            _azureTokenProvider =
                azureTokenProvider;

            if (entityDataStoreOptions == null)
            {
                throw new ArgumentNullException(nameof(entityDataStoreOptions));
            }

            if (entityDataStoreOptions.ConnectionString == null)
            {
                throw new ArgumentNullException(nameof(entityDataStoreOptions.ConnectionString));
            }

            _entityDataStoreOptions =
                entityDataStoreOptions;
        }
Beispiel #2
0
 public ToDoCommentEntityDataStore(
     EntityDataStoreOptions entityDataStoreOptions) : base("todos", entityDataStoreOptions)
 {
 }
Beispiel #3
0
 public ToDoEntityDataStore(
     IAzureTokenProvider azureTokenProvider,
     EntityDataStoreOptions entityDataStoreOptions) : base(azureTokenProvider, entityDataStoreOptions)
 {
 }