Web api for ASP.NET - how to create a stream of objects

It will be a kind of subjective question, but he still wants to raise it here.

I plan to build a stream stream, for example fb, which will contain objects such as a text message, * embedded videos *, images, polls, etc. Since I only have a little knowledge in ASP.NET web forms, I plan to use the same ones. My question is, which method / approach is most suitable for thread development?

Would it be useful to choose a web API in an ASP.NET web form or should I rely only on ASP.NET MVC? How can I display different types of objects in one list (stream)? What I find impossible with datalist, repeater, gridview, etc.

This may seem like a subjective question, but it may have value with a perception of architecture.

+8
architecture asp.net-web-api asp.net-mvc-4
source share
3 answers

Me, because the web API was built on some components of ASP.NET MVC. These are just different Http packages. Therefore, we only need to know how to handle binary streaming in the ASP.NET Web API. I searched and found out some useful things on the Internet, for example

All this is a good link if you want to do something like this.

+3
source share

WebAPI is not an interface / presentation. It's about accessing and consuming data over http. So this is not a WebAPI or ASP.NET MVC event. It is about using everyone where necessary. Having said that for the script of your flow, a website can be created using ASP.NET MVC. Data for your stream can be provided through the WebAPI. And you can invoke WebAPI from the MVC site via AJAX.

0
source share

WebAPI is an HTTP service Designed for widespread use Uses HTTP as an application protocol, not a transport protocol.

0
source share

All Articles