/// <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; }
public IAsyncCollector <Message> Convert(EdgeHubAttribute attribute) { return(new EdgeHubAsyncCollector(attribute)); }