Open Closed

FileManagament Module & Change FileManagementContainer #2350


User avatar
0
serdar.genc@talentra.net created

Hi,

I want to use the 'FileDescriptorAppService' service in the FileManagement module inside my other service. By default, 'FileDescriptorAppService' uses container 'FileManagementContainer'. If I want to use another container in my own service, can I use Container as a parameter?

Thanks

  • ABP Framework version: v5.0.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    Methods of FileDescriptorAppService are virtual. you can override the method to use other containers.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    serdar.genc@talentra.net created

    i think like this , right ?

    if you say yes, why '[Dependency(ReplaceServices = true)]' ReplaceServices error ? deprecated ?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    Can you try this:

    [Volo.Abp.DependencyInjection.Dependency(ReplaceServices = true)]

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.