
This solution can introduce some overhead in processing and might not be suitable for high-traffic scenarios. You might need to adjust the code to handle other types of assets or special cases. Keep in mind that this is a simple example, and it might not cover all cases.
This example rewrites URLs of images, CSS, and JavaScript files to point to your proxy endpoint.
Make sure to replace with the actual URL of your proxy API. If (Uri.IsWellFormedUriString(url, UriKind.Absolute)) Script.Source = RewriteUrl(script.Source) Ĭontent = Link.SetAttribute( "href", RewriteUrl(link.GetAttribute( "href"))) įoreach ( var script in document.Scripts) Rewrite asset URLs to point to the proxy endpoint foreach ( var img in document.Images)įoreach ( var link in document.QuerySelectorAll( "link")) Var document = await parser.ParseDocumentAsync(content) For more complex scenarios or for better performance, consider using a dedicated reverse proxy server like NGINX or a library like YARP (Yet Another Reverse Proxy) for ASP.NET Core. Keep in mind that this is a simple example and may not cover all use cases. You can add support for other HTTP methods (POST, PUT, DELETE, etc.) by adding corresponding action methods in the Prox圜ontroller class. This example sets up a simple proxy that forwards all incoming GET requests to the specified target API. Make sure to replace with the actual URL of the target API. Add additional methods (POST, PUT, DELETE) if needed. Return new FileStreamResult(content, .ToString()) Using var httpResponse = await _httpClient.GetAsync(requestUri) Var requestUri = new Uri( new Uri(TargetApiBaseUrl), path) Public Prox圜ontroller( HttpClient httpClient) Private const string TargetApiBaseUrl = "" Specifically, Microsoft To Do doesn't currently support the start and end dates, task status, task completion percentage, multiple priority levels, task work hours, task colors, or categories that are available in Outlook Tasks.Public class Prox圜ontroller : ControllerBase While data you enter in additional details in Outlook Tasks will be stored safely on the servers, it won't be displayed in To Do.
Microsoft To Do doesn’t yet support all the varied features of Outlook Tasks. All tasks are stored on Exchange Online servers, so they'll be shown in both Microsoft To Do and Outlook Tasks automatically. To view your To Do tasks on your Outlook Desktop client or on, use the same Microsoft account to sign in to both Microsoft To Do and Outlook. One of Microsoft To Do’s features is an integration with Outlook Tasks.
Since your tasks are stored on Exchange Online servers, they'll also sync automatically to your Outlook Tasks.