Example #1
0
 public IpfsFileStorageService(IpfsStorageConfig config, ILogger <IGenericDataStorage> logger)
 {
     this.config = config;
     this.logger = logger;
     if (config.IpfsHost != null)
     {
         this.ipfs = new IpfsClient(config.IpfsHost);
     }
 }
Example #2
0
 public IpfsStorageService(IpfsStorageConfig config, ILogger <IStorageService> logger)
 {
     this.config = config;
     this.logger = logger;
     this.ipfs   = new IpfsClient(config.IpfsHost);
 }