I am just starting with service fabric and need assistance in bootstrapping the Asp.Net Web API from the stateful service fabic application. I went through the samples and docs ( https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-create-dotnet-app ) which use the template but i dont want to use .net core. I want to target .net 4.x.
So far, i created a stateful application which gave me the following functions -
protected override IEnumerable<ServiceReplicaListener> CreateServiceReplicaListeners()
{
return new ServiceReplicaListener[0];
}
protected override async Task RunAsync(CancellationToken cancellationToken)
{
}
In the same solution i added a Asp.Net Web API project. Now i want to bootstrap that web api from this service fabric application.
looking for any guidance in this regard.
Thanks.
Here is the link which talks about hosting a web api in console application. This can be used to host a web api in the service fabric application.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.