public PicController(IWebHostEnvironment env, IOptions <AppSettings> options, ApartmentContext apartmentContext, IPicService picService, IPicServicesHandler picServicesHandler) { _env = env; _options = options; _apartmentContext = apartmentContext; _picService = picService; _picServicesHandler = picServicesHandler; _picServicesHandler.Subscrib(_picService); }
public void Subscrib(IPicService picService) => picService.OnFileUploaded += PicService_OnFileUploadAsync;