예제 #1
0
 /// <summary>
 ///   Builds a partition receiver instance using the provided options.
 /// </summary>
 ///
 /// <param name="connectionType">The type of connection being used for communication with the EventHubs servcie.</param>
 /// <param name="eventHubPath">The path to a specific Event Hub.</param>
 /// <param name="partitionId">The identifier of the partition to receive from.</param>
 /// <param name="options">The set of options to use for the receiver.</param>
 ///
 /// <returns>The fully constructed receiver.</returns>
 ///
 protected virtual PartitionReceiver BuildPartitionReceiver(ConnectionType connectionType,
                                                            string eventHubPath,
                                                            string partitionId,
                                                            ReceiverOptions options) =>
 new PartitionReceiver(connectionType, eventHubPath, partitionId, options);