forked from cloudevents/sdk-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Put AvroEventFormatter in the right namespace
We still need it in CloudNative.CloudEvents for backward compatibility, but we can do that via derivation - which is pleasantly simple given that the only constructor is parameterless. Users should update to use the CloudNative.CloudEvents.Avro namespace at their earliest convenience. Fixes cloudevents#219. Signed-off-by: Jon Skeet <jonskeet@google.com>
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright 2021 Cloud Native Foundation. | ||
// Licensed under the Apache 2.0 license. | ||
// See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
|
||
namespace CloudNative.CloudEvents; | ||
|
||
/// <summary> | ||
/// Formatter that implements the Avro Event Format. | ||
/// </summary> | ||
/// <remarks> | ||
/// This class is the wrong namespace, and is only present for backward compatibility reasons. | ||
/// Please use CloudNative.CloudEvents.Avro.AvroEventFormatter instead | ||
/// (which this class derives from for convenience). | ||
/// </remarks> | ||
[Obsolete("This class is the wrong namespace, and is only present for backward compatibility reasons. Please use CloudNative.CloudEvents.Avro.AvroEventFormatter.")] | ||
public class AvroEventFormatter : Avro.AvroEventFormatter | ||
{ | ||
} |