From d7d6c3ed9f95a5714b896ee7203ef941d176217a Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Wed, 22 Feb 2023 11:20:20 -0800 Subject: [PATCH] Rename type --- ...t.Azure.WebJobs.Extensions.EventHubs.netstandard2.0.cs | 8 ++++---- ...sWebJobsExtensions.cs => EventHubWebJobsExtensions.cs} | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/{EventHubsWebJobsExtensions.cs => EventHubWebJobsExtensions.cs} (96%) diff --git a/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/api/Microsoft.Azure.WebJobs.Extensions.EventHubs.netstandard2.0.cs b/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/api/Microsoft.Azure.WebJobs.Extensions.EventHubs.netstandard2.0.cs index 560d6ef6fb223..dd8b508f6e4c3 100644 --- a/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/api/Microsoft.Azure.WebJobs.Extensions.EventHubs.netstandard2.0.cs +++ b/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/api/Microsoft.Azure.WebJobs.Extensions.EventHubs.netstandard2.0.cs @@ -8,10 +8,6 @@ public EventHubAttribute(string eventHubName) { } public string Connection { get { throw null; } set { } } public string EventHubName { get { throw null; } } } - public static partial class EventHubsWebJobsExtensions - { - public static System.Threading.Tasks.Task AddAsync(this Microsoft.Azure.WebJobs.IAsyncCollector instance, Azure.Messaging.EventHubs.EventData eventData, string partitionKey, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } [Microsoft.Azure.WebJobs.Description.BindingAttribute] [System.AttributeUsageAttribute(System.AttributeTargets.Parameter)] public sealed partial class EventHubTriggerAttribute : System.Attribute @@ -21,6 +17,10 @@ public EventHubTriggerAttribute(string eventHubName) { } public string ConsumerGroup { get { throw null; } set { } } public string EventHubName { get { throw null; } } } + public static partial class EventHubWebJobsExtensions + { + public static System.Threading.Tasks.Task AddAsync(this Microsoft.Azure.WebJobs.IAsyncCollector instance, Azure.Messaging.EventHubs.EventData eventData, string partitionKey, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } } namespace Microsoft.Azure.WebJobs.EventHubs { diff --git a/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/EventHubsWebJobsExtensions.cs b/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/EventHubWebJobsExtensions.cs similarity index 96% rename from sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/EventHubsWebJobsExtensions.cs rename to sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/EventHubWebJobsExtensions.cs index f20c78b7e1a8e..76f09a5fa7f12 100644 --- a/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/EventHubsWebJobsExtensions.cs +++ b/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/EventHubWebJobsExtensions.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.WebJobs { - public static class EventHubsWebJobsExtensions + public static class EventHubWebJobsExtensions { /// /// Add an event to be published using the provided for partition assignment.