Example #1
0
 /// <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));
     }
 }
Example #2
0
 public EcommService(EcommOptions options) : this(options.CertificateFile, options.CertificatePassword, options.ServerUrl, options.ClientUrl)
 {
 }