I have setup my Web Startup.cs define the clock to be UTC, but the executionTime on Db loggged for AbpAuditLogs is in server time. How can i change it to be TC public void Configuration(IAppBuilder app) Clock.Provider = ClockProviders.Utc;
i have my route defined using , but when i switch between diffrent route how can i use abp.ui.busy() to display loading icon? currently it does not display anything indicating a load is in progress.
$stateProvider
.state('home', {
url: '/',
templateUrl: '/App/Main/views/home/home.cshtml',
menu: 'Home' //Matches to name of 'Home' menu in EMRNavigationProvider
})
with use of dynamic web api and injected session how is the session locked handled for concurrent request from same session?
For example in controller you can mark Controller as a session Readonly which will allow parallel ajax request from same user to be processed at the same time, default behavior is that when session is in use it locks the session and does not permit parallel ajax request to process in parallel instead it makes them synchronous.
<a class="postlink" href="http://johnculviner.com/asp-net-concurrent-ajax-requests-and-session-state-blocking/">http://johnculviner.com/asp-net-concurr ... -blocking/</a>
so how does the session lock work in abp?
i was able to GUESS what my problem was , but ABP should be able to throw those exception above. it was in DI layer i think. because i had my class defined as
public partial class PersonDataRepository : , IPersonDataRepository
{
}
public interface IPersonDataRepositoryExtended : IPersonDataRepository
{
}
public partial class PersonDataRepository : IPersonDataRepositoryExtended, ISingletonDependency
{
}
and i had depndency on IPersonDataRepositoryExtended
I am not able to see the detail of error message after a call is made to a service endpoint via abp dynamic web api. it does not hit any breakpoints it does not have any in log file . it only shows a pop up saying [object object ] internal server error . i also added code below in my web project and it does not execute it either. it seems the error does not bubble up throught the web application and its consumed by abp modules. i am using abp 0.91
public class MyExceptionHandler : IEventHandler<AbpHandledExceptionData>, ITransientDependency
{
public ILogger Logger { get; set; }
public void HandleEvent(AbpHandledExceptionData eventData)
{
Logger.Info(eventData.EventSource.ToString(), eventData.Exception);
}
}
any idea?
I added MySettingProvider under core project
public class MYSettingProvider : SettingProvider
{
public const string SearchResultPageSize = "SearchResultPageSize";
public override IEnumerable<SettingDefinition> GetSettingDefinitions(SettingDefinitionProviderContext context)
{
return new[]
{
new SettingDefinition(
SearchResultPageSize,
"10"
),
};
}
Then Under MYCoreModule.cs
Configuration.Settings.Providers.Add<MYSettingProvider>();
Then under application Service project
SettingManager.GetSettingValue<int>(MYSettingProvider.PSearchResultPageSize);
}
Above code works when i run web project
But when i try to run my Unit Test and call service method under application project it fails with SettingManager being null. i tried adding below under MyTestModule with no success any ideas?
Configuration.Settings.Providers.Add<MySettingProvider>();
Found out that you need to use per project
: AbpModule { public override void Initialize() { IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly()); }
I added a new Proejct to solution on top of template given by aspnetboilerplate.com. i added a class like following
using Abp.Dependency;
public class CardManager: ICardManager, ISingletonDependency
{
.
.
.
}
My Application Project service class(CardAppService) has dependency on this class and on my Unit Test _cardAppService = Resolve<CardAppService>(); it fails saying An exception of type 'Castle.MicroKernel.Handlers.HandlerException' occurred in Castle.Windsor.dll but was not handled in user code
Additional information: Can't create component 'EMR.Card.CardAppService' as it has dependencies to be satisfied.
'EMR.Card.CardAppService' is waiting for the following dependencies: - Service 'EMR.Manager.Service.ICardManager' which was not registered.
i was in a impression that if you have ISingletonDependency or ITransientDependency it gets registered up automatically.
With Menu Provider do we have examples on how to do a nested menu for two levels like
Menu1
Menu2
Menu2Level1
Menu2Level1Child1
Menu2Level1Child1
Menu3
this is for angular template