Open michaelcsikos opened 6 years ago
Has anyone had a chance to look at this yet? I still haven't got the the HttpProxy
and DataPortalController
working.
It's been almost a week, so maybe this SOS has fallen through the cracks. Forgive me for tagging a few of you directly: @rockfordlhotka @jonnybee @JasonBock
No problem with the tagging - I've been traveling and buried in various other aspects of my day job over the past few weeks, so my time to do CSLA stuff has been limited...
I'm not 100% sure what was going on initially. Here's what I did:
/api/Values
in the browser)localhost:12345/api/DataPortal
(the post method name shouldn't have been there)I issued a PR to your repo with the changes. I don't know if the identity stuff is working, but I do know the data portal calls now work.
Preamble I have started a proof of concept for a new app with the following project tiers:
The solution can be cloned or downloaded from here: https://github.com/michaelcsikos/CslaAspNetCoreIdentityTiers
I have created
AppUser
andRole
classes in Business, and createdAppUserStore
andRoleStore
classes in the AppService project. TheAppUserStore
implements enough of the Identity interfaces to get it going. There is quite a lot of code to basically replicate what Identity 3.0 already did, but if we want a clean design I think this is the way to go.Identity 2.0 required custom user and role classes to implement interfaces, but with Identity 3.0 this is no longer the case. So, the Business project does not have any references to Identity, which is great.
Following the Project Tracker example, the data access is separate with the Dal interface layer and DalEf implementation using Entity Framework Core. I have not added a DalMock or Tests yet.
Running the AppService up, Users can be registered, and log in and out is working.
My plan was to add a Xamarin UI, but I created the WindowsForms project to test if I had configured the
HttpProxy
andDataPortalController
correctly. Well, it's not right and I'm stuck.System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
Most of the CSLA examples are not quite the same (WCF, etc). I have set both the AppService and WindowsForms as startup projects, put the
ProxyTypeName
,DefaultUrl
andUser
in WindowsForms Program.cs, added the same toApp.config
. I have tried different ports and URLs.Please help If anyone can show me what I've missed or done wrong, I would be so grateful. I think the rest of the code is promising and could form the basis of a new .NET Core sample for CSLA.
Kind regards Michael
Version and Platform CSLA version: 4.7.101 OS: Windows Platform: WinForms, ASP.NET Core, MVC, (Xamarin later)