Firas
Firas

Reputation: 106

Communication from WPF application to ASP.NET Core Application

So i'm making a point of sales (POS) system and require communication between a WPF Client application and a ASP.NET Core application. I was initially looking to use WCF (where you would tag properties and classes with attributes and generate service references on the client-side) but i'm trying to learn ASP.NET Core. Is there an equivalent of this 'meta-data' sharing between the two endpoints? i.e. auto generate service references on client-side from classes located on server-side.

If not... what is the best way (best practice method) to:

  1. Communicate between the client and server
  2. Share meta-data between the client and server

FYI: I am also using entity framework core if you need to know

Upvotes: 2

Views: 1994

Answers (1)

Thiago Custodio
Thiago Custodio

Reputation: 18387

I would recommend a webapi rather than WCF, since it's light and easier to use. With webapi, you can generate REST client that will make your life easier, or you can fire http requests directly if you prefer.

To create a REST client, check this link: https://learn.microsoft.com/en-us/dotnet/csharp/tutorials/console-webapiclient

Upvotes: 1

Related Questions