예제 #1
0
 // 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);
 }
예제 #2
0
 // Static constructor
 static ProviderIssuedKey()
 {
     _keyGenerator = new UniqueKeyGenerator();
 }