Esempio n. 1
0
        public NativeSyncProvider(IFileSystem fileSystem, INetworkConnectionFactory connectionFactory, WindowsFileSystemOptions options)
        {
            this.FileSystem = fileSystem;
            this.ConnectionFactory = connectionFactory;
            this.UserName = options.UserName;
            this.Password = options.Password;

            if (this.UserName == null)
                this.BaseDirectory = options.Path.WithTrailingPathSeparator();
            else
                this.BaseDirectory = options.Path.WithoutTrailingPathSeparator();
        }
Esempio n. 2
0
 public NativeSyncProvider(WindowsFileSystemOptions options)
     : this(new FileSystem(), new NetworkConnectionFactory(), options)
 {
 }