Example #1
0
 public FileService(SeaweedFsService seaweed, FileHostDbContext dbContext)
 {
     this.seaweed   = seaweed;
     this.dbContext = dbContext;
 }
Example #2
0
 public SeaweedFsService(FileHostDbContext dbContext, IOptions <SeaweedFsOptions> options)
 {
     this.dbContext = dbContext;
     connection     = new MasterConnection(options.Value.MasterHostName, options.Value.Port);
 }