コード例 #1
0
 /// <summary>
 /// Create a sender around the given client.
 /// </summary>
 /// <param name="attribute">Attributes used by EdgeHub when receiving a message from function.</param>
 public EdgeHubAsyncCollector(EdgeHubAttribute attribute)
 {
     this.attribute = attribute;
     this.batchSize = attribute.BatchSize > 0 ? (attribute.BatchSize > MaxBatchSize ? MaxBatchSize : attribute.BatchSize) : DefaultBatchSize;
 }
コード例 #2
0
 public IAsyncCollector <Message> Convert(EdgeHubAttribute attribute)
 {
     return(new EdgeHubAsyncCollector(attribute));
 }