From 545b3edce77f2a368ebfbd57463ad3a4b4664229 Mon Sep 17 00:00:00 2001 From: Ian Cooper Date: Wed, 6 Nov 2024 21:53:35 +0000 Subject: [PATCH] chore: remove unused MessageTelemetry.cs --- src/Paramore.Brighter/MessageTelemetry.cs | 81 ----------------------- 1 file changed, 81 deletions(-) delete mode 100644 src/Paramore.Brighter/MessageTelemetry.cs diff --git a/src/Paramore.Brighter/MessageTelemetry.cs b/src/Paramore.Brighter/MessageTelemetry.cs deleted file mode 100644 index c0201bbe7..000000000 --- a/src/Paramore.Brighter/MessageTelemetry.cs +++ /dev/null @@ -1,81 +0,0 @@ -#region Licence -/* The MIT License (MIT) -Copyright © 2024 Ian Cooper - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the “Software”), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. */ - -#endregion - -namespace Paramore.Brighter -{ - public class MessageTelemetry - { - public const string EventIdHeaderName = "cloudevents.event_id"; - public const string SourceHeaderName = "cloudevents.event_source"; - public const string EventTypeHeaderName = "cloudevents.event_type"; - public const string SubjectHeaderName = "cloudevents.event_subject"; - - /// - /// The event_id uniquely identifies the event. - /// - /// - /// 123e4567-e89b-12d3-a456-426614174000; 0001 - /// - public string EventId { get;} - - /// - /// The source identifies the context in which an event happened. - /// - /// - /// https://github.com/cloudevents; /cloudevents/spec/pull/123; my-service - /// - public string Source { get;} - - /// - /// The event_type contains a value describing the type of event related to the originating occurrence. - /// - /// - /// com.github.pull_request.opened; com.example.object.deleted.v2 - /// - public string EventType { get;} - - /// - /// The subject of the event in the context of the event producer (identified by source). - /// - /// - /// mynewfile.jpg - /// - public string? Subject { get;} - - /// - /// Telemetry properties - /// - /// The event_id uniquely identifies the event. - /// The source identifies the context in which an event happened. - /// The event_type contains a value describing the type of event related to the originating occurrence. - /// The subject of the event in the context of the event producer (identified by source). - public MessageTelemetry(string eventId, string source, string eventType, string? subject = null) - { - EventId = eventId; - Source = source; - EventType = eventType; - Subject = subject; - } - } -}