Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "andmattia"

Hi

I test a single call 1st and 2nd time and single call is around 443 ms about TTFB time. So if I call a whole site the time are that I attach on my screen shot above. Any idea?

Hi

I anlayze a site base on Zero (anugularJS + 4.8.1.0) I look on network and I see 1.8 sec to wait

Any Idea how can analize or speed up it?

Hi @aaron

it works!

Thanks a lot for your support!

I don't have an error but if i try to search the interface it isn't registered.

No

I found a problem but it is manual. The strange situation is that everything works except and when the class inherits from BackGround Job

Hi

I've create a custom Interface and I try to register via Windsor but work fine for a lot of class reather then BackGroundJob. Below the code that I use

public class ImportJob : BackgroundJob<ImportJogArgs>, ITransientDependency, IExposedJob
    {
        public UserManager UserManager { get; set; }
        ...
   }
   
   // NOT REGISTER
   public class ExsposedJobConventionalRegistrar : IConventionalDependencyRegistrar
    {
        public void RegisterAssembly(IConventionalRegistrationContext context)
        {
            context.IocManager.IocContainer.Register(
                Classes.FromAssembly(context.Assembly)
                    .BasedOn<IExposedJob>()
                    .If(type => !type.GetTypeInfo().IsGenericTypeDefinition)
                    .WithService.Self()
                    .WithService.Base()
                    .WithService.AllInterfaces()
            );
        }
    }
   
   // MANUAL FORCE REGISTER
   // On module pre init
   IocManager.IocContainer.Register(
                Component.For<IExposedJob, ImportJob>().ImplementedBy<ImportJob>()
            );
            

I try to change from base class BackgroundJob to anithing else and works fine.

Answer

@maliming Thanks a lot

Hi

I had a custom interface to register on Windsor but not work.

I add this interface to BackGroudJob

public interface IExposedJob{
...}

public class Job1Job : BackgroundJob<Job1Args>, IExposedJob, ITransientDependency
{....
}

// Manual WORK
IocManager.IocContainer.Register(
                Component.For<IExposedJob, Job1>().ImplementedBy<Job1>(),
                Component.For<IExposedJob, Job2>().ImplementedBy<Job2>()
            );
            
            // Auto not WORK
            context.IocManager.IocContainer.Register(
                Classes.FromAssembly(context.Assembly)
                    .BasedOn<IExposedJob>()
                    .If(type => !type.GetTypeInfo().IsGenericTypeDefinition)
                    .WithService.Self()
                    .WithService.Base()
                    .WithService.AllInterfaces()
            );
Question

Hi

I move from .Net to .NETCore soultion. My application is divided in some module with this structure base.Core base.Application base.EF base.WebApi base.Web (dependen on module1.web)

and

module1.Core module1.Application module1.EF module1.WebApi module1.Web

Configuration.Modules.AbpWebApi().DynamicApiControllerBuilder
                .ForAll<IApplicationService>(typeof(module1).Assembly, "module1")
                .Build();

I change on module.WebApi the name of API, So How and where I need to modify to achive the same result?

Yes. So I try to use NSWAG and I've generated the Script in AngularJs. We need to convert our solution in 2 step, 1 .NET -> Core, 2 UI. In this path the method removed (create angularjs script) create this issue so we try to use NSwag.

Actualy we have a MVC project converted to AngularJs and we move our AngularJs from JS to TypeScript. I thik a lot of aspnetzero can be in the same situation if it start to work on this framework since verion 0.7.0 :)

Showing 71 to 80 of 200 entries