// static constructor static ProviderPhoto() { _generator = new UniqueKeyGenerator(); _uriRoot = new Uri(InsideWordWebSettings.HostName); if (!IWStringUtility.TryUriConcat(_uriRoot, Links.Content.img.Url(), out _photoAbsolute) || !IWStringUtility.TryUriConcat(_photoAbsolute, PhotoFolder, out _photoAbsolute)) { throw new Exception("ProviderPhoto failed to create the _photoAbsolute path from: "+ _uriRoot.AbsoluteUri + ", " + Links.Content.img.Url() + ", " + PhotoFolder); } _photoPhysical = HostingEnvironment.MapPath(Links.Content.img.Url() + "\\" + PhotoFolder); }
// Static constructor static ProviderIssuedKey() { _keyGenerator = new UniqueKeyGenerator(); }