You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/src/Azure.Extensions.AspNetCore.DataProtection.Keys.csproj
Copy file name to clipboardExpand all lines: sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/src/AzureDataProtectionKeyVaultKeyBuilderExtensions.cs
/// This type is a copy of https://github.com/dotnet/aspnetcore/blob/e1bf38ccaf2a98f95e48bf22b8b76d996a0c33ea/src/DataProtection/DataProtection/test/TypeForwardingActivatorTests.cs
16
+
/// with addition of AzureKeyVaultXmlDecryptor forwarding logic.
// It might seem a bit strange to throw an InvalidCastException explicitly rather than
106
+
// to let the CLR generate one, but searching through NetFX there is indeed precedent
107
+
// for this pattern when the caller knows ahead of time the operation will fail.
108
+
thrownewInvalidCastException($"The type '{implementationType.AssemblyQualifiedName}' is not assignable to '{expectedBaseType.AssemblyQualifiedName}'.");
109
+
}
110
+
111
+
// If no IServiceProvider was specified, prefer .ctor() [if it exists]
Copy file name to clipboardExpand all lines: sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/tests/Azure.Extensions.AspNetCore.DataProtection.Keys.Tests.csproj
0 commit comments