예제 #1
0
 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);
 }
예제 #2
0
 public void Subscrib(IPicService picService) => picService.OnFileUploaded += PicService_OnFileUploadAsync;