danesparza / owin-webapi-service Goto Github PK
View Code? Open in Web Editor NEW:white_check_mark: OWIN / WebAPI windows service example. Includes attribute based routing sample
License: MIT License
:white_check_mark: OWIN / WebAPI windows service example. Includes attribute based routing sample
License: MIT License
My project is .net core project. When I install Microsoft.AspNet.WebApi.OwinSelfHost I am getting warning. I need a requirement where I want to dockerize the test. If this is not .net core or standard compatible then I can't dockerize it.
Would like to see Steeltoe Service Discovery added to this project.
Dan,
I ran across your post on OWIN/WebAPI windows service example and learned a lot from it. I want to thank you for a well written post. I was able to follow and create my own windows service hosted in OWIN. However, I am now trying to add some basic authentication to the API. Have you done this? DO you have any sample code you can share with me or you can add to your article? I have seen some stuff out there on authentication with OWIN but nothing with on WebAPI windows service that is hosted by OWIN.
Thank you
Hi! When I run the service via net start, I get an error on the Event Log stating "Could not load file or assembly 'Microsoft.Owin, Version=2.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'"
How do I set the required assemblies for the service to run?
Thanks in advance!
This isnt working for me, the program isnt location the WebApi Controller...
JSON from PostMan...
{
Message: "No HTTP resource was found that matches the request URI 'http://localhost:9000/api/testing/getall'."
MessageDetail: "No type was found that matches the controller named 'testing'."
}
I have followed your tutorial and everything is working locally.
When I try to connect to the web api remotely, I am getting this Error: TimedOut (0x274c)
The port is listening accordingly to the one defined in the application as well as the urlacl set by the netsh command. Any ideas?
Hello,
Thank you for taking the time to put together this resource. It is now popular and at the top of search results for anyone looking to host WebAPI in a Windows Service. Please consider adding a link describing how to create a custom assemblies resolver into your discussion on discovering WebAPI controllers. I really liked the following article, which is simple, works great, and even goes in depth:
http://www.strathweb.com/2013/08/customizing-controller-discovery-in-asp-net-web-api/
I think this will help anyone else who finds this repo to get started even quicker. You could even include a sample assemblies resolver. I personally never heard of this, and unfortunately there are lots of things called "assembly resolvers" which don't refer to the concept you meant. For example:
etc..
Thank you for consideration despite an old repo.
in your main you are using APIServiceTest, which is ok for testing, but its not running the service forever as part of windows service.
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new APIServiceTest()
};
ServiceBase.Run(ServicesToRun);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.