Posts by rhgm • 99 points
11 posts
-
0
votes0
answers53
viewsQ: Is using a web api like dll possible?
After the Publish of a Web API project I added in the dll references of this API in another Solution, the intention is to "consume" this API without httpclient, to access the controller methods of…
-
1
votes1
answer97
viewsA: JWT and Identity MVC 5
I found the answer, in case someone has the same question here: jwt + mvc Identity…
-
1
votes1
answer97
viewsQ: JWT and Identity MVC 5
Salve galera, I’m looking for how to use both (JWT with Identity MVC 5), but I can’t find anything about it, I just found it for Identity . Net Core 2, this is not good for me because the…
-
-1
votes1
answer131
viewsA: Unity and Unitofwork
The best solution for my case was this: Unitofwork public class UnitOfWork : IUnitOfWork { private MyMoneyContext context = new MyMoneyContext(); private TransactionRepository transactionRepository;…
-
1
votes1
answer131
viewsQ: Unity and Unitofwork
Salve galera, I created a small project to apply Ioc using the Unity MS. First I always used the concept of Unitofwork just instantiated it into my controllers, But now I want to inject them. When I…
-
0
votes1
answer380
viewsQ: Problems in Master Detail navigation in Xamarin Forms
I’m having problems understanding how the Master Detail type navigation works in Xamarin Forms, let’s go to my code as it is now: 1- I created a interface for navigation: using…
-
0
votes1
answer327
viewsA: Problems accessing a web api in a Xamarin Forms project
I was able to resolve by changing the post to not run asynchronously: var response = await client.PostAsync(Url, content).ConfigureAwait(false); So it worked in the console application, there it was…
-
0
votes1
answer327
viewsQ: Problems accessing a web api in a Xamarin Forms project
On my first screen of mine app mobile what I’m doing is the screen of Login, but whenever I try to log the return is Statuscode: 404, Reasonphrase: 'Not Found' I have confirmed and the uri is…
-
0
votes1
answer180
viewsA: Defining a property within a Bsondocument
I understand the syntax: var mongoSales = transactionsColl.Aggregate() .Match(BsonDocument.Parse("{ 'saleDate': { $lte: ISODate('" + timeStamp.ToString("o") + "') } }")) .Group(new BsonDocument {…
-
0
votes1
answer180
viewsQ: Defining a property within a Bsondocument
Salve galera! I’m working with c# Mongodb . Net Driver, and there’s something I don’t understand in the queries, follow the example: var dataBase = mongoClient.GetDatabase(dbName); var…
-
5
votes1
answer482
viewsQ: ASP.NET Identity and Web API - Problem to register new user
I have a Web API project and I’m using Identity to manage user accounts, my controller is like this: public async Task<IHttpActionResult> Register([FromBody]RegisterDto model) { if…