Käyttäjän "DominaTang" toiminnot

Hi, From Azure Function, how I directly use modules within Abp Framework or need to call Micro Service API? To call API, how to get access token for API from Abp Auth Server?

Thanks

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v7.1.0
  • UI type: Angular
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi,

I setup Distributed Event Bus using Azure Service Bus, I follow the steps in Abp document, here is my settings: "Azure": { "ServiceBus": { "Connections": { "Default": { "ConnectionString": "Endpoint=sb://...." } } }, "EventBus": { "ConnectionName": "Default", "SubscriberName": "integration-sub", "TopicName": "integration-topic" } } When I send a message to Azure Service Bus topic via Azure Portal, the message is gone, though the Handler method is not triggered.

Thanks,

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v7.1.0
  • UI type: Angular
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
  • ABP Framework version: v7.1.0
  • UI type: Angular
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Our app uses Abp MicroService template, in one MicroService, we need to call an external Rest API, what is the best practice to implement this feature.

Thanks

ABP Framework version: v4.1

UI type: Angular

DB provider: EF Cor

Tiered (MVC) or Identity Server Separated (Angular): no

Exception message and stack trace:

Steps to reproduce the issue:

Try the sample code provided by Abp support: public class TestAppService : MyProjectNameAppService { private readonly IBackgroundJobManager _backgroundJobManager;

public TestAppService(IBackgroundJobManager backgroundJobManager)
{
    _backgroundJobManager = backgroundJobManager;
}

public async Task SendDelayEmail()
{
    await _backgroundJobManager.EnqueueAsync<EmailNotificationArgs>(
        new EmailNotificationArgs { Email = "test", Subject = "test", Body = "test" },
        delay: TimeSpan.FromMinutes(3));
}

}

public class EmailNotificationArgs { public string Email { get; set; } public string Subject { get; set; } public string Body { get; set; } }

public class PartyCompleteEmailJob : AsyncBackgroundJob<EmailNotificationArgs>, ITransientDependency { public override Task ExecuteAsync(EmailNotificationArgs args) { Logger.LogInformation("------------- Sending email to " + args.Email + " with subject " + args.Subject + " and body " + args.Body + ""); return Task.CompletedTask; } }

Trigger SendDelayEmail() via Swagger twice, from database The abandon column at the beginning is 0, wait a while. The Abandon will have value 1 Add a break point to ExecuteAsync(EmailNotificationArgs args) method, the break point is never reached.

Kysymys
  • ABP Framework version: v4.1
  • UI type: Angular
  • DB provider: EF Cor
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

After Enqueue a job request to JobManager, AbpBackgroundJobs table, that request IsAbandoned flag is set to 1. If add delay parameter to Enqueue method, say 3 minutes, Job record in AbpBackgroundJobs, the IsAbandoned value is 0, and three minutes later, the IsAbandoned value is 1

It seems that the JobManager can not locate the Job class successfully? How to job manager can locate the corresponding job to handle the parameter? I tried to add jobName attribute to EmailNotificationArgs class, but it doesn't work. There is exception in Log file neither.

"public class PartyCompleteEmailJob : AsyncBackgroundJob<EmailNotificationArgs>, ITransientDependency"

Kysymys

I am wondering how to use AbpModules and Azure Function (Isolated work process, framework 4.8) Except for change our current application module target from .Net Core 5.0 to .Net Standard 2.0: How to resolve the DI for abp modules; How to get access token while call App Services; Use code to setup Current Tenant and Current User (already resolved).

Could you provide an sample code for azure function?

Thanks, Domina Tang If you're creating a bug/problem report, please include followings:

  • ABP Framework version: 4.1.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
Näytetään 21 - 26/26 tietueesta
Made with ❤️ on ABP v8.2.0-preview Updated on maaliskuuta 25, 2024, 15.11