public static ThrottlePolicyBuilder WithUsernameResolver(this ThrottlePolicyBuilder builder)
 {
     return(builder.WithResolver(UsernameResolver.Instance));
 }
 public static ThrottlePolicyBuilder WithAccessTokenResolver(this ThrottlePolicyBuilder builder)
 {
     return(builder.WithResolver(AccessTokenResolver.Instance));
 }
 public static ThrottlePolicyBuilder WithResolver <TResolver>(this ThrottlePolicyBuilder builder, IServiceProvider serviceProvider) where TResolver : IResolver
 {
     return(builder.WithResolver(new TypeResolver <TResolver>(serviceProvider)));
 }
 public static ThrottlePolicyBuilder WithHostResolver(this ThrottlePolicyBuilder builder)
 {
     return(builder.WithResolver(HostResolver.Instance));
 }