Base solution for your next web application

Activities of "gunpal5"

Hello,

I have a static class in my codes. I need to resolve a dependency using IocManager.Instance. but it doesn't seem to be resolving the dependency. It seems this instance is not the same as the application IocManager.

Is there any suggestion for the workaround?

public static class TradeFactory
    {
        private static ITradeIdGenerator TradeIdGenerator
        {
            get
            {
                return IocManager.Instance.Resolve<ITradeIdGenerator>();
            }
        }

        public static Trade GenerateTrade(string currencyPair, Price executionPrice, Volume executedQuantity,Order matchedOrder, Order inboundOrder)
        {
            Trade trade=new Trade(TradeIdGenerator.GenerateTradeId(),currencyPair, executionPrice, executedQuantity, DateTime.Now,
            matchedOrder, inboundOrder);
            return trade;
        }
    }

Regards, Gunpal Jain

Hello,

I will try with that, thank you very much.

Regards, Gunpal Jain

Question

Hello,

How to register Scoped dependencies? I can't find a way to do it with ABP framework. It only supports Singleton or Transient. Is there any simple way of defining Scoped dependencies?

Regards, Gunpal Jain

Hi,

I am not running the application in Release mode. it's in debug mode, when I run application without debugger attached application freezes after logging in, but works when debugger is attached.

Regards, Gunpal Jain

Here it is, seems to be frozen at AbpConfiguration/GetAll.

DEBUG 2018-03-02 22:05:25,628 [1    ] Abp.Modules.AbpModuleManager             - Loading Abp modules...
DEBUG 2018-03-02 22:05:25,656 [1    ] Abp.Modules.AbpModuleManager             - Found 23 ABP modules in total.
DEBUG 2018-03-02 22:05:25,677 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: GunMantra.CryptoExchange.Web.Startup.CryptoExchangeWebHostModule, GunMantra.CryptoExchange.Web.Host, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,679 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: GunMantra.CryptoExchange.Web.CryptoExchangeWebCoreModule, GunMantra.CryptoExchange.Web.Core, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,680 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: GunMantra.CryptoExchange.CryptoExchangeApplicationModule, GunMantra.CryptoExchange.Application, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,680 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: GunMantra.CryptoExchange.CryptoExchangeCoreModule, GunMantra.CryptoExchange.Core, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,680 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.ZeroCore, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,680 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.AbpZeroCommonModule, Abp.Zero.Common, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,681 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AbpKernelModule, Abp, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,681 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.Ldap.AbpZeroLdapModule, Abp.Zero.Ldap, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,681 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AutoMapper.AbpAutoMapperModule, Abp.AutoMapper, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,682 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AspNetZeroCore.AbpAspNetZeroCoreModule, Abp.AspNetZeroCore, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,682 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.MailKit.AbpMailKitModule, Abp.MailKit, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,682 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: GunMantra.CryptoExchange.CryptoExchangeCoreFundsModule, GunMantra.CryptoExchange.Core.Funds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,682 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: GunMantra.CryptoExchange.EntityFrameworkCore.CryptoExchangeEntityFrameworkCoreModule, GunMantra.CryptoExchange.EntityFrameworkCore, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,683 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.EntityFrameworkCore.AbpZeroCoreEntityFrameworkCoreModule, Abp.ZeroCore.EntityFrameworkCore, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,683 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule, Abp.EntityFrameworkCore, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,683 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.EntityFramework.AbpEntityFrameworkCommonModule, Abp.EntityFramework.Common, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,683 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.IdentityServer4.AbpZeroCoreIdentityServerEntityFrameworkCoreModule, Abp.ZeroCore.IdentityServer4.EntityFrameworkCore, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,683 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.IdentityServer4.AbpZeroCoreIdentityServerModule, Abp.ZeroCore.IdentityServer4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,684 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AspNetZeroCore.Web.AbpAspNetZeroCoreWebModule, Abp.AspNetZeroCore.Web, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,684 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AspNetCore.AbpAspNetCoreModule, Abp.AspNetCore, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,684 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.AbpWebCommonModule, Abp.Web.Common, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,684 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.SignalR.AbpWebSignalRModule, Abp.Web.SignalR, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,684 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Hangfire.AbpHangfireAspNetCoreModule, Abp.HangFire.AspNetCore, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:25,689 [1    ] Abp.Modules.AbpModuleManager             - 23 modules loaded.
DEBUG 2018-03-02 22:05:25,788 [1    ] o.Configuration.LanguageManagementConfig - Converted Abp (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2018-03-02 22:05:25,788 [1    ] o.Configuration.LanguageManagementConfig - Converted AbpZero (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2018-03-02 22:05:25,788 [1    ] o.Configuration.LanguageManagementConfig - Converted CryptoExchange (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2018-03-02 22:05:25,788 [1    ] o.Configuration.LanguageManagementConfig - Converted AbpWeb (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2018-03-02 22:05:26,393 [1    ] ameworkCore.AbpEntityFrameworkCoreModule - Registering DbContext: GunMantra.CryptoExchange.EntityFrameworkCore.CryptoExchangeDbContext, GunMantra.CryptoExchange.EntityFrameworkCore, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2018-03-02 22:05:27,031 [1    ] Abp.Localization.LocalizationManager     - Initializing 4 localization sources.
DEBUG 2018-03-02 22:05:27,038 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: Abp
DEBUG 2018-03-02 22:05:27,046 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: AbpZero
DEBUG 2018-03-02 22:05:27,064 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: CryptoExchange
DEBUG 2018-03-02 22:05:27,066 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: AbpWeb
DEBUG 2018-03-02 22:05:27,118 [1    ] Abp.BackgroundJobs.BackgroundJobManager  - Start background worker: Abp.BackgroundJobs.BackgroundJobManager
DEBUG 2018-03-02 22:05:27,180 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - Found 2 classes define auto mapping attributes
DEBUG 2018-03-02 22:05:27,180 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - GunMantra.CryptoExchange.Web.Models.TokenAuth.ExternalLoginProviderInfoModel
DEBUG 2018-03-02 22:05:27,184 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - GunMantra.CryptoExchange.Friendships.Cache.FriendCacheItem
INFO  2018-03-02 22:05:31,673 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/  
INFO  2018-03-02 22:05:32,160 [4    ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method GunMantra.CryptoExchange.Web.Controllers.HomeController.Index (GunMantra.CryptoExchange.Web.Host) with arguments ((null)) - ModelState is Valid
INFO  2018-03-02 22:05:32,171 [4    ] Core.Mvc.Internal.RedirectResultExecutor - Executing RedirectResult, redirecting to /swagger.
INFO  2018-03-02 22:05:32,180 [4    ] ore.Mvc.Internal.ControllerActionInvoker - Executed action GunMantra.CryptoExchange.Web.Controllers.HomeController.Index (GunMantra.CryptoExchange.Web.Host) in 75.9555ms
INFO  2018-03-02 22:05:32,214 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 548.0359ms 302 
INFO  2018-03-02 22:05:32,221 [9    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/  
INFO  2018-03-02 22:05:32,258 [9    ] NetCore.StaticFiles.StaticFileMiddleware - Sending file. Request path: '/index.html'. Physical path: 'N/A'
INFO  2018-03-02 22:05:32,277 [9    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 56.0174ms 200 text/html
INFO  2018-03-02 22:05:32,291 [13   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/css/reset.css  
INFO  2018-03-02 22:05:32,293 [8    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/css/typography.css  
INFO  2018-03-02 22:05:32,293 [8    ] NetCore.StaticFiles.StaticFileMiddleware - The file /css/typography.css was not modified
INFO  2018-03-02 22:05:32,293 [13   ] NetCore.StaticFiles.StaticFileMiddleware - The file /css/reset.css was not modified
INFO  2018-03-02 22:05:32,294 [8    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1.7084ms 304 text/css
INFO  2018-03-02 22:05:32,295 [13   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 3.0523ms 304 text/css
INFO  2018-03-02 22:05:32,295 [11   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/css/screen.css  
INFO  2018-03-02 22:05:32,295 [8    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/lib/object-assign-pollyfill.js  
INFO  2018-03-02 22:05:32,296 [8    ] NetCore.StaticFiles.StaticFileMiddleware - The file /lib/object-assign-pollyfill.js was not modified
INFO  2018-03-02 22:05:32,296 [8    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.6447ms 304 application/javascript
INFO  2018-03-02 22:05:32,297 [11   ] NetCore.StaticFiles.StaticFileMiddleware - The file /css/screen.css was not modified
INFO  2018-03-02 22:05:32,297 [11   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 2.2ms 304 text/css
INFO  2018-03-02 22:05:32,300 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/lib/jquery-1.8.0.min.js  
INFO  2018-03-02 22:05:32,300 [4    ] NetCore.StaticFiles.StaticFileMiddleware - The file /lib/jquery-1.8.0.min.js was not modified
INFO  2018-03-02 22:05:32,300 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.6939ms 304 application/javascript
INFO  2018-03-02 22:05:32,301 [12   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/lib/jquery.slideto.min.js  
INFO  2018-03-02 22:05:32,304 [12   ] NetCore.StaticFiles.StaticFileMiddleware - The file /lib/jquery.slideto.min.js was not modified
INFO  2018-03-02 22:05:32,304 [12   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 2.7022ms 304 application/javascript
INFO  2018-03-02 22:05:32,315 [10   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/lib/jquery.ba-bbq.min.js  
INFO  2018-03-02 22:05:32,315 [3    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/lib/jquery.wiggle.min.js  
INFO  2018-03-02 22:05:32,315 [3    ] NetCore.StaticFiles.StaticFileMiddleware - The file /lib/jquery.wiggle.min.js was not modified
INFO  2018-03-02 22:05:32,315 [10   ] NetCore.StaticFiles.StaticFileMiddleware - The file /lib/jquery.ba-bbq.min.js was not modified
INFO  2018-03-02 22:05:32,315 [3    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.6341ms 304 application/javascript
INFO  2018-03-02 22:05:32,318 [3    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/lib/lodash.min.js  
INFO  2018-03-02 22:05:32,319 [3    ] NetCore.StaticFiles.StaticFileMiddleware - The file /lib/lodash.min.js was not modified
INFO  2018-03-02 22:05:32,319 [3    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.7362ms 304 application/javascript
INFO  2018-03-02 22:05:32,321 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/lib/highlight.9.1.0.pack_extended.js  
INFO  2018-03-02 22:05:32,315 [13   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/lib/handlebars-4.0.5.js  
INFO  2018-03-02 22:05:32,315 [10   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.7494ms 304 application/javascript
INFO  2018-03-02 22:05:32,323 [10   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/swagger-ui.min.js  
INFO  2018-03-02 22:05:32,323 [13   ] NetCore.StaticFiles.StaticFileMiddleware - The file /lib/handlebars-4.0.5.js was not modified
INFO  2018-03-02 22:05:32,323 [10   ] NetCore.StaticFiles.StaticFileMiddleware - The file /swagger-ui.min.js was not modified
INFO  2018-03-02 22:05:32,323 [13   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 7.9783ms 304 application/javascript
INFO  2018-03-02 22:05:32,323 [10   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.485ms 304 application/javascript
INFO  2018-03-02 22:05:32,323 [4    ] NetCore.StaticFiles.StaticFileMiddleware - The file /lib/highlight.9.1.0.pack_extended.js was not modified
INFO  2018-03-02 22:05:32,323 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 2.4633ms 304 application/javascript
INFO  2018-03-02 22:05:32,324 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/lib/highlight.9.1.0.pack.js  
INFO  2018-03-02 22:05:32,324 [4    ] NetCore.StaticFiles.StaticFileMiddleware - The file /lib/highlight.9.1.0.pack.js was not modified
INFO  2018-03-02 22:05:32,324 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.6443ms 304 application/javascript
INFO  2018-03-02 22:05:32,316 [8    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/lib/backbone-min.js  
INFO  2018-03-02 22:05:32,326 [8    ] NetCore.StaticFiles.StaticFileMiddleware - The file /lib/backbone-min.js was not modified
INFO  2018-03-02 22:05:32,326 [8    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 10.1411ms 304 application/javascript
INFO  2018-03-02 22:05:32,327 [12   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/lib/swagger-oauth.js  
INFO  2018-03-02 22:05:32,328 [9    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/lib/jsoneditor.min.js  
INFO  2018-03-02 22:05:32,328 [12   ] NetCore.StaticFiles.StaticFileMiddleware - The file /lib/swagger-oauth.js was not modified
INFO  2018-03-02 22:05:32,328 [9    ] NetCore.StaticFiles.StaticFileMiddleware - The file /lib/jsoneditor.min.js was not modified
INFO  2018-03-02 22:05:32,328 [12   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1.0163ms 304 application/javascript
INFO  2018-03-02 22:05:32,328 [9    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.4996ms 304 application/javascript
INFO  2018-03-02 22:05:32,328 [11   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/lib/marked.js  
INFO  2018-03-02 22:05:32,329 [11   ] NetCore.StaticFiles.StaticFileMiddleware - The file /lib/marked.js was not modified
INFO  2018-03-02 22:05:32,330 [11   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1.4258ms 304 application/javascript
INFO  2018-03-02 22:05:32,336 [3    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/images/logo_small.png  
INFO  2018-03-02 22:05:32,337 [3    ] NetCore.StaticFiles.StaticFileMiddleware - The file /images/logo_small.png was not modified
INFO  2018-03-02 22:05:32,337 [3    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.6954ms 304 image/png
INFO  2018-03-02 22:05:32,341 [13   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/css/print.css  
INFO  2018-03-02 22:05:32,342 [13   ] NetCore.StaticFiles.StaticFileMiddleware - The file /css/print.css was not modified
INFO  2018-03-02 22:05:32,342 [13   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.6348ms 304 text/css
INFO  2018-03-02 22:05:32,474 [12   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/swagger/v1/swagger.json  
INFO  2018-03-02 22:05:32,940 [12   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 465.5936ms 200 application/json
INFO  2018-03-02 22:08:32,338 [11   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS http://localhost:22742/AbpUserConfiguration/GetAll  
INFO  2018-03-02 22:08:32,348 [11   ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:32,352 [11   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 13.9804ms 204 
INFO  2018-03-02 22:08:32,381 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/AbpUserConfiguration/GetAll application/json 
INFO  2018-03-02 22:08:32,381 [4    ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:32,399 [4    ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:32,402 [4    ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) with arguments ((null)) - ModelState is Valid
INFO  2018-03-02 22:08:32,788 [6    ] matters.Json.Internal.JsonResultExecutor - Executing JsonResult, writing value Abp.Web.Models.AjaxResponse.
INFO  2018-03-02 22:08:32,837 [6    ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) in 438.1013ms
INFO  2018-03-02 22:08:32,838 [6    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 457.4308ms 200 application/json; charset=utf-8
INFO  2018-03-02 22:08:32,851 [3    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations  
INFO  2018-03-02 22:08:32,851 [3    ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:32,851 [3    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.1469ms 204 
INFO  2018-03-02 22:08:32,855 [10   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations application/json 
INFO  2018-03-02 22:08:32,855 [10   ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:32,864 [10   ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:33,594 [10   ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method GunMantra.CryptoExchange.Sessions.SessionAppService.GetCurrentLoginInformations (GunMantra.CryptoExchange.Application) with arguments ((null)) - ModelState is Valid
INFO  2018-03-02 22:08:33,719 [14   ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext.
INFO  2018-03-02 22:08:33,731 [14   ] ore.Mvc.Internal.ControllerActionInvoker - Executed action GunMantra.CryptoExchange.Sessions.SessionAppService.GetCurrentLoginInformations (GunMantra.CryptoExchange.Application) in 866.5311ms
INFO  2018-03-02 22:08:33,731 [14   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 875.3876ms 200 application/json; charset=utf-8
INFO  2018-03-02 22:08:34,948 [3    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS http://localhost:22742/api/TokenAuth/GetExternalAuthenticationProviders  
INFO  2018-03-02 22:08:34,948 [3    ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:34,948 [3    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.1644ms 204 
INFO  2018-03-02 22:08:35,003 [9    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/api/TokenAuth/GetExternalAuthenticationProviders application/json 
INFO  2018-03-02 22:08:35,003 [9    ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:35,007 [9    ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:35,236 [9    ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method GunMantra.CryptoExchange.Web.Controllers.TokenAuthController.GetExternalAuthenticationProviders (GunMantra.CryptoExchange.Web.Core) with arguments ((null)) - ModelState is Valid
INFO  2018-03-02 22:08:35,253 [6    ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext.
INFO  2018-03-02 22:08:35,253 [6    ] ore.Mvc.Internal.ControllerActionInvoker - Executed action GunMantra.CryptoExchange.Web.Controllers.TokenAuthController.GetExternalAuthenticationProviders (GunMantra.CryptoExchange.Web.Core) in 246.7012ms
INFO  2018-03-02 22:08:35,253 [6    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 250.8264ms 200 application/json; charset=utf-8
INFO  2018-03-02 22:08:40,159 [12   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS http://localhost:22742/api/TokenAuth/Authenticate  
INFO  2018-03-02 22:08:40,159 [12   ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:40,159 [12   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.1502ms 204 
INFO  2018-03-02 22:08:40,163 [8    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST http://localhost:22742/api/TokenAuth/Authenticate application/json 151
INFO  2018-03-02 22:08:40,163 [8    ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:40,182 [8    ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:40,301 [8    ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method GunMantra.CryptoExchange.Web.Controllers.TokenAuthController.Authenticate (GunMantra.CryptoExchange.Web.Core) with arguments (GunMantra.CryptoExchange.Web.Models.TokenAuth.AuthenticateModel) - ModelState is Valid
INFO  2018-03-02 22:08:40,650 [23   ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext.
INFO  2018-03-02 22:08:40,652 [23   ] ore.Mvc.Internal.ControllerActionInvoker - Executed action GunMantra.CryptoExchange.Web.Controllers.TokenAuthController.Authenticate (GunMantra.CryptoExchange.Web.Core) in 470.5572ms
INFO  2018-03-02 22:08:40,656 [23   ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 493.9043ms 200 application/json; charset=utf-8
INFO  2018-03-02 22:08:43,248 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS http://localhost:22742/AbpUserConfiguration/GetAll  
INFO  2018-03-02 22:08:43,248 [4    ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:43,248 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.1958ms 204 
INFO  2018-03-02 22:08:43,267 [11   ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/AbpUserConfiguration/GetAll application/json 
INFO  2018-03-02 22:08:43,268 [11   ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:43,299 [11   ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token.
INFO  2018-03-02 22:08:43,303 [11   ] uthentication.JwtBearer.JwtBearerHandler - AuthenticationScheme: Bearer was successfully authenticated.
INFO  2018-03-02 22:08:43,339 [23   ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO  2018-03-02 22:08:43,340 [23   ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) with arguments ((null)) - ModelState is Valid

Hello,

I am facing a strange issue.I am using Pomelo.EntityFrameworkCore.MySql connector for my app. Its a single tenant app.

Scenario 1 (Host without debugging): When I run the application host without debugging, the login page loads fine but when i enter the admin username and password. it sticks to loading page and pops up an error message after few minutes (see screenshots).

On network tab on chrome's dev tools, It looks like it is waiting for <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a>. which never returns any value and after few minutes the request is getting timeout.

but if I try to load directly on browser <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a>, it loads fine without any issue.

Scenario 2 (Host with debugger attached): When I run the host in debugging mode. The app is running without any issue.

After I run the application in debugging mode and load the frontend on browser it loads fine. after loading the frontend for few times. if I stop the debugging session on host and run the host again without debugging. then again it loads fine. I believe it's due to caching of some configuration.

Is there any explanation for this? any suggestion to fix the issue?

Regards, Gunpal Jain

Screenshots:

@devkev2403

Is there any chance you can share the codes for your new OnlineClientManager?

Regards, Gunpal Jain

I believe this is related to license code of AbpNetZero.

Please check if you have correct AbpZeroLicenseCode in appsettings.json. and this is being assigned correctly in Module file. like this:

public override void PreInitialize()
        {
         
            Configuration.Modules.AspNetZero().LicenseCode = _appConfiguration["AbpZeroLicenseCode"];

            base.PreInitialize();
        }

Hello,

I am not an expert in distributed systems, I am trying to figure out a solution for my problem.

I have three separate application domains for my web app, I want to deploy them to three different servers. I need these servers to communicate each other and notify on various events. for example:

Let say a user submits a form on web browser. it will go to my application service server, this server would need to call a backend service on my other server (say server 2). now server 2 will perform some task and will call back the server 1 and also notify the server 3 (server 3 would be sending email and sms notifications for the performed task).

  1. So, my question is how can I forward the authentication token from application service on server 1 to server 2.
[AbpAuthorize]
public async Task<MyOutputDto> ForwardItToServer2(MyInputDto input)
        {           
            //Forward This to Server 2
            myServer2Client.Call(input);
        }

I don't want to pass user id or any user identifier while calling to server 2. I need server 2 to identify user id by the token or cookies.

  1. my server 2 is handling background jobs. So, how can I forward signalr notifications from server 2 to web browser via server 1? i.e. server 2 would notify server 1 then it will be forwarded to web browser.

I don't want to use callback urls on server 1. I want to make it work with some realtime bus like signalr. I can't directly connect the frontend to server 2 either.

Is there any solution for this? Or Am I going in wrong direction with this approach? I am feeling like I am missing something basic.

I hope i am clear about my problem.

Regards, Gunpal Jain

Question

Hello,

I have few questions:

  1. I need to code my application services in different module than provided with startup project. So, can I call CreateControllersForAppServices function multiple times for different application modules to create controllers for my application services, like this:
Configuration.Modules.AbpAspNetCore()
                .CreateControllersForAppServices(
                    typeof(MyApplicationModule).GetAssembly()
                );
 Configuration.Modules.AbpAspNetCore()
                .CreateControllersForAppServices(
                    typeof(MyApplicationModule2).GetAssembly()
                );
Configuration.Modules.AbpAspNetCore()
                .CreateControllersForAppServices(
                    typeof(MyApplicationModule3).GetAssembly()
                );
  1. Can I create my application services with open source abp boilerplate and integrate them to aspnetzero api project?

What I am trying to do here is create 3 different domains for my application which will handle different concerns for my application.

Thanks, Gunpal Jain

Showing 1 to 10 of 28 entries