public MyCosmosDB(string endPointUri, string primaryKey, ICosmosDbRepositoryLogger log = null) : base(log)
        {
            Logger = log;
            var desc = new MyCosmosDbDescriptor();

            InitAsync(endPointUri, primaryKey, desc).GetAwaiter().GetResult();
            MainContainer = Containers.FirstOrDefault();
        }
 protected BaseCosmosDBRepository(Container cosmosContainer, ICosmosDbRepositoryLogger log)
 {
     Logger    = log;
     container = cosmosContainer ?? throw new ArgumentNullException(nameof(cosmosContainer));
 }
Ejemplo n.º 3
0
 public BaseCosmosDB(ICosmosDbRepositoryLogger log = null)
 {
     Logger = log;
 }
 public MyFamilyRepository(Container c, ICosmosDbRepositoryLogger log) : base(c, log)
 {
 }