Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddApplicationInsightsTelemetry("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")
- protected override IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners()
- {
- return new ServiceInstanceListener[]
- {
- new ServiceInstanceListener(serviceContext =>
- new HttpSysCommunicationListener(serviceContext, "ServiceEndpoint", (url, listener) =>
- {
- return new WebHostBuilder()
- .UseHttpSys()
- .ConfigureServices(
- services => services
- .AddSingleton<StatelessServiceContext>(serviceContext)
- .AddApplicationInsightsTelemetry("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"))
- .UseContentRoot(Directory.GetCurrentDirectory())
- .UseStartup<Startup>()
- .UseServiceFabricIntegration(listener, ServiceFabricIntegrationOptions.None)
- .UseUrls(url)
- .Build();
- }))
- };
- }
Add Comment
Please, Sign In to add comment