/// <summary>
 /// Initializes a new instance of the StreamInputProperties class with
 /// required arguments.
 /// </summary>
 public StreamInputProperties(StreamInputDataSource dataSource, Serialization serialization)
     : this()
 {
     if (dataSource == null)
     {
         throw new ArgumentNullException("dataSource");
     }
     if (serialization == null)
     {
         throw new ArgumentNullException("serialization");
     }
     this.DataSource = dataSource;
     this.Serialization = serialization;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the StreamInputProperties class.
 /// </summary>
 /// <param name="serialization">Describes how data from an input is
 /// serialized or how data is serialized when written to an output.
 /// Required on PUT (CreateOrReplace) requests.</param>
 /// <param name="diagnostics">Describes conditions applicable to the
 /// Input, Output, or the job overall, that warrant customer
 /// attention.</param>
 /// <param name="etag">The current entity tag for the input. This is an
 /// opaque string. You can use it to detect whether the resource has
 /// changed between requests. You can also use it in the If-Match or
 /// If-None-Match headers for write operations for optimistic
 /// concurrency.</param>
 /// <param name="datasource">Describes an input data source that
 /// contains stream data. Required on PUT (CreateOrReplace)
 /// requests.</param>
 public StreamInputProperties(Serialization serialization = default(Serialization), Diagnostics diagnostics = default(Diagnostics), string etag = default(string), StreamInputDataSource datasource = default(StreamInputDataSource))
     : base(serialization, diagnostics, etag)
 {
     Datasource = datasource;
     CustomInit();
 }