Beispiel #1
0
        /// <summary>
        /// Creates and adds an new annotation partition.
        /// </summary>
        /// <param name="storeName">The name of the annotation store.</param>
        /// <param name="storePath">The path of the annotation store.</param>
        /// <param name="definition">The annotated event definition to use when creating new annoted events in the newly created annotation partition.</param>
        /// <param name="partitionName">The partition name. Default is null.</param>
        /// <returns>The newly added annotation partition.</returns>
        public AnnotationPartition CreateAnnotationPartition(string storeName, string storePath, AnnotatedEventDefinition definition, string partitionName = null)
        {
            var partition = AnnotationPartition.Create(this, storeName, storePath, definition, partitionName);

            this.AddPartition(partition);
            return(partition);
        }
Beispiel #2
0
        /// <summary>
        /// Creates and adds an annotation partition from an existing annotation store.
        /// </summary>
        /// <param name="storeName">The name of the annotation store.</param>
        /// <param name="storePath">The path of the annotation store.</param>
        /// <param name="partitionName">The partition name. Default is null.</param>
        /// <returns>The newly added annotation partition.</returns>
        public AnnotationPartition AddAnnotationPartition(string storeName, string storePath, string partitionName = null)
        {
            var partition = AnnotationPartition.CreateFromExistingStore(this, storeName, storePath, partitionName);

            this.AddPartition(partition);
            return(partition);
        }