Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why can't I run the inheritance strupbase when creating a module? #16906

Closed
onestar1 opened this issue Oct 18, 2024 · 1 comment
Closed

Why can't I run the inheritance strupbase when creating a module? #16906

onestar1 opened this issue Oct 18, 2024 · 1 comment
Labels

Comments

@onestar1
Copy link

onestar1 commented Oct 18, 2024

Describe the bug

Orchard Core version

Add the version of the Orchard Core NuGet packages you use, or the commit hash if you can reproduce this with the source code.
use 2.0.2

To Reproduce

Steps to reproduce the behavior:

  1. create new aliyun sms module use orchardcore.sms 2.0.2
  2. in Startup.cs add new WorkflowsStartup
    `
    [RequireFeatures("OrchardCore.Workflows")]
    public sealed class WorkflowsStartup : StartupBase
    {
    public override void ConfigureServices(IServiceCollection services)
    {
    services.AddActivity<AliyunSmsTask, AliyunSmsTaskDisplayDriver>();
    }

}
`
4. When the breakpoint is tracked, the inside does not take effect。
services.AddActivity<AliyunSmsTask, AliyunSmsTaskDisplayDriver>();

I don't know what this is? When I put services.AddActivity<AliyunSmsTask, AliyunSmsTaskDisplayDriver>(); on
`
public override void ConfigureServices(IServiceCollection services)
{

services.AddSmsProvider<AliyunSmsProvider>("Aliyun");
services.AddSmsProviderOptionsConfiguration<AliyunProviderOptionsConfigurations>()
    .AddSiteDisplayDriver<AliyunSettingsDisplayDriver>();
services.AddNavigationProvider<AdminMenu>();
services.AddActivity<AliyunSmsTask, AliyunSmsTaskDisplayDriver>();

}
`
it is ok

Expected behavior

A clear and concise description of what you expected to happen.

Logs and screenshots

If applicable, add log files, browser console logs, and screenshots (or screen recording videos) to help explain your problem.

Copy link
Contributor

Thank you for submitting your first issue, awesome! 🚀 We're thrilled to receive your input. If you haven't completed the template yet, please take a moment to do so. This ensures that we fully understand your feature request or bug report. On what happens next, see the docs.

If you like Orchard Core, please star our repo and join our community channels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant