- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 74
Azure Storage Provider #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| ❌ 2 blocking issues (2 total)
 | 
| Diff Coverage: The code coverage on the diff in this pull request is 6.9%. Total Coverage: This PR will decrease coverage by 10.2%. File Coverage Changes
 🛟 Help
 | 
| Codecov Report❌ Patch coverage is  Additional details and impacted files@@            Coverage Diff             @@
##           master     #223      +/-   ##
==========================================
- Coverage   44.52%   34.93%   -9.60%     
==========================================
  Files          64       71       +7     
  Lines        2064     2771     +707     
  Branches      280      397     +117     
==========================================
+ Hits          919      968      +49     
- Misses       1081     1739     +658     
  Partials       64       64              ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
 | 
| public async Task<T?> CreateWopiChildResource<T>( | ||
| string? containerId, | ||
| string name, | ||
| CancellationToken cancellationToken = default) | ||
| where T : class, IWopiResource | ||
| { | ||
| return typeof(T) switch | ||
| { | ||
| { } wopiFileType when typeof(IWopiFile).IsAssignableFrom(wopiFileType) => | ||
| await CreateWopiFile(containerId ?? RootContainerPointer.Identifier, name, cancellationToken) as T, | ||
| { } wopiFolderType when typeof(IWopiFolder).IsAssignableFrom(wopiFolderType) => | ||
| await CreateWopiChildContainer(containerId ?? RootContainerPointer.Identifier, name, cancellationToken) as T, | ||
| _ => throw new NotSupportedException("Unsupported resource type.") | ||
| }; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #26