Base solution for your next web application
Open Closed

Using application services from external class lib #656


User avatar
0
patrickglaudemans created

Hi,

(by mistake I also posted this question in non premium zero. If preferred, you can delete it there - sorry)

I'm developing a .net windows service. I want to connect this service to my zero application layer. The application layer still follows the initial setup. Api controllers are therefore dynamically created.

  1. I want to connect to the application layer with REST. What is the best way to set that up with ExternalBearer token etc.
  2. I want to connect an angular file upload call to my application service. Therefore, I have to enhance the Web Api wrapper controller. Should I then manually create the web api controller? How should i do that? I want to create something like this: public class FilesController : ApiController { [HttpPost] // This is from System.Web.Http, and not from System.Web.Mvc public async Task<HttpResponseMessage> Upload() { if (!Request.Content.IsMimeMultipartContent()) { this.Request.CreateResponse(HttpStatusCode.UnsupportedMediaType); } (...) etc.

Thanks for all your help in advance - hope others can gain something from it as well!


3 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team
  • User Avatar
    0
    tteoh created

    <cite>hikalkan: </cite> Answered here: <a class="postlink" href="http://forum.aspnetboilerplate.com/viewtopic.php?f=3&t=784&p=2709#p2709">http://forum.aspnetboilerplate.com/view ... 2709#p2709</a>

    @hikalkan this link is not working. Pls advice the correct link.

    Thanks /tommy

  • User Avatar
    0
    alper created
    Support Team

    here's the valid link #655