-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Edit and Continue with Windows host to Linux container #8173
Comments
The issue is an side effect of the way public ActionDescriptorCollection ActionDescriptors
{
get
{
if (_collection == null || _changeToken.HasChanged)
{
UpdateCollection();
_changeToken = GetChangeToken();
}
return _collection;
}
} |
@djhmateer, you could try using a custom implementation of
services.AddSingleton<IActionDescriptorCollectionProvider, PollingActionDescriptorCollectionProvider>();
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); I was able to verify locally that this addressed the issue you were seeing. |
Many thanks @pranavkm. The https://gist.github.com/pranavkm/10759ca15205c49e94ecd8739ae3a44a link gave me a compile error: Method must have a return type. I'm not quite sure how to resolve. public ActionDescriptorCollectionProvider1( |
@djhmateer Looks to me like that should be a constructor. Try the following constructor signature: public PollingActionDescriptorCollectionProvider (
IEnumerable<IActionDescriptorProvider> actionDescriptorProviders,
IEnumerable<IActionDescriptorChangeProvider> actionDescriptorChangeProviders) |
Yup, @scottaddie got it right. Fixed the gist with the correct type name. |
@scottaddie and @pranavkm much appreciated - yes I can confirm that this works. Very interesting and thank you for the explanation. |
The ChangeToken.OnChange pattern that's commonly used by providers to listen to changes requires IChangeToken to be active. The only two instances in the framework that does not support are the PollingChangeToken. This change makes the polling be active unless configured otherwise. Fixes aspnet/Mvc#8173
The ChangeToken.OnChange pattern that's commonly used by providers to listen to changes requires IChangeToken to be active. The only two instances in the framework that does not support are the PollingChangeToken. This change makes the polling be active unless configured otherwise. Fixes aspnet/Mvc#8173
The ChangeToken.OnChange pattern that's commonly used by providers to listen to changes requires IChangeToken to be active. The only two instances in the framework that does not support are the PollingChangeToken. This change makes the polling be active unless configured otherwise. Fixes aspnet/Mvc#8173
The ChangeToken.OnChange pattern that's commonly used by providers to listen to changes requires IChangeToken to be active. The only two instances in the framework that does not support are the PollingChangeToken. This change makes the polling be active unless configured otherwise. Fixes aspnet/Mvc#8173
The ChangeToken.OnChange pattern that's commonly used by providers to listen to changes requires IChangeToken to be active. The only two instances in the framework that does not support are the PollingChangeToken. This change makes the polling be active unless configured otherwise. Fixes aspnet/Mvc#8173
Moved from dotnet/AspNetCore.Docs#7707. See that issue for more context. Originally opened by @djhmateer. /cc: @mkArtakMSFT
The text was updated successfully, but these errors were encountered: