Class OneDriveWorkSchoolService
- Namespace
 - FoundationaLLM.Core.Services
 
- Assembly
 - FoundationaLLM.Core.dll
 
Implements IOneDriveWorkSchoolService.
public class OneDriveWorkSchoolService : IOneDriveWorkSchoolService
  - Inheritance
 - 
      
      OneDriveWorkSchoolService
 
- Implements
 
- Inherited Members
 
- Extension Methods
 
Constructors
OneDriveWorkSchoolService(ICoreService, IUserProfileService, IHttpClientFactory)
Contructor for OneDrive service.
public OneDriveWorkSchoolService(ICoreService coreService, IUserProfileService userProfileService, IHttpClientFactory httpClientFactory)
  Parameters
coreServiceICoreServiceThe core API service.
userProfileServiceIUserProfileServiceThe user profile service.
httpClientFactoryIHttpClientFactoryThe HTTP client factory.
Methods
Connect(string)
Connects to user's OneDrive work or school account.
public Task Connect(string instanceId)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
Returns
Disconnect(string)
Disconnect from user's OneDrive work or school account.
public Task Disconnect(string instanceId)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
Returns
Download(string, string, string, OneDriveWorkSchoolItem, UnifiedUserIdentity)
Downloads a file from the user's connected OneDrive work or school account.
public Task<OneDriveWorkSchoolItem> Download(string instanceId, string sessionId, string agentName, OneDriveWorkSchoolItem oneDriveItem, UnifiedUserIdentity userIdentity)
  Parameters
instanceIdstringThe FoundationaLLM instance identifier.
sessionIdstringThe session ID from which the file is uploaded.
agentNamestringThe agent name.
oneDriveItemOneDriveWorkSchoolItemThe OneDrive work or school item.
userIdentityUnifiedUserIdentityThe user's identity.