示例#1
0
 /// <summary>
 /// The most detailed method with full fragmentation
 /// </summary>
 /// <param name="factory">Factory reference</param>
 /// <param name="endpointAddress">Endpoint address</param>
 /// <param name="entityPath">Entity path</param>
 /// <param name="sharedAccessKeyName">Shared access key name</param>
 /// <param name="sharedAccessKey">Shared access key value</param>
 /// <returns></returns>
 public static IMessagePublisher AzureEventHubPublisher(this IMessagingFactory factory, Uri endpointAddress, string entityPath, string sharedAccessKeyName, string sharedAccessKey)
 {
     return(EHP.Create(endpointAddress, entityPath, sharedAccessKeyName, sharedAccessKey));
 }
示例#2
0
 /// <summary>
 /// Creates Azure Event Hub publisher by namespace connection string and hub path
 /// </summary>
 /// <param name="factory">Factory reference</param>
 /// <param name="connectionString">Connection string</param>
 /// <param name="hubPath">Hub path (name)</param>
 /// <returns>Message publisher</returns>
 public static IMessagePublisher AzureEventHubPublisher(this IMessagingFactory factory, string connectionString, string hubPath)
 {
     return(EHP.Create(connectionString, hubPath));
 }