Ends in:
2 DAYS
4 HRS
32 MIN
59 SEC
Ends in:
2 D
4 H
32 M
59 S
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

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

    Hi,

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

  • User Avatar
    0
    serdar.genc@talentra.net created

    i think like this , right ?

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

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can you try this:

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

Made with ❤️ on ABP v9.1.0-preview. Updated on December 02, 2024, 12:35