| File: _generated\11\DeviceBoundSessionJsonContext.GetJsonTypeInfo.g.cs | Web Access |
| Project: src\aspnetcore\src\Security\Authentication\DeviceBoundSessions\src\Microsoft.AspNetCore.Authentication.DeviceBoundSessions.csproj (Microsoft.AspNetCore.Authentication.DeviceBoundSessions) |
// <auto-generated/> #nullable enable annotations #nullable disable warnings // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0612, CS0618 // Suppress warnings about [Experimental] member usage in generated code. #pragma warning disable ASP0031 namespace Microsoft.AspNetCore.Authentication.DeviceBoundSessions { internal sealed partial class DeviceBoundSessionJsonContext : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver { /// <inheritdoc/> public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) { Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); return typeInfo; } global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options) { if (type == typeof(bool)) { return Create_Boolean(options); } if (type == typeof(global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential)) { return Create_SessionCredential(options); } if (type == typeof(global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionInstruction)) { return Create_SessionInstruction(options); } if (type == typeof(global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScope)) { return Create_SessionScope(options); } if (type == typeof(global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule)) { return Create_SessionScopeRule(options); } if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>)) { return Create_ListSessionCredential(options); } if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>)) { return Create_ListSessionScopeRule(options); } if (type == typeof(global::System.Collections.Generic.List<string>)) { return Create_ListString(options); } if (type == typeof(string)) { return Create_String(options); } return null; } } }