abp icon indicating copy to clipboard operation
abp copied to clipboard

Overriding a AbpController and ApplicationService

Open masoodkhoshgard opened this issue 2 years ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

No response

Describe the solution you'd like

I want to have a property like ICurrentTenant called ICurrentProject that is available in controller, service and manager and I can use it. And I can change its value by selecting the user (load it from the database) is this possible? please guide me

Additional context

No response

masoodkhoshgard avatar Nov 24 '23 11:11 masoodkhoshgard

@maliming Hi maliming Can you help me?

masoodkhoshgard avatar Nov 25 '23 15:11 masoodkhoshgard

hi

You can create your own MyAbpController and MyApplicationService, which include the ICurrentProject and then inherit them in your services.

maliming avatar Nov 26 '23 02:11 maliming

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 23:04 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 26 '25 23:06 stale[bot]