'Avro ICallback is obsolete but what is the replacement?
Avro ICallback<T>
is marked as obsolete:
using System;
namespace Avro.IO
{
/// <summary>
/// Obsolete - This will be removed from the public API in a future version.
/// </summary>
/// <typeparam name="T"></typeparam>
[Obsolete("This will be removed from the public API in a future version.")]
public interface ICallback<in T>
{
/// <summary>
/// Receives a callback result.
/// </summary>
/// <param name="result">Result returned in the callback.</param>
void HandleResult(T result);
/// <summary>
/// Receives an error.
/// </summary>
/// <param name="exception">Error returned in the callback.</param>
void HandleException(Exception exception);
}
}
But nobody has mentioned what the replacement is! So what other interface do I have to use to write the correct code?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|