Base solution for your next web application

Activities of "andis"

Hi,

Thanks for creating sample code for me..

Can I know, how aspnetboilerplate setting up my application service? include their interceptor, I wonder if I can find these code in this solution? <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate">https://github.com/aspnetboilerplate/aspnetboilerplate</a>

Yes, I mean Castle Dynamic Proxy, can you give me aspboilerplate code where setting these service up? I am trying to understand it more

How aspnetboilerplate create Proxied Application Service? I need to create it in the same way so they can have similar behaviour

We are planning to create an import module. Actually by import module is nothing more than just an action to let user trigger Application Service Action repeatly with different input. Our design is to let users upload an excel, define the application service and its method they want invoke.. After that, background job can impersonate that user to do the input(all validations, audit logs and permissions are based on the uploading users). Is there anyway to achieve this?

protected abstract void DoJob();
        [UnitOfWork]
        public override void Execute(T args)
        {
            UserEnqueuedJob userEnqueuedJob = UserEnqueuedJobRepository.Get(args.UserEnqueuedJobId);
            userEnqueuedJob.Status = Entity.Enum.JobStatus.Executing;
            try
            {
                DoJob();
            }
            finally
            {
                userEnqueuedJob.Status = Entity.Enum.JobStatus.Executed;
            }
        }

Can I create a new UnitOfWork to set UserEnqueuedJob status to Executing?

Since ABP have no such feature, I wish to implement it myself by creating an Entity[TenantId, UserId, Log, JobId] to log those processes. I wish to link the created object with the enqueued job(JobId property) but BackgroundJobManager.Enqueu() method was not returning enqueued job(return type is void), any advice to get the enqueued job?

I have background jobs which enqueued by user, how to let user to see all their jobs, and what are their statuses?

When resolving dependency, is IRepository<Entity, IdType) also inherit from EfRepositoryBase? if yes, then i can just cast it to this Type and get Context property instead re-implementing whole class

Create, SaveChanges and GetId() step is exactly what i tested before submit this ticket. But it seems EF has cached the created object, that's why in solution suggest me to detach it first and find it again..

Ok, I'll try your CustomRepository Solution

From EntityFramework side, after we insert a POCO, all navigational properties are still null. I found some solutions mentioned that i need to detach and find again to refresh the object or using DbSet.Create to create my entity instead using POCO constructor. But currently I am unable to access either DbContext or DbSet from Repository. How to reload the instance in aspboilerplate? or how to access DbContext or DbSet?

Showing 1 to 10 of 17 entries