DD4T/DD4T.Providers.DxaModelService/TridionPageProvider.cs
/// <summary>
/// Gets the raw string (xml) from the broker db by URL
/// </summary>
/// <param name="Url">URL of the page</param>
/// <returns>String with page xml or empty string if no page was found</returns>
Gets the raw string (xml) from the broker db by URL
Gets the raw string ( xml ) from the broker db by URL
public string GetContentByUrl(string url)
        {
            LoggerService.Debug(">>DD4T.Providers.DxaModelService::GetContentByUrl({0})", LoggingCategory.Performance, url);
            string content = null;
            PageModelRequest req = new PageModelRequest
            {
                PublicationId = PublicationId,
                DataModelType = DataModelType.DD4T,
                PageInclusion = PageInclusion.INCLUDE,
                Path = url
            };
            try
            {
                content = ModelServiceClient.PerformRequest(req).Response;
            }
            catch
            {
            }
            return content;
        }
public string GetContentByUrl ( string url ) { LoggerService . Debug ( " " , LoggingCategory . Performance , url ) ; string content = null ; PageModelRequest req = new PageModelRequest { PublicationId = PublicationId , DataModelType = DataModelType . DD4T , PageInclusion = PageInclusion . INCLUDE , Path = url } ; try { content = ModelServiceClient . PerformRequest ( req ) . Response ; } catch { } return content ; }
Gets the raw string (xml) from the broker db by URL
Gets the raw string ( xml ) from the broker db by URL
//  LoggerService.Debug(">>DD4T.Providers.DxaModelService::GetContentByUrl({0}) returns {1}", LoggingCategory.Performance, url, content);
String with page xml or empty string if no page was found
String with page xml or empty string if no page was found
url
string
<not_specific>
Url
<not_specific>
URL of the page
URL of the page