Activities of "maliming"

hi I found the code:


public class CustomObjectDataSourceWizardTypeProvider : IObjectDataSourceWizardTypeProvider
{
    public IEnumerable<Type> GetAvailableTypes(string context)
    {
        return new[] {
            typeof(ReportingDataSourceServiceDecorator)
        };
    }
}


[ExposeServices(typeof(ReportingDataSourceServiceDecorator))]
public class ReportingDataSourceServiceDecorator : IReportingDataSourceService, ITransientDependency
{
    private readonly IScopedServiceProvider<ReportingDataSourceService> _scopedServiceProvider;

    public ReportingDataSourceServiceDecorator(IScopedServiceProvider<ReportingDataSourceService> scopedServiceProvider)
    {
        _scopedServiceProvider = scopedServiceProvider;
    }

    public IList<BookDto> GetAllBooks()
    {
        using (var scopeServer = _scopedServiceProvider.GetService())
        {
            return scopeServer.Service.GetAllBooks();
        }
    }
}

public class ReportingDataSourceService : ApplicationService, IReportingDataSourceService
{
    private readonly IBookCustomRepository _bookRepo;

    public ReportingDataSourceService()
    {
        // We use this parameterless constructor in the Data Source Wizard only, and not for the actual instantiation of the repository object.
        throw new NotSupportedException();
    }
    public ReportingDataSourceService(IBookCustomRepository bookRepo)
    {
        _bookRepo = bookRepo;
    }

    [UnitOfWork]
    public virtual IList<BookDto> GetAllBooks()
    {
        var query = _bookRepo.GetAllBooksAsync();
        return ObjectMapper.Map<IList<Book>, IList<BookDto>>(
            query.Result.ToList()
        );
    }
}


public interface IScopedServiceProvider<TService>
{
    ServiceScopeScope<TService> GetService();
}

public class ScopedServiceProvider<TService> : IScopedServiceProvider<TService>
{
    private readonly IServiceProvider _provider;

    public ScopedServiceProvider(IServiceProvider provider)
    {
        this._provider = provider ?? throw new ArgumentNullException(nameof(provider));
    }

    public ServiceScopeScope<TService> GetService()
    {
        var scope = _provider.CreateScope();
        return new ServiceScopeScope<TService>(scope);
    }
}

public class ServiceScopeScope<TService> : IDisposable
{
    private readonly IServiceScope _scope;

    public ServiceScopeScope(IServiceScope scope)
    {
        _scope = scope ?? throw new ArgumentNullException(nameof(scope));

        Service = scope.ServiceProvider.GetRequiredService<TService>();
    }

    public TService Service { get; }

    public void Dispose()
    {
        _scope.Dispose();
    }
}

hi

Can you check the logs of Authserver?

Has it issued a token? Is the token forwarded by the gateway?

What do I use to remove these grants/permissions from the tenant?

You can refer to RoleDeletedEventHandler

https://github.com/abpframework/abp/blob/48c52625f4c4df007f04d5ac6368b07411aa7521/modules/identity/src/Volo.Abp.PermissionManagement.Domain.Identity/Volo/Abp/PermissionManagement/Identity/RoleDeletedEventHandler.cs#L24

hi

Please setup your RabbitMQ service.

https://docs.abp.io/en/commercial/latest/startup-templates/microservice/index

I don't know much about Azure, but I can confirm that its current response speed is slow for your apps.

You can find the reason in Azure

hi

Can you try to using the brand new 4.4 template project?

Or refresh the page maybe help.

hi

Can I check it remotely?

https://zoom.us/j/91410409347?pwd=N2Y1M3JPYjdWRGxXQkwzUUpPVkdGUT09

hi

Any project that can reproduce the problem is fine, we don't need your complete code.

hi ChetanKumbhar

Your project is very complicated, and the remote is very slow. Please find a way to provide a project.

hi

Try to run dotnet build /graphbuild

Showing 9571 to 9580 of 10676 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 16, 2025, 10:35