/// <summary> /// /// </summary> /// <param name="options"></param> /// <param name="rootPath">IHostingEnvironment.ContentRootPath</param> public EcommService(EcommOptions options, string rootPath) : this(options.CertificateFile, options.CertificatePassword, options.ServerUrl, options.ClientUrl) { if (!Path.IsPathRooted(options.CertificateFile)) { _certificateFile = Path.GetFullPath(Path.Combine(rootPath, options.CertificateFile)); } }
public EcommService(EcommOptions options) : this(options.CertificateFile, options.CertificatePassword, options.ServerUrl, options.ClientUrl) { }