< Summary

Information
Class: Elsa.Http.FileCaches.BlobFileCacheStorageProvider
Assembly: Elsa.Http
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/FileCaches/BlobFileCacheStorageProvider.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 25
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
GetStorage()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/FileCaches/BlobFileCacheStorageProvider.cs

#LineLine coverage
 1using FluentStorage.Blobs;
 2
 3namespace Elsa.Http.FileCaches;
 4
 5/// <summary>
 6/// A file cache that stores files in blob storage using FluentStorage.
 7/// </summary>
 8public class BlobFileCacheStorageProvider : IFileCacheStorageProvider
 9{
 10    private readonly IBlobStorage _blobStorage;
 11
 12    /// <summary>
 13    /// Initializes a new instance of the <see cref="BlobFileCacheStorageProvider"/> class.
 14    /// </summary>
 015    public BlobFileCacheStorageProvider(IBlobStorage blobStorage)
 16    {
 017        _blobStorage = blobStorage;
 018    }
 19
 20    /// <inheritdoc />
 21    public IBlobStorage GetStorage()
 22    {
 023        return _blobStorage;
 24    }
 25}