public static void Decorate(this IAuthenticationDecorator authenticationDecorator, AuthenticateResult authenticateResult, string authenticationScheme, IClaimBuilderCollection claims, AuthenticationProperties properties)
        {
            if (authenticationDecorator == null)
            {
                throw new ArgumentNullException(nameof(authenticationDecorator));
            }

            authenticationDecorator.DecorateAsync(authenticateResult, authenticationScheme, claims, properties).Wait();
        }
 public HttpService(SerialisationSettingsProvider serialisationSettingsProvider, IAuthenticationDecorator authenticationDecorator)
 {
     client = new HttpClient();
     this.serialisationSettingsProvider = serialisationSettingsProvider;
     this.authenticationDecorator       = authenticationDecorator;
 }