/* * Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) * See https://github.com/openiddict/openiddict-core for more information concerning * the license and the contributors participating to this project. */ using System.ComponentModel; using OpenIddict.Extensions; namespace OpenIddict.Client.SystemIntegration; /// /// Represents a protocol activation. /// [EditorBrowsable(EditorBrowsableState.Advanced)] public sealed class OpenIddictClientSystemIntegrationActivation { /// /// Creates a new instance of the class. /// /// The protocol activation URI. /// is . public OpenIddictClientSystemIntegrationActivation(Uri uri) { if (uri is null) { throw new ArgumentNullException(nameof(uri)); } if (!uri.IsAbsoluteUri || OpenIddictHelpers.IsImplicitFileUri(uri)) { throw new ArgumentException(SR.GetResourceString(SR.ID0144), nameof(uri)); } ActivationUri = uri; } /// /// Gets the protocol activation URI. /// public Uri ActivationUri { get; } /// /// Gets or sets a boolean indicating whether the activation /// was redirected from another instance of the application. /// public bool IsActivationRedirected { get; set; } }