public FileController(Zongsoft.Services.IServiceProvider serviceProvider) { if(serviceProvider == null) throw new ArgumentNullException("serviceProvider"); _file = serviceProvider.Resolve<IStorageFile>(); _bucket = serviceProvider.Resolve<IStorageBucket>(); }
public FileController(Zongsoft.Services.IServiceProvider serviceProvider) { if (serviceProvider == null) { throw new ArgumentNullException("serviceProvider"); } _file = serviceProvider.Resolve <IStorageFile>(); _bucket = serviceProvider.Resolve <IStorageBucket>(); }