Beispiel #1
0
        /// <summary>
        /// Adds the <see cref="CloudBlobClient"/> instance to the sink.
        /// </summary>
        /// <param name="sink"><see cref="ISchemaSink"/> instance.</param>
        /// <param name="container">Blob container name.</param>
        /// <returns>Returns the <see cref="ISchemaSink"/> instance.</returns>
        public static ISchemaSink WithContainer(this ISchemaSink sink, string container)
        {
            sink.ThrowIfNullOrDefault();
            container.ThrowIfNullOrWhiteSpace();

            var instance = (sink as BlobStorageSchemaSink).ThrowIfNullOrDefault();

            instance.WithContainer(container);

            return(instance);
        }
Beispiel #2
0
        /// <summary>
        /// Adds the <see cref="CloudBlobClient"/> instance to the sink.
        /// </summary>
        /// <param name="sink"><see cref="ISchemaSink"/> instance.</param>
        /// <param name="blobClient"><see cref="CloudBlobClient"/> instance.</param>
        /// <returns>Returns the <see cref="ISchemaSink"/> instance.</returns>
        public static ISchemaSink WithBlobClient(this ISchemaSink sink, CloudBlobClient blobClient)
        {
            sink.ThrowIfNullOrDefault();
            blobClient.ThrowIfNullOrDefault();

            var instance = (sink as BlobStorageSchemaSink).ThrowIfNullOrDefault();

            instance.WithBlobClient(blobClient);

            return(instance);
        }
        /// <inheritdoc />
        public ISchemaConsumer WithSink(ISchemaSink sink)
        {
            this.Sink = sink.ThrowIfNullOrDefault();

            return(this);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="SchemaConsumer"/> class.
 /// </summary>
 /// <param name="sink"><see cref="ISchemaSink"/> instance.</param>
 public SchemaConsumer(ISchemaSink sink)
 {
     this.Sink = sink.ThrowIfNullOrDefault();
 }