Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UrlHelper" /> class.
 /// </summary>
 /// <param name="propertiesService">The properties service.</param>
 /// <param name="propertyPrefix">The property prefix.</param>
 public UrlHelper(IPropertiesService propertiesService, string propertyPrefix)
 {
     _scheme        = propertiesService.GetValue <string>(propertyPrefix + "Scheme");
     _serverAddress = propertiesService.GetValue <string>(propertyPrefix + "ServerAddress");
     _path          = propertiesService.GetValue <string>(propertyPrefix + "ServicePath");
     _port          = propertiesService.GetValue <int>(propertyPrefix + "Port");
 }