public AliyunSLSLogger(string name, AliyunSLSOptions options) { this.name = string.IsNullOrEmpty(name) ? nameof(AliyunSLSLogger) : name; if (options == null) { throw new ArgumentNullException(nameof(options)); } logger = new AliyunSlsBuilder(options, this.name); }
public AliyunSlsBuilder(AliyunSLSOptions configModel, string name) { options = configModel ?? throw new ArgumentNullException(nameof(configModel)); this.name = name; Client = LogServiceClientBuilders.HttpBuilder .Endpoint(options.Endpoint, options.ProjectName) .Credential(options.AccessKey, options.AccessSecret) .RequestTimeout(10000) .Build(); }
public AliyunSLSProvider(AliyunSLSOptions options) { this.options = options; }
public void Dispose() { Client = null; options = null; }