FileShareClientConfiguration
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Relativity.Transfer.FileShare
{
[Serializable]
public class FileShareClientConfiguration : ClientConfiguration
{
public const bool = true;
public const bool = false;
[ConfigurationDoc("fileshare-copy-directories", "Enables or disables whether directories should be copied to the target path.", true)]
public bool {
get {
return this.GetBooleanValue("fileshare-copy-directories", true);
}
set {
base["fileshare-copy-directories"] = value.ToString();
}
}
[ConfigurationDoc("fileshare-copy-subdirectories", "Enables or disables whether sub-directories should be copied to the target path.", false)]
public bool {
get {
return this.GetBooleanValue("fileshare-copy-subdirectories", false);
}
set {
base["fileshare-copy-subdirectories"] = value.ToString();
}
}
[ConfigurationDoc("fileshare-unc-path", "The optional file share UNC path. This should only be set when overriding the auto-configured default file share UNC path that's retrieved from the workspace when the client is first initialized.")]
public string {
get {
return this.GetStringValue("fileshare-unc-path", string.Empty);
}
set {
base["fileshare-unc-path"] = value;
}
}
public FileShareClientConfiguration()
{
Initialize(true);
}
public FileShareClientConfiguration(IDictionary<string, object> properties)
: base(properties)
{
Initialize(false);
}
public FileShareClientConfiguration(ClientConfiguration configuration)
: base(configuration)
{
}
protected FileShareClientConfiguration(SerializationInfo info, StreamingContext context)
: base(info, context)
{
Initialize(true);
}
public override void (SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
}
private void (bool overwrite)
{
base.ClientId = new Guid("0315D6C7-FF07-41E2-9C25-16573FC6B9DE");
base.Client = WellKnownTransferClient.FileShare;
Dictionary<string, object> dictionary = new Dictionary<string, object>();
bool flag = true;
dictionary.Add("fileshare-copy-directories", flag.ToString());
flag = false;
dictionary.Add("fileshare-copy-subdirectories", flag.ToString());
dictionary.Add("fileshare-unc-path", string.Empty);
Dictionary<string, object> properties = dictionary;
Copy(properties, overwrite);
}
}
}