Exemplo n.º 1
0
        public IHttpMessageSigningVerificationBuilder UseClient(Func <IServiceProvider, Client> clientFactory)
        {
            if (clientFactory == null)
            {
                throw new ArgumentNullException(nameof(clientFactory));
            }

            ClientFactories.Add(clientFactory);

            return(this);
        }
Exemplo n.º 2
0
        public IHttpMessageSigningVerificationBuilder UseClient(Client client)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            ClientFactories.Add(prov => client);

            return(this);
        }