Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@birojnayak
Copy link
Collaborator

bringing sitemap and menu to CoreWebForm.
Initially it would bring basic required components for #261

@birojnayak birojnayak requested a review from twsouthwick March 27, 2024 23:34
{
Page page = context.GetRequiredFeature<IHttpHandlerFeature>().Current as Page;

//TODO check with @taylor
Copy link
Collaborator Author

@birojnayak birojnayak Mar 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@twsouthwick take a look if there is a better way

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add an extension method for Page? GetCurrentPage(this HttpContext context)?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can now use context.AsSystemWeb().CurrentHandler now

AdapterInternal = null;

//TODO create issue
#if GetAdapter_BrowserCapabilities
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@twsouthwick should we handle here or in the adapter ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create an issue here and mark this with PORT_BROWSERCAPABILITIES - I like the PORT_ prefix for easily identifiying what's needed


// https://github.com/dotnet/systemweb-adapters/issues/497

// if (Page.Request.Browser.RequiresUniqueFilePathSuffix)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will create an internal issue

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

return null;

#if PORT_GetGlobalResourceProvider
// throw new NotImplementedException();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for times like this, use HttpRuntimeHelper.GetLogger<> to get a logger to message things out

</siteMap>
*/

public sealed class SiteMapSection : ConfigurationSection
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this internal, and I'd like to see a follow up that removes the config stuff and replaces it with an option

@twsouthwick
Copy link
Collaborator

@birojnayak are you still planning on pushing this through?

@birojnayak
Copy link
Collaborator Author

@twsouthwick yes.. give me sometime.

@birojnayak birojnayak force-pushed the Porting-more-controls branch 2 times, most recently from d67c855 to eb250c7 Compare May 30, 2024 23:03
Copy link
Collaborator

@twsouthwick twsouthwick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a couple of visibility things then LGTM

namespace System.Web.Configuration
{

public static class ProvidersHelper {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want any of the config stuff brought in. As an initial port, bringing it in as internal is fine but make sure to follow up with removing it

return request.CurrentExecutionFilePath;
}

public static Page GetCurrentPage(this HttpContext context) => context.GetRequiredFeature<IHttpHandlerFeature>().Current as Page;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use context.CurrentHandler now

_context.WriteLine($"Wrote result to {tempPath}");

Assert.AreEqual(expectedHtml.ReplaceLineEndings(), result.ReplaceLineEndings());
//TODO avoid this check, needed for Viewstate
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you create an issue to follow up here?

@birojnayak birojnayak force-pushed the Porting-more-controls branch 2 times, most recently from 1a95357 to 69945ad Compare May 31, 2024 00:33
@birojnayak birojnayak force-pushed the Porting-more-controls branch from 69945ad to 2a2c24b Compare May 31, 2024 00:57
@twsouthwick
Copy link
Collaborator

Please make sure the created issues aren't just "can you create an issue for this" - specify what needs to be done and link it to the tracking issue

@birojnayak
Copy link
Collaborator Author

Please make sure the created issues aren't just "can you create an issue for this" - specify what needs to be done and link it to the tracking issue

read the title of the issue... :)

@twsouthwick
Copy link
Collaborator

Yes but the content of the issue should be standalone. Still has my request in there which does not make sense to have

@twsouthwick
Copy link
Collaborator

twsouthwick commented Jun 3, 2024

Also on such a large pr force pushes make it difficult to do incremental reviews - we'll squash at the end so just pushing fixes allow me to quickly verify things are updated. I now have to go through the whole thing again

@birojnayak
Copy link
Collaborator Author

Also on such a large pr force pushes make it difficult to do incremental reviews - we'll squash at the end so just pushing fixes allow me to quickly verify things are updated. I now have to go through the whole thing again

will keep this in mind @twsouthwick ..

@twsouthwick twsouthwick merged commit 052b481 into CoreWebForms:main Jun 4, 2024
@birojnayak birojnayak deleted the Porting-more-controls branch March 5, 2025 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants