private void Init(Uri uri, string uriBaseId, Region region)
{
if (uri != null)
{
Uri = new Uri(uri.OriginalString, uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative);
}
UriBaseId = uriBaseId;
if (region != null)
{
Region = new Region(region);
}
}
}