[Cleanup] Rimozione codice morto
Eliminati file e codice inutilizzati identificati durante l'analisi del codice morto: File eliminati: - Data_Coupler/Data/WeatherForecast.cs: classe demo del template Blazor, mai referenziata - Data_Coupler/Data/WeatherForecastService.cs: servizio demo del template Blazor, mai iniettato - DataConnection/CredentialManagement/Models/CredentialExtensions2.cs: file vuoto residuo di refactoring - DataConnection/CredentialManagement/Models/CredentialExtensions_New.cs: file vuoto residuo di refactoring - DataConnection/CredentialManagement/ServiceCollectionExtensions_New.cs: file vuoto residuo di refactoring - CredentialManager/Services/KeyMappingService.cs: file vuoto senza implementazione - DataConnection/DB/EF/ExistingDatabaseExample.cs: file vuoto di esempio non compilato Interfaccia rimossa: - DataConnection/CredentialManagement/ServiceCollectionExtensions.cs: rimossa IDataConnectionCredentialServiceConfiguration, interfaccia mai implementata né utilizzata in alcuna parte del codebase Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -84,23 +84,3 @@ public class DataConnectionCredentialOptions
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int DatabaseTimeout { get; set; } = 30;
|
public int DatabaseTimeout { get; set; } = 30;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Interfaccia per il servizio di gestione credenziali specifico per DataConnection
|
|
||||||
/// Questa interfaccia estende le funzionalità base di CredentialManager
|
|
||||||
/// con metodi specifici per l'integrazione con DataConnection
|
|
||||||
/// </summary>
|
|
||||||
public interface IDataConnectionCredentialServiceConfiguration
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Configura il servizio con le opzioni specificate
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="options">Le opzioni di configurazione</param>
|
|
||||||
void Configure(DataConnectionCredentialOptions options);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Verifica la connessione al database delle credenziali
|
|
||||||
/// </summary>
|
|
||||||
/// <returns>True se la connessione è valida</returns>
|
|
||||||
Task<bool> TestConnectionAsync();
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
namespace Data_Coupler.Data;
|
|
||||||
|
|
||||||
public class WeatherForecast
|
|
||||||
{
|
|
||||||
public DateOnly Date { get; set; }
|
|
||||||
|
|
||||||
public int TemperatureC { get; set; }
|
|
||||||
|
|
||||||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
|
|
||||||
|
|
||||||
public string? Summary { get; set; }
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
namespace Data_Coupler.Data;
|
|
||||||
|
|
||||||
public class WeatherForecastService
|
|
||||||
{
|
|
||||||
private static readonly string[] Summaries = new[]
|
|
||||||
{
|
|
||||||
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
|
|
||||||
};
|
|
||||||
|
|
||||||
public Task<WeatherForecast[]> GetForecastAsync(DateOnly startDate)
|
|
||||||
{
|
|
||||||
return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
|
|
||||||
{
|
|
||||||
Date = startDate.AddDays(index),
|
|
||||||
TemperatureC = Random.Shared.Next(-20, 55),
|
|
||||||
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
|
|
||||||
}).ToArray());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user