Hello,
<ins>1)"Have you added PaymentCardDetail entity to DbContext ? I think your original problem might be related to that."</ins>
Yes ,
public virtual IDbSet<PaymentCardDetail> PaymentCardDetails { get; set; }
<ins>2) "Also do you use this IPaymentProcessAppService in a different module or is it in your WebModule or AppModule ?</ins>
No, PaymentProcessAppService is working fine when call it from my angular app, there is no problem with the service. I just want to resolve the dependency to call it directly in quartz Job Execute method.
I did my quartz with task by directly accessing to dbset property of entity, but i think that is not the proper way to do that as per your architecture.
Thank You
Below is the Interface of my AppService along with class that is implementing the interface
public interface IPaymentProcessAppService : IApplicationService
{
Task<CommonTypeResult> SomeFunc();
}
public class PaymentProcessAppService : NcgAppServiceBase, IPaymentProcessAppService
{
private readonly IRepository<PaymentCardDetail> _paymentCardDetailRepository;
private readonly IRepository<StripeTransaction> _stripeTransactionRepository;
private readonly IStripper stripper;
private int _tenantID, _userID;
private CommonTypeResult _commonTypeResult = null;
public PaymentProcessAppService(IRepository<PaymentCardDetail> paymentCardDetailRepository,
IRepository<StripeTransaction> stripeTransactionRepository)
{
stripper = new Stripper();
_paymentCardDetailRepository = paymentCardDetailRepository;
_stripeTransactionRepository = stripeTransactionRepository;
}
public async Task<CommonTypeResult> SomeFunc()
{
// some code
}
}
Thanks for your answer. The appService doesn't have authorization and validation.As per your documentation, if we use the proper naming conventions with post-fix of "AppService" and inherit IApplicationService then we don't need to register the AppService, So i think i don't need to register my service for DI.
As you told me, I tried with the IocManager.Instance.Resolve<IPaymentProcessAppService>().
but i am failed to initialize the implementation class of IPaymentProcessAppService
<ins>following is my code</ins>
public void Execute(IJobExecutionContext context)
{
var obj = IocManager.Instance.Resolve<IPaymentProcessAppService>();
}
<ins>Exception:</ins>
Message: Castle.MicroKernel.ComponentNotFoundException: No component for supporting the service Ncg.Payment.IPaymentProcessAppService was found
Inner Exception: null
Stack Trace: at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy) at Castle.MicroKernel.DefaultKernel.Resolve(Type service, IDictionary arguments) at Castle.Windsor.WindsorContainer.ResolveT at Abp.Dependency.IocManager.ResolveT at Ncg.NcgQuartz.NcgJob.Execute(IJobExecutionContext context) at Quartz.Core.JobRunShell.Run()
I have a AppService name with "PaymentProcessAppService" that is working fine with the angular app. Now i need to initialize the PaymentProcessAppService in quartz job execute method. I am using IRepository<PaymentCardDetail> in PaymentProcessAppService.
I am trying to resolve the dependency with this code
public void Execute(IJobExecutionContext context)
{
var container = new WindsorContainer();
container.Register(Component.For<IPaymentProcessAppService>().ImplementedBy<PaymentProcessAppService>().LifestyleTransient());
IPaymentProcessAppService paymentProcessAppService = container.Resolve<IPaymentProcessAppService>();
paymentProcessAppService.CheckSubscriptionStatus();
}
it give me error:
Castle.MicroKernel.Handlers.HandlerException: 'Can't create component 'Ncg.Payment.PaymentProcessAppService' as it has dependencies to be satisfied.
'Ncg.Payment.PaymentProcessAppService' is waiting for the following dependencies:
How can i resolve the dependency ? I need to initialize my app service only and call a function.
I hosted Core API on service.abc.com without wildcard and Angular App hosted on {Tenant_Name}.abc.com with wildcard.
As per your provided configuration, Tenant name is also include in "ServerRootAddress": "http://{TENANCY_NAME}.service.abc.com"
do we also need wildcard for the Core API ?
Please give me the solution for this I have only on wildcard and IP server, how can i implement multi tenancy ?
I followed the same steps to deploy Angular 2 app on my local IIS. I hosted Core API on my localhost & it is working fine. Next step for me was to publish Angular 2 on local IIS.
When i browse the web app i got this error "HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid"
Please help me i need to publish it
I followed the same steps to deploy Angular 2 app on my local IIS. I hosted Core API on my localhost & it is working fine. Next step for me was to publish Angular 2 on local IIS.
When i browse the web app i got this error "HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid."
Please help me i need to publish it
Is this the same metronic on themeforest? I don't understand exactly how the license works. Do we all also have the normal or extended license? Did you buy the extended license and that's it and we all also have it too, or was there also some other deal directly with the creator? I'm not sure how the licenses on the other sites work. Can we get upgrades and have any logins for downloads on themeforest or not. Thanks! Just confused and trying to clarify.
it goes to <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-angular-obsolete/issues/10">https://github.com/aspnetzero/aspnet-ze ... /issues/10</a> and I get a 404 message there.
Thanks. link seems broken. What do you advise for public website? Do we download a different version? or perhaps go with wordpress or something? Or are we supposed to use the angular 2 website as the public website? Thanks.