Response<T>
Represents a result of Azure operation.
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace Azure
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(new byte[] {
0,
1
})]
[DebuggerTypeProxy(typeof(ResponseDebugView<>))]
public abstract class Response<[System.Runtime.CompilerServices.Nullable(2)] T> : NullableResponse<T>
{
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool HasValue {
get {
return true;
}
}
public override T Value => Value;
public static implicit operator T(Response<T> response)
{
if (response == null)
throw new ArgumentNullException("response", $"""{typeof(T)}""{typeof(T)}""{typeof(T)}""");
return response.Value;
}
[System.Runtime.CompilerServices.NullableContext(2)]
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object obj)
{
return base.Equals(obj);
}
[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode()
{
return base.GetHashCode();
}
}
}