public static ApiClientContext Create(Action<ApiClientConfigurationExpression> action) {

            var apiClientContext = new ApiClientContext();
            var configurationExpression = new ApiClientConfigurationExpression(apiClientContext);

            action(configurationExpression);

            return apiClientContext;
        }
Beispiel #2
0
        public static ApiClientContext Create(Action <ApiClientConfigurationExpression> action)
        {
            var apiClientContext        = new ApiClientContext();
            var configurationExpression = new ApiClientConfigurationExpression(apiClientContext);

            action(configurationExpression);

            return(apiClientContext);
        }