OnPublished: Path property is empty

Topics: Writing modules
May 5, 2011 at 9:05 PM

Hi All, I tried to get value of Path property. I wrote a simple code fragment

OnPublished<RoutePart>((context, part) => {
                    if (!string.IsNullOrWhiteSpace(part.Path))
                        // do something here
When I click on the Publish button Path is empty, when pressed again, getting the correct value. Maybe I'm doing something wrong? Нow I can get the correct value after the first pressing?