public JScrambler(string accessKey, string secretKey) { this.serviceConfig = this.serviceConfig ?? new ServiceSection(); this.serviceConfig.Credentials.AccessKey = accessKey; this.serviceConfig.Credentials.SecretKey = secretKey; #if DEBUG this.serviceConfig.ApiPort = 80; #endif }
public JScrambler(string accessKey, string secretKey, string apiHost, int apiPort) : this(accessKey, secretKey, apiHost) { this.serviceConfig = this.serviceConfig ?? new ServiceSection(); this.serviceConfig.ApiPort = apiPort; }
public JScrambler() { var section = ConfigurationManager.GetSection(ServiceSection.SectionName); serviceConfig = section as ServiceSection; }
public JScrambler() { serviceConfig = ConfigurationManager.GetSection(ServiceSection.SectionName) as ServiceSection; }