示例#1
0
        public EnvironmentHandler(string bucketName, string bucketRegionString, string postsDirectory,
                                  string imagesDirectory, string metaDirectory)
        {
            Instance = new EnvironmentHandler();

            Instance.BucketName         = bucketName;
            Instance.BucketRegionString = bucketRegionString;
            Instance.PostsDirectory     = postsDirectory;
            Instance.ImagesDirectory    = imagesDirectory;
            Instance.MetaDirectory      = metaDirectory;
        }
示例#2
0
 public static EnvironmentHandler GetEnvironmentHandler()
 {
     if (Instance != null)
     {
         return(Instance);
     }
     else
     {
         Instance = new EnvironmentHandler();
         return(Instance);
     }
 }