Beispiel #1
0
 public GetStorageConfigurationResult GetConfiguration(GetStorageConfigurationRequest request)
 {
     return(new GetStorageConfigurationResult
     {
         Configuration = Configuration
     });
 }
 public GetStorageConfigurationResult GetConfiguration(GetStorageConfigurationRequest request)
 {
     return new GetStorageConfigurationResult
     {
         Configuration = Configuration
     };
 }
		// TODO (CR Jun 2012): Move to a helper class?

		#region Implementation of IStorageConfiguration

		public GetStorageConfigurationResult GetConfiguration(GetStorageConfigurationRequest request)
		{
			var storageSettings = new StorageSettings();
			var deletionSettings = new StudyDeletionSettings();

			var configuration = new StorageConfiguration
			                    	{
			                    		FileStoreDirectory = storageSettings.FileStoreDirectory,
			                    		MinimumFreeSpacePercent = storageSettings.MinimumFreeSpacePercent,
			                    		DefaultDeletionRule = new StorageConfiguration.DeletionRule
			                    		                      	{
			                    		                      		Enabled = deletionSettings.Enabled,
			                    		                      		TimeUnit = deletionSettings.TimeUnit,
			                    		                      		TimeValue = deletionSettings.TimeValue
			                    		                      	}
			                    	};

			Complete(configuration);
			return new GetStorageConfigurationResult {Configuration = configuration};
		}
Beispiel #4
0
        // TODO (CR Jun 2012): Move to a helper class?

        #region Implementation of IStorageConfiguration

        public GetStorageConfigurationResult GetConfiguration(GetStorageConfigurationRequest request)
        {
            var storageSettings  = new StorageSettings();
            var deletionSettings = new StudyDeletionSettings();

            var configuration = new StorageConfiguration
            {
                FileStoreDirectory      = storageSettings.FileStoreDirectory,
                MinimumFreeSpacePercent = storageSettings.MinimumFreeSpacePercent,
                DefaultDeletionRule     = new StorageConfiguration.DeletionRule
                {
                    Enabled   = deletionSettings.Enabled,
                    TimeUnit  = deletionSettings.TimeUnit,
                    TimeValue = deletionSettings.TimeValue
                }
            };

            Complete(configuration);
            return(new GetStorageConfigurationResult {
                Configuration = configuration
            });
        }