Mark TempFiles class and members as obsolete
The TempFiles class, including its TempPath property, constructor,
and methods (Create, CleanUpFiles, CleanUp), is now marked with
the [Obsolete("Use memory cache instead of temp files.")] attribute.
This deprecates the use of temp files in favor of a memory cache
approach for future development.
This commit is contained in:
@@ -2,12 +2,17 @@ using EnvelopeGenerator.ServiceHost.Extensions;
|
|||||||
|
|
||||||
namespace EnvelopeGenerator.ServiceHost.Jobs;
|
namespace EnvelopeGenerator.ServiceHost.Jobs;
|
||||||
|
|
||||||
|
[Obsolete("Use memory cache instead of temp files.")]
|
||||||
public class TempFiles
|
public class TempFiles
|
||||||
{
|
{
|
||||||
|
|
||||||
|
[Obsolete("Use memory cache instead of temp files.")]
|
||||||
public string TempPath { get; }
|
public string TempPath { get; }
|
||||||
|
|
||||||
private readonly ILogger<TempFiles> _logger;
|
private readonly ILogger<TempFiles> _logger;
|
||||||
|
|
||||||
|
|
||||||
|
[Obsolete("Use memory cache instead of temp files.")]
|
||||||
public TempFiles(ILogger<TempFiles> logger)
|
public TempFiles(ILogger<TempFiles> logger)
|
||||||
{
|
{
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
@@ -15,6 +20,8 @@ public class TempFiles
|
|||||||
TempPath = Path.Combine(tempDirectoryPath, "EnvelopeGenerator");
|
TempPath = Path.Combine(tempDirectoryPath, "EnvelopeGenerator");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[Obsolete("Use memory cache instead of temp files.")]
|
||||||
public bool Create()
|
public bool Create()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -37,6 +44,8 @@ public class TempFiles
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[Obsolete("Use memory cache instead of temp files.")]
|
||||||
private bool CleanUpFiles()
|
private bool CleanUpFiles()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -56,6 +65,8 @@ public class TempFiles
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[Obsolete("Use memory cache instead of temp files.")]
|
||||||
public bool CleanUp()
|
public bool CleanUp()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user