The default implementation of a IRequestFactory for Google Drive
상속: IRequestFactory
예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GoogleDriveFileSystem"/> class.
 /// </summary>
 /// <param name="service">The <see cref="GoogleDriveService"/> instance to use to access the Google Drive</param>
 /// <param name="rootFolderInfo">The <see cref="File"/> to use as root folder</param>
 /// <param name="requestFactory">A <see cref="IRequestFactory"/> used to create <see cref="IRestClient"/> and <see cref="HttpWebRequest"/> objects</param>
 public GoogleDriveFileSystem(GoogleDriveService service, File rootFolderInfo, GoogleDriveSupportFactory requestFactory)
 {
     _requestFactory = requestFactory;
     Service         = service;
     RootFolderInfo  = rootFolderInfo;
     Root            = new GoogleDriveDirectoryEntry(this, RootFolderInfo, "/", true);
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GoogleDriveFileSystem"/> class.
 /// </summary>
 /// <param name="service">The <see cref="GoogleDriveService"/> instance to use to access the Google Drive</param>
 /// <param name="rootFolderInfo">The <see cref="File"/> to use as root folder</param>
 /// <param name="requestFactory">A <see cref="IRequestFactory"/> used to create <see cref="IRestClient"/> and <see cref="HttpWebRequest"/> objects</param>
 public GoogleDriveFileSystem(GoogleDriveService service, File rootFolderInfo, GoogleDriveSupportFactory requestFactory)
 {
     _requestFactory = requestFactory;
     Service = service;
     RootFolderInfo = rootFolderInfo;
     Root = new GoogleDriveDirectoryEntry(this, RootFolderInfo, "/", true);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GoogleDriveFileSystemProvider"/> class.
 /// </summary>
 /// <param name="rootFolder">The root folder entry</param>
 /// <param name="requestFactory">A <see cref="IRequestFactory"/> used to create <see cref="IRestClient"/> and <see cref="HttpWebRequest"/> objects</param>
 public GoogleDriveFileSystemProvider(File rootFolder, GoogleDriveSupportFactory requestFactory)
 {
     _rootFolder = rootFolder;
     _requestFactory = requestFactory;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GoogleDriveFileSystemProvider"/> class.
 /// </summary>
 /// <param name="rootFolder">The root folder entry</param>
 /// <param name="requestFactory">A <see cref="IRequestFactory"/> used to create <see cref="IRestClient"/> and <see cref="HttpWebRequest"/> objects</param>
 public GoogleDriveFileSystemProvider(File rootFolder, GoogleDriveSupportFactory requestFactory)
 {
     _rootFolder     = rootFolder;
     _requestFactory = requestFactory;
 }