예제 #1
0
파일: FfClient.cs 프로젝트: zzroot/ff-proxy
        public FfClient(FfConfig config)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            this.config = config;
            this.rng    = RNGCryptoServiceProvider.Create();

            this.config.Validate();
        }
예제 #2
0
 public FfHttpRequestHandler(FfConfig config, HttpResponseMessage mockResponse = null)
 {
     this.ffClient     = new FfClient(config);
     this.mockResponse = mockResponse ?? new HttpResponseMessage();
 }