last ...
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using xAiService.Configurations;
|
||||
using xCommons.Extensions;
|
||||
|
||||
namespace xAiService.Extensions
|
||||
{
|
||||
public static class ModelExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Validate XAiServiceConfiguration ...
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
/// <returns></returns>
|
||||
public static bool IsValid(this XAIServiceConfiguration source)
|
||||
{
|
||||
//
|
||||
bool result =
|
||||
!source.IsNull() &&
|
||||
!source.Url.IsNullOrEmpty() &&
|
||||
source.Url.IsValidUrl();
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user