Ejemplo n.º 1
0
        internal ConflictsInlineCore(ConflictsCore conflicts)
        {
            if (conflicts == null)
            {
                throw new ArgumentNullException(nameof(conflicts));
            }

            this.conflicts = conflicts;
        }
Ejemplo n.º 2
0
        internal ContainerCore(
            CosmosClientContext clientContext,
            DatabaseCore database,
            string containerId)
        {
            this.Id            = containerId;
            this.ClientContext = clientContext;
            this.LinkUri       = clientContext.CreateLink(
                parentLink: database.LinkUri.OriginalString,
                uriPathSegment: Paths.CollectionsPathSegment,
                id: containerId);

            this.Database  = database;
            this.conflicts = new ConflictsCore(this.ClientContext, this);
            this.scripts   = new ScriptsCore(this, this.ClientContext);
            this.cachedUriSegmentWithoutId = this.GetResourceSegmentUriWithoutId();
            this.queryClient = queryClient ?? new CosmosQueryClientCore(this.ClientContext, this);
        }