DocSpace-buildtools/thirdparty/AppLimit.CloudComputing.SharpBox/StorageProvider/CIFS/CIFSConfiguration.cs

50 lines
1.4 KiB
C#
Raw Normal View History

2020-03-13 13:40:58 +00:00
using System;
namespace AppLimit.CloudComputing.SharpBox.StorageProvider.CIFS
{
/// <summary>
/// This class implements all BoxNet specific configurations
/// </summary>
public class CIFSConfiguration : ICloudStorageConfiguration
{
private bool _trustUnsecureSslConnections;
/// <summary>
/// ctor of the Box.Net configuration
/// </summary>
public CIFSConfiguration(string path)
{
ServiceLocator = new Uri(path);
}
/// <summary>
/// Specifies if we allow not secure ssl connections
/// </summary>
public bool TrustUnsecureSSLConnections
{
get { return _trustUnsecureSslConnections; }
set { _trustUnsecureSslConnections = value; }
}
#region ICloudStorageConfiguration Members
private CloudStorageLimits _limits = new CloudStorageLimits { MaxDownloadFileSize = -1, MaxUploadFileSize = -1 };
/// <summary>
/// Sets or gets the limits of a webdav configuration
/// </summary>
public CloudStorageLimits Limits
{
get { return _limits; }
set { _limits = value; }
}
/// <summary>
/// Gets the webdav service url
/// </summary>
public Uri ServiceLocator { get; set; }
#endregion
}
}