private HttpContractedClient(Type contractType, HttpContractedClientOptions options) { this.ContractType = contractType; this.Channel = options.Channel; this.RequestSpecifier = options.RequestSpecifier; this.BaseAddress = Channel.BaseAddress; }
/// <summary> /// Creates realization of a contract via the <see cref="IDynamicContract"/> mechanism /// </summary> /// <typeparam name="T">The contract type for which a realization will be created</typeparam> /// <returns></returns> public static T Create <T>(HttpContractedClientOptions options) => DynamicContract.Realize <T>(new HttpContractedClient(typeof(T), options));