using clauses cleanup
This commit is contained in:
parent
422e8b766b
commit
b679707b83
292 changed files with 91 additions and 685 deletions
|
|
@ -2,7 +2,6 @@ using System.Diagnostics;
|
|||
using System.Security.Claims;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Yavsc;
|
||||
using Yavsc.Models;
|
||||
using Yavsc.Models.Blog;
|
||||
using Yavsc.Server.Exceptions;
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@ using Yavsc.Abstract.Interfaces;
|
|||
using Anthropic.SDK;
|
||||
using Anthropic.SDK.Messaging;
|
||||
using Anthropic.SDK.Constants;
|
||||
using Anthropic.SDK.Models;
|
||||
using Newtonsoft.Json;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using System.Text.Json;
|
||||
public class ClaudeModerationService : IModerationService
|
||||
|
|
@ -87,4 +85,4 @@ public class ClaudeModerationService : IModerationService
|
|||
0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
using System.Security.Claims;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.FileProviders;
|
||||
using Microsoft.Extensions.Options;
|
||||
using rules;
|
||||
using Yavsc.Helpers;
|
||||
using Yavsc.Models;
|
||||
using Yavsc.Server.Helpers;
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ namespace Yavsc.Services
|
|||
{
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Yavsc.Models.Calendar;
|
||||
using Yavsc.Server.Helpers;
|
||||
using Yavsc.Server.Models.Calendar;
|
||||
using Yavsc.ViewModels.Calendar;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
using System.Threading.Tasks;
|
||||
using Yavsc.Models.Google;
|
||||
using Yavsc.Server.Helpers;
|
||||
|
||||
|
|
@ -56,11 +55,11 @@ namespace Yavsc.GoogleApis
|
|||
/// <param name="entities">Entities.</param>
|
||||
public static async Task<string []> CreateEntity( Entity[] entities ) {
|
||||
string [] ans = null;
|
||||
|
||||
|
||||
using (SimpleJsonPostMethod wr =
|
||||
new SimpleJsonPostMethod (googleMapTracksPath + "entities/create"))
|
||||
{
|
||||
ans = await wr.Invoke<string[]> (entities);
|
||||
ans = await wr.Invoke<string[]> (entities);
|
||||
}
|
||||
return ans;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using Newtonsoft.Json;
|
||||
using Yavsc.Abstract.Identity;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
|
||||
using System.Security.Claims;
|
||||
using Microsoft.Extensions.FileProviders;
|
||||
|
||||
namespace Yavsc.Services
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
using System.Net;
|
||||
using MailKit.Security;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System.Security.Claims;
|
|||
using IdentityModel;
|
||||
using IdentityServer8.Models;
|
||||
using IdentityServer8.Services;
|
||||
using IdentityServer8.Stores;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Yavsc.Models;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Yavsc.Helpers;
|
||||
|
||||
namespace Yavsc.Services
|
||||
|
|
|
|||
Loading…
Reference in a new issue