public PhotoService(IConverterFactory factory, BaseProvider <Photo> provider, BaseProvider <Watermark> providerWatermark, BaseProvider <Tag> providerTag, BaseProvider <PhotoToTag> providerPhotoToTag, BaseProvider <Album> providerAlbum) { _providerPhoto = provider; _providerWatermark = providerWatermark; _providerPhotoToTag = providerPhotoToTag; _providerTag = providerTag; _factory = factory; _providerAlbum = providerAlbum; _converter = _factory.GetConverter <IPhotoConverter>(); _converterWatermark = _factory.GetConverter <IWatermarkConverter>(); _converterTag = _factory.GetConverter <ITagConverter>(); }
public WatermarkService(IConverterFactory factory, BaseProvider <Watermark> provider) { _providerWatermark = provider; _factory = factory; _converter = _factory.GetConverter <IWatermarkConverter>(); }