Esempio n. 1
0
        protected internal DropBoxFileSystemSession(NFX.IO.FileSystem.FileSystem fs, IFileSystemHandle handle,
                                                    FileSystemSessionConnectParams cParams) : base(fs, handle, cParams)
        {
            if(fs == null)
                throw new ArgumentNullException("fs");

            if (cParams == null)
                throw new ArgumentNullException("cParams");

            DropBoxFileSystemSessionConnectParams pr = cParams as DropBoxFileSystemSessionConnectParams;
            if (pr == null)
                throw new NFXException(StringConsts.FS_SESSION_BAD_PARAMS_ERROR + GetType() + ".ctor_DropBoxFileSystemSession");

            ConnectParameters = pr;
        }
Esempio n. 2
0
 protected override void DoConfigure(IConfigSectionNode node)
 {
     _authSettings = new DropBoxFileSystemSessionConnectParams(node);
 }
 internal DropBoxMetadataRequestProvider(DropBoxFileSystemSessionConnectParams sessionParams)
 {
     _authenticationOptions = sessionParams;
 }
 internal DropBoxMetadataRequestProvider(IConfigSectionNode node = null)
 {
     _authenticationOptions = new DropBoxAuthSettings(node).Config;
 }
Esempio n. 5
0
 public DropBoxFileStore(DropBoxFileSystemSessionConnectParams sessionParam)
 {
     _operationRequestProvider = new DropBoxFileOperationRequestProvider(sessionParam);
 }
Esempio n. 6
0
 internal DropBoxMetadataStore(DropBoxFileSystemSessionConnectParams sessionParam)
 {
     _metadataRequestProvider = new DropBoxMetadataRequestProvider(sessionParam);
 }