Ejemplo n.º 1
0
 protected BaseDataStore(ICosmosDbClientFactory factory, StorageConfiguration configuration, IMapper mapper)
 {
     Mapper         = mapper;
     Configuration  = configuration;
     Client         = factory.CreateClient();
     CollectionName = typeof(TModel).Name;
 }
Ejemplo n.º 2
0
        public CosmosDbRepository(ICosmosDbClientFactory cosmosDbClientFactory,
                                  CosmosDbSettings cosmosDbSettings)
        {
            _cosmosDbClientFactory = cosmosDbClientFactory;
            _cosmosDbSettings      = cosmosDbSettings;

            _container = _cosmosDbClientFactory.CosmosClient
                         .GetContainer(_cosmosDbSettings.DatabaseName,
                                       ContainerName);
        }
Ejemplo n.º 3
0
        protected CosmosDbRepository(ICosmosDbClientFactory cosmosDbClientFactory)
        {
            if (cosmosDbClientFactory == null)
            {
                throw new ArgumentException("cosmosDbClientFactory");
            }
            if (string.IsNullOrWhiteSpace(CollectionName))
            {
                throw new ArgumentException("collectionName");
            }

            container = cosmosDbClientFactory.GetClient(CollectionName).GetContainer(cosmosDbClientFactory.Database, CollectionName);
        }
Ejemplo n.º 4
0
 public CosmosDbRepository(ICosmosDbClientFactory cosmosDbClientFactory)
 {
     _cosmosDbClientFactory = cosmosDbClientFactory;
 }
Ejemplo n.º 5
0
        //public IdentifiedVisitorRepo(ICosmosDbClientFactory cosmosDbClientFactory) : base(cosmosDbClientFactory) { }

        public IdentifiedVisitorGroupRepo(ICosmosDbClientFactory cosmosDbClientFactory) : base(cosmosDbClientFactory)
        {
        }
Ejemplo n.º 6
0
 protected CosmosDbRepository(ICosmosDbClientFactory cosmosDbClientFactory)
 {
     _cosmosDbClientFactory = cosmosDbClientFactory;
 }
Ejemplo n.º 7
0
 public SettingsDataStore(ICosmosDbClientFactory factory, StorageConfiguration configuration, IMapper mapper)
     : base(factory, configuration, mapper)
 {
 }
 public CognitiveFileRepository(ICosmosDbClientFactory factory) : base(factory)
 {
 }
Ejemplo n.º 9
0
 public CrowdDemographicsRepository(ICosmosDbClientFactory cosmosDbClientFactory) : base(cosmosDbClientFactory)
 {
 }
Ejemplo n.º 10
0
 public TodoItemRepository(ICosmosDbClientFactory factory) : base(factory)
 {
 }
 public FormRecognizerCosmosDbRepository(ICosmosDbClientFactory cosmosDbClientFactory)
     : base(cosmosDbClientFactory)
 {
 }
 public CosmosDBSessionRepository(ICosmosDbClientFactory factory) : base(factory)
 {
     _cosmosDbClientFactory = factory;
 }
Ejemplo n.º 13
0
 public PlotPointItemRepository(ICosmosDbClientFactory cosmosDbClientFactory) : base(cosmosDbClientFactory)
 {
 }
Ejemplo n.º 14
0
 public StorageBootstrapper(ICosmosDbClientFactory factory, StorageConfiguration configuration)
 {
     _client        = factory.CreateClient();
     _configuration = configuration;
 }
Ejemplo n.º 15
0
 public StudentRepository(ICosmosDbClientFactory factory) : base(factory)
 {
 }
Ejemplo n.º 16
0
 public AgenteRepository(ICosmosDbClientFactory factory) : base(factory)
 {
 }
Ejemplo n.º 17
0
 public TutorLearningProfileRepository(ICosmosDbClientFactory cosmosDbClientFactory,
                                       CosmosDbSettings cosmosDbSettings)
     : base(cosmosDbClientFactory, cosmosDbSettings)
 {
 }
 public VisitorsRepository(ICosmosDbClientFactory cosmosDbClientFactory) : base(cosmosDbClientFactory)
 {
 }
Ejemplo n.º 19
0
 public PessoaRepository(ICosmosDbClientFactory factory, IMapper mapper) : base(factory)
 {
     _mapper = mapper;
 }
Ejemplo n.º 20
0
 public CosmosDbRepository(ICosmosDbClientFactory factory)
 {
     _factory = factory;
 }
Ejemplo n.º 21
0
 public CamFrameAnalysisRepository(ICosmosDbClientFactory cosmosDbClientFactory) : base(cosmosDbClientFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyValueMapperRepository"/> class.
 /// </summary>
 /// <param name="factory">the cosmos db factory</param>
 /// <param name="config">the config</param>
 public KeyValueMapperRepository(ICosmosDbClientFactory factory, IConfiguration config)
     : base(factory)
 {
     this.config         = config;
     this.collectionName = this.config["CosmosDb:MetadataCollectionName"];
 }
Ejemplo n.º 23
0
 public UserAccountRepository(ICosmosDbClientFactory factory) : base(factory)
 {
 }
 public CosmosDBUserRepository(ICosmosDbClientFactory factory) : base(factory)
 {
     _cosmosDbClientFactory = factory;
 }
Ejemplo n.º 25
0
 public UserItemRepository(ICosmosDbClientFactory cosmosDbClientFactory) : base(cosmosDbClientFactory)
 {
 }
Ejemplo n.º 26
0
 public TemplateCosmosRepository(ICosmosDbClientFactory factory) : base(factory)
 {
 }
Ejemplo n.º 27
0
 public BlogRepository(ICosmosDbClientFactory factory) : base(factory)
 {
 }
 public ChatMessageRepository(ICosmosDbClientFactory cosmosDbClientFactory,
                              CosmosDbSettings cosmosDbSettings)
     : base(cosmosDbClientFactory, cosmosDbSettings)
 {
 }
Ejemplo n.º 29
0
 public MaskAnalysisRepository(ICosmosDbClientFactory cosmosDbClientFactory) : base(cosmosDbClientFactory)
 {
 }
Ejemplo n.º 30
0
 public NotificationRecordDataStore(ICosmosDbClientFactory factory, StorageConfiguration configuration, IMapper mapper)
     : base(factory, configuration, mapper)
 {
 }