Posts by AlexQL • 145 points
9 posts
-
1
votes1
answer44
viewsA: Doubt on authentication/authorization based on access profiles with Webapi Asp.Net Core MVC
In this profile permission format, I used the Claims to solve the problem. It is possible to send, for example, multiple "Role" type Claims, placing each of the permissions in these Claims.…
-
1
votes1
answer44
viewsQ: Doubt on authentication/authorization based on access profiles with Webapi Asp.Net Core MVC
I have here a Windows Forms + Sybase application that has an authentication scheme based on access profiles. The diagram of the database is as follows: On the table Permission we have descriptions…
-
2
votes3
answers290
viewsA: How to make compatible objects coming from two different classes, derived from the same interface?
From what I’ve been going through, what I missed in my code was that dependency injection. My mistake (according to my analysis) was to want to reference an object of a class from another object of…
-
4
votes3
answers290
viewsQ: How to make compatible objects coming from two different classes, derived from the same interface?
I have an interface (I’ll call it ICliente) which is used as a contract between an application and a DLL. public interface ICliente { int Id {get; set;} string Nome {get; set;} ... } This interface…
-
0
votes1
answer77
viewsQ: C# - How to create an implementation contract with subclasses to be implemented?
I would like to create an interface (called Interfacex) interface InterfaceX { ... } Where your future implementation returns the following structure:…
-
0
votes1
answer137
viewsQ: How to bring an application forward(from the background to foreground)?
I’m finishing an app where the person runs it but usually it is minimized, running in the background. The person executes it, but a lot of the time the person can be playing with other things on the…
-
1
votes1
answer43
viewsQ: Add Beforeclick and Afterclick events to a button
I created a new class that inherits the Button component. I’ll call this class "Novobutton". This Novobutton will work as the traditional Button, but the onClick event needs to run 2 more new…
-
0
votes1
answer153
viewsQ: Has "Pure virtual Function called" error occurred using Delphi 2009? How to resolve?
Whenever I am debugging a console application by Delphi 2009 (using the "Attach to Process" feature) an error message appears in the IDE saying "Pure virtual Function called". When I click on the OK…
-
4
votes2
answers992
viewsQ: Is it possible to pass a method as a parameter to run on a thread?
I have an application where each process is called by a single method and this process needs to run in a thread. The code of the threads is identical in all, changing only the content of the method…