Open chuanboz opened 6 years ago
@vturecek, @amanbha - is it possible to get an official view on switching to IHost? IWebHost is deprecated and we're not sure if it's worth using this library as this issue has been around for more than 2 years now with no promises in sight.
I found this old but still open issue and I wonder if it's related with the problems I'm having to get Autofac in an AspNet Core 3.1 application working for service fabric and Test Support, as I asked here.
Can I ask you guys how do you use the TestServer with an aspnet core project that runs in Service Fabric when there is such a difference in the way the Program.cs
and Startup.cs
work?
something new on GenericHost with ServiceFabric?
Hi all, Any update on this ?
Just noting we discussed briefly on community call 51, still need to get work booked to get this completed. Will update when we get something committed.
Is there any update on this?
is that completely ignored here?
Just noting we discussed briefly on community call 51, still need to get work booked to get this completed. Will update when we get something committed.
since 18 Feb no update? :-(
I noticed that recently a pull request #96 was merged into the develop branch, which enables the support of the IHost.
Hi @ThiemeNL and everyone, We are taking a two step approach to implement this workitem 1) Enable users to use IHostBuilder/IHost interfaces to build service fabric aspnet services With this the current developer experience remains almost the same except that they could now use GenericHost instead of WebHost to build a communication listener 2) Define a new host implementation for service fabric We are currently working on the design and would be updating the thread with the proposal in few days
Been almost a month and release of .net 6 has been out about a week now and I noticed PR 96 as well. Any updates?
This may not be the right place for this, but are there any plans for a Service Fabric Template for .net 6 hosting Blazor Web Assembly for Visual Studio 2022?
@PavanKunapareddyMSFT When do you expect to release an updated Microsoft.ServiceFabric.AspNetCore.Kestrel
package with the IHost
support?
Generic host support seems to be included in the latest version libraries (5.2.1363). Not mentioned in release notes though.
@PavanKunapareddyMSFT Would you be able to give us an update on:
- Define a new host implementation for service fabric We are currently working on the design and would be updating the thread with the proposal in few days
please?
It's now supported starting v5.2.1363 of Microsoft.ServiceFabric.AspNetCore.Kestrel : https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-communication-aspnetcore#ihost-and-minimal-hosting-integration
asp.net core is refactor with generic host in https://github.com/aspnet/Hosting/issues/1163 that has better support on DI and lifecycle management etc, but I do not see an integration for the ServiceFabric-AspnetCore.
the ask is to provide a ServiceFabricHost that implement IHost interface, to wrap the generic logic to register service type and also creating service instance.
here are specific difference for Service Fabric that deserve its own ServiceFabricHost:
here are sample scenario usage: