-
Using your latest preview from Nuget...when I try to use the IDataPortalFactory in my business class factory like so: public class BetaInfoListFactory : DemoReadOnlyListBaseFactory<BetaInfoList, BetaInfo>, IBusinessObjectListFactory
{
public BetaInfoListFactory(IDataPortalFactory portal, ApplicationContext applicationContext)
{
Portal = portal.GetPortal<BetaInfoList>(); I get this error: Based on some SO answers...I changed this (line 388) in your ApplicationContext.cs: result = ActivatorUtilities.CreateInstance(CurrentServiceProvider, objectType, parameters); to be this: result = CurrentServiceProvider.GetService(objectType); Then it works. Figured I would share with you my findings. EDIT: @rockfordlhotka Confirmed I get the same error in your BlazorExample, by changing as follows: @inject Csla.IDataPortalFactory portalFactory and below OnParametersSetAsync() to this: var personListPortal = portalFactory.GetPortal<PersonList>();
await vm.RefreshAsync(() => personListPortal.FetchAsync()); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Your latest PR fixes this :-) |
Beta Was this translation helpful? Give feedback.
Your latest PR fixes this :-)