Activities of "maliming"

hi

You can refer to this Console App.

https://github.com/abpframework/abp/blob/dev/templates/console/src/MyCompanyName.MyProjectName/Program.cs#L55

hi

Try this

public override void ConfigureServices(ServiceConfigurationContext context)
{
    var hostingEnvironment = context.Services.GetHostingEnvironment();
    var configuration = context.Services.GetConfiguration();

    context.Services.AddSignalR(options =>
    {
        options.AddFilter<AbpSignalRFilter>();
    }).AddAzureSignalR(options =>
    {
        options.ServerStickyMode = Microsoft.Azure.SignalR.ServerStickyMode.Required;
        options.ConnectionString = "Endpoint=.....;";
    });
}

public class AbpSignalRFilter : IHubFilter
{
    public async ValueTask<object> InvokeMethodAsync(HubInvocationContext invocationContext, Func<HubInvocationContext, ValueTask<object>> next)
    {
        var currentPrincipalAccessor = invocationContext.ServiceProvider.GetRequiredService<ICurrentPrincipalAccessor>();
        using (currentPrincipalAccessor.Change(invocationContext.Context.User))
        {
            return await next(invocationContext);
        }
    }

    // Optional method
    public Task OnConnectedAsync(HubLifetimeContext context, Func<HubLifetimeContext, Task> next)
    {
        return next(context);
    }

    // Optional method
    public Task OnDisconnectedAsync(
        HubLifetimeContext context, Exception exception, Func<HubLifetimeContext, Exception, Task> next)
    {
        return next(context, exception);
    }
}

Done

hi

liming.ma@volosoft.com

https://docs.abp.io/en/abp/4.4/Modules/IdentityServer#abpidentityserverbuilderoptions

public override void PreConfigureServices(ServiceConfigurationContext context)
{
	PreConfigure<IIdentityServerBuilder>(builder =>
	{
    	builder.AddSigningCredential(...);	
	});
}

hi

The AllowAnonymous attribute only take effect in the application service method or class.

You can consider using ILanguageTextRepository in the Domain instead of application services.

Can I list the tenants in my DB in my configureservices on application module?

The built-in service does not support this.

hi rcalv002

Maybe you can consider to use AbpDynamicOptionsManager, Call SetAsync method before using HTTP client.

https://github.com/abpframework/abp/pull/6333#issue-749741707

hi

Adding the [AllowAnonymous] attribute has not worked.

Can you share some code of your background job and the app serivce?

hi

This is of course possible, you need to completely remove the relevant modules from the project, and then re-create the migration.

Showing 7451 to 7460 of 8945 entries
Made with ❤️ on ABP v9.2.0-preview. Updated on January 08, 2025, 14:09