From 7f03dd727267b63d7cd398b72dd01becf64f85fa Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sat, 22 Aug 2026 03:34:48 +0100 Subject: [PATCH] using clauses cleanup --- src/PostIt.Tests/AddCircleMemberDialogTests.cs | 1 - src/PostIt.Tests/AndroidAppLaunchTests.cs | 5 ----- src/PostIt.Tests/BearerScopeTests.cs | 10 ---------- src/PostIt.Tests/BlogApiTestFakes.cs | 1 - src/PostIt.Tests/FakeAuthorizingBrowser.cs | 3 --- src/PostIt.Tests/MainPageButtonsTests.cs | 3 --- src/PostIt.Tests/MainPageSaveTests.cs | 2 -- src/PostIt.Tests/OidcStubAuthority.cs | 5 ----- src/PostIt.Tests/PostAclDialogTests.cs | 8 -------- src/PostIt.Tests/PostItViewModelTests.cs | 2 +- src/PostIt.Tests/SchemeUrlDetectorTests.cs | 1 - src/PostIt.Tests/SessionStatusBannerTests.cs | 2 -- src/PostIt.Tests/SettingsLoadTests.cs | 14 ++++---------- src/PostIt.Tests/SignaturePadControlTests.cs | 3 --- src/PostIt.Tests/SignaturePageViewModelTests.cs | 4 ---- src/PostIt.Tests/UnitTest1.cs | 3 +-- src/PostIt.Tests/YavscApiClientTests.cs | 12 ------------ src/PostIt/PostIt.Android/MainActivity.cs | 3 +-- .../Services/AndroidSystemBrowser.cs | 1 - src/PostIt/PostIt.Browser/Program.cs | 5 ++--- src/PostIt/PostIt.Desktop/PlatformBootstrap.cs | 1 - src/PostIt/PostIt.Desktop/Program.cs | 3 +-- src/PostIt/PostIt/Services/YavscApiClient.cs | 1 - .../ViewModels/AddCircleMemberDialogViewModel.cs | 1 - src/PostIt/PostIt/ViewModels/HomePageViewModel.cs | 2 -- src/PostIt/PostIt/ViewModels/MainPageViewModel.cs | 2 -- src/PostIt/PostIt/ViewModels/ViewModelBase.cs | 5 ++--- src/PostIt/PostIt/Views/CirclesPage.axaml.cs | 5 ----- .../PostIt/Views/SessionStatusBanner.axaml.cs | 1 - .../Attributes/ActivityBillingAttribute.cs | 2 -- .../Attributes/ActivitySettingsAttribute.cs | 2 -- .../Validation/ValidRemoteUserDirAttribute.cs | 6 ++---- .../Attributes/Validation/YaRegularExpression.cs | 8 +++----- .../Attributes/Validation/YaRequiredAttribute.cs | 10 ++++------ .../Attributes/Validation/YaStringLength.cs | 8 +++----- .../Attributes/Validation/YaValidationAttribute.cs | 7 ++----- src/Yavsc.Abstract/Authentication/RegisterModel.cs | 3 --- src/Yavsc.Abstract/Billing/IBillable.cs | 2 -- src/Yavsc.Abstract/Blogspot/IBlogPost.cs | 1 - src/Yavsc.Abstract/Chat/IChatRoom.cs | 3 +-- .../FileSystem/AbstractFileSystemHelpers.cs | 9 +++------ src/Yavsc.Abstract/FileSystem/RemoteFileInfo.cs | 10 ++++------ src/Yavsc.Abstract/FileSystem/UserDirectoryInfo.cs | 8 ++------ .../Google/Calendar/CalendarEventList.cs | 2 -- src/Yavsc.Abstract/Google/Calendar/CalendarList.cs | 2 -- .../Google/Calendar/CalendarListEntry.cs | 4 +--- src/Yavsc.Abstract/Google/Calendar/Reminder.cs | 2 -- src/Yavsc.Abstract/Google/GDate.cs | 2 -- .../Google/Messaging/MessageWithPayLoad.cs | 1 - src/Yavsc.Abstract/IT/CodeFromChars.cs | 10 ++++------ src/Yavsc.Abstract/IT/ICode.cs | 4 +--- src/Yavsc.Abstract/IT/IProject.cs | 2 -- src/Yavsc.Abstract/Identity/TokenInfo.cs | 2 -- .../Interfaces/IBaseTrackedEntity.cs | 2 -- src/Yavsc.Abstract/Interfaces/IBatch.cs | 2 -- src/Yavsc.Abstract/Interfaces/IBillingService.cs | 5 ++--- .../Interfaces/Workflow/IBookQueryData.cs | 5 ++--- src/Yavsc.Abstract/Messaging/IAnnounce.cs | 8 +++----- src/Yavsc.Abstract/Messaging/Notification.cs | 3 +-- .../Messaging/RdvQueryProviderInfo.cs | 1 - src/Yavsc.Abstract/Relationship/Location.cs | 1 - src/Yavsc.Abstract/Relationship/Position.cs | 1 - src/Yavsc.Abstract/Templates/Template.cs | 1 - src/Yavsc.Abstract/Workflow/IActivity.cs | 2 -- .../Workflow/IMobileDeviceDeclaration.cs | 2 -- src/Yavsc.Abstract/Workflow/INominativeQuery.cs | 2 -- src/Yavsc.Abstract/Workflow/Process/Conjonction.cs | 2 -- src/Yavsc.Abstract/Workflow/Process/Disjonction.cs | 2 -- .../Workflow/Tasks/IExecutionData.cs | 4 ---- src/Yavsc.Abstract/Workflow/Tasks/ITaskMetaData.cs | 1 - src/Yavsc.Abstract/Workflow/Tasks/TaskManager.cs | 5 +---- .../Controllers/Business/ActivityApiController.cs | 5 ----- .../Controllers/Business/BookQueryApiController.cs | 5 ----- .../Controllers/Business/EstimateApiController.cs | 5 ----- .../Business/EstimateTemplatesApiController.cs | 1 - .../Business/FrontOfficeApiController.cs | 2 -- .../Controllers/Business/ProductApiController.cs | 1 - .../HairCut/BursherProfilesApiController.cs | 1 - .../Controllers/HairCut/HairCutController.cs | 3 --- .../Controllers/Musical/DjProfileApiController.cs | 1 - .../Musical/MusicalPreferencesApiController.cs | 1 - .../Musical/MusicalTendenciesApiController.cs | 1 - src/Yavsc.Api/Controllers/PostRateApiController.cs | 2 -- src/Yavsc.Api/Controllers/ProfileApiController.cs | 2 -- .../Relationship/BlackListApiController.cs | 1 - .../Relationship/ChatRoomApiController.cs | 1 - .../Relationship/ContactsApiController.cs | 1 - src/Yavsc.Api/Controllers/ServiceApiController.cs | 1 - .../accounting/ApplicationUserApiController.cs | 5 ----- .../Controllers/accounting/ProfileApiController.cs | 4 ---- src/Yavsc.Api/Helpers/RequestHelpers.cs | 10 ---------- src/Yavsc.Api/Program.cs | 1 - src/Yavsc.Blogs.Tests/BlogAclApiTests.cs | 2 -- src/Yavsc.Blogs.Tests/BlogApiSmokeTests.cs | 3 --- src/Yavsc.Blogs.Tests/CircleMembersApiTests.cs | 1 - src/Yavsc.Blogs.Tests/JwtClaimMappingCollection.cs | 2 -- .../MappedClaimsBlogsWebServerFixture.cs | 1 - src/Yavsc.Blogs.Tests/PublishEndpointTests.cs | 1 - src/Yavsc.Blogs/Controllers/CircleApiController.cs | 1 - src/Yavsc.Blogs/Program.cs | 1 - src/Yavsc.Org.Tests/ComputeKidTests.cs | 4 ---- .../Controllers/ClientControllerCollectionTests.cs | 3 --- .../Controllers/CommandFormsControllerTests.cs | 3 --- .../EstimateSignatureFileHelperTests.cs | 6 ------ .../ApplicationUserDisplayTemplateTests.cs | 3 --- .../NonRegression/BillingServiceTests.cs | 3 --- src/Yavsc.Org.Tests/NonRegression/OidcSeedTests.cs | 2 -- .../NonRegression/UserDisplayHelpersTests.cs | 2 -- src/Yavsc.Org.Tests/Smoke/AccountSmokeTests.cs | 3 --- src/Yavsc.Org.Tests/Smoke/BlogSmokeTests.cs | 3 --- src/Yavsc.Org.Tests/Smoke/SmokeTestBase.cs | 5 ----- src/Yavsc.Org.Tests/StaticAssetsPathsTests.cs | 4 ---- src/Yavsc.Org.Tests/TestUserMiddleware.cs | 2 -- src/Yavsc.Org.Tests/WebServerFixture.cs | 1 - src/Yavsc.Org/Contants.cs | 2 -- .../Controllers/Accounting/ExternalController.cs | 1 - .../Controllers/Accounting/UsersController.cs | 1 - .../Administration/AdministrationController.cs | 1 - .../Controllers/Administration/ClientController.cs | 1 - .../Administration/MailingTemplateController.cs | 2 -- .../Communicating/AnnouncesController.cs | 2 -- .../Controllers/Communicating/CircleController.cs | 1 - .../Communicating/CircleMembersController.cs | 1 - .../Communicating/NotificationsController.cs | 2 -- .../Controllers/Consent/ConsentController.cs | 6 ------ .../Controllers/Consent/ConsentInputModel.cs | 5 +---- .../Controllers/Consent/ConsentViewModel.cs | 3 --- .../Controllers/Contracting/CoWorkingController.cs | 1 - .../Controllers/Contracting/DoController.cs | 1 - .../Controllers/Contracting/EstimateController.cs | 1 - .../Controllers/Contracting/FormsController.cs | 1 - .../Contracting/MusicalTendenciesController.cs | 1 - .../Contracting/SIRENExceptionsController.cs | 1 - .../Controllers/Device/DeviceController.cs | 5 ----- .../Diagnostics/DiagnosticsController.cs | 2 -- .../Diagnostics/DiagnosticsViewModel.cs | 1 - .../Controllers/DimissClicksApiController.cs | 1 - src/Yavsc.Org/Controllers/FileSystemController.cs | 2 -- src/Yavsc.Org/Controllers/GrantsController.cs | 3 --- .../Controllers/Haircut/ColorsController.cs | 1 - .../Controllers/Haircut/HairTaintsController.cs | 1 - .../Controllers/Kyc/DeclarantController.cs | 1 - .../Musical/InstrumentationController.cs | 1 - .../Controllers/Musical/InstrumentsController.cs | 3 --- src/Yavsc.Org/CustomModelBinder.cs | 4 +--- src/Yavsc.Org/Helpers/Ansi2HtmlEncoder.cs | 2 -- src/Yavsc.Org/Helpers/ControllerHelpers.cs | 1 - src/Yavsc.Org/Helpers/ListItemHelpers.cs | 3 --- src/Yavsc.Org/Helpers/OAuthHelpers.cs | 1 - src/Yavsc.Org/Helpers/PageHelpers.cs | 3 --- src/Yavsc.Org/Helpers/TeXHelpers.cs | 3 --- src/Yavsc.Org/Migrations/20260309015232_init.cs | 3 +-- src/Yavsc.Org/Migrations/20260604103455_pending.cs | 3 +-- .../Migrations/20260706013420_activityModerated.cs | 3 +-- .../ConfigurationDb/20260301200548_init.cs | 3 +-- .../PersistedGrantDb/20260301200508_init.cs | 3 +-- src/Yavsc.Org/Program.cs | 6 ++---- src/Yavsc.Org/Services/BlogSpotService.cs | 1 - src/Yavsc.Org/Services/ChatHubConnexionManager.cs | 8 -------- src/Yavsc.Org/Services/YavscTemplateEngine.cs | 14 ++++---------- .../ViewComponents/CalendarViewComponent.cs | 3 --- .../ViewComponents/CirclesControlViewComponent.cs | 1 - .../ViewComponents/CommentViewComponent.cs | 2 -- .../ViewComponents/DirectoryViewComponent.cs | 2 -- src/Yavsc.Org/ViewComponents/TaggerComponent.cs | 2 -- .../ViewModels/Account/SendCodeViewModel.cs | 1 - .../ViewModels/Administration/EnrolerViewModel.cs | 1 - .../ViewModels/Administration/FireViewModel.cs | 1 - .../ViewModels/Gen/PdfGenerationViewModel.cs | 2 -- .../Manage/ConfigureTwoFactorViewModel.cs | 1 - src/Yavsc.Org/ViewModels/Manage/IndexViewModel.cs | 1 - .../ViewModels/Manage/ManageLoginsViewModel.cs | 1 - .../ViewModels/Manage/SetUserNameViewModel.cs | 1 - .../Exceptions/InvalidActivityModelException.cs | 1 - .../Exceptions/InvalidPathException.cs | 2 -- src/Yavsc.Server/Helpers/CompanyInfoHelpers.cs | 2 -- .../Helpers/EstimateSignatureFileHelper.cs | 5 ----- src/Yavsc.Server/Helpers/FileSystemHelpers.cs | 2 -- src/Yavsc.Server/Helpers/PayPalHelpers.cs | 4 ---- src/Yavsc.Server/Helpers/RequestHelper.cs | 5 ----- src/Yavsc.Server/Helpers/ServiceExtensions.cs | 2 -- src/Yavsc.Server/Helpers/SimpleJsonPostMethod.cs | 5 +---- src/Yavsc.Server/Interfaces/IConnexionManager.cs | 2 -- src/Yavsc.Server/Interfaces/IDiskUsageTracker.cs | 3 --- src/Yavsc.Server/Interfaces/IFreeDateSet.cs | 2 -- src/Yavsc.Server/Interfaces/ILiveProcessor.cs | 1 - src/Yavsc.Server/Interfaces/ISmsSender.cs | 3 --- src/Yavsc.Server/Interfaces/ISmtpClient.cs | 2 -- src/Yavsc.Server/Interfaces/IYavscMessageSender.cs | 13 +++++-------- src/Yavsc.Server/Models/Access/Ban.cs | 1 - .../Models/Access/CircleAuthorizationToBlogPost.cs | 1 - .../Models/Access/ConsentInputModel.cs | 3 --- src/Yavsc.Server/Models/Access/ConsentViewModel.cs | 3 --- src/Yavsc.Server/Models/Access/RuleSet.cs | 2 -- src/Yavsc.Server/Models/ApplicationDbContext.cs | 3 --- src/Yavsc.Server/Models/Auth/DeviceDeclaration.cs | 13 ++++++------- src/Yavsc.Server/Models/Auth/OAuth2Tokens.cs | 1 - src/Yavsc.Server/Models/Auth/RefreshToken.cs | 1 - src/Yavsc.Server/Models/Bank/BalanceImpact.cs | 2 -- src/Yavsc.Server/Models/Billing/Estimate.cs | 4 ---- .../Models/Billing/EstimateTemplate.cs | 1 - .../Models/Billing/NominativeServiceCommand.cs | 2 -- src/Yavsc.Server/Models/Billing/Signature.cs | 2 -- src/Yavsc.Server/Models/Billing/histoestim.cs | 2 -- src/Yavsc.Server/Models/Blog/BlogAttachedFile.cs | 1 - src/Yavsc.Server/Models/Blog/Comment.cs | 2 -- src/Yavsc.Server/Models/Calendar/Availabliity.cs | 2 -- src/Yavsc.Server/Models/Calendar/Period.cs | 1 - src/Yavsc.Server/Models/Chat/ChatRoom.cs | 3 --- src/Yavsc.Server/Models/Cratie/Option.cs | 2 -- src/Yavsc.Server/Models/Cratie/Scrutin.cs | 1 - .../Models/EMailing/MailingTemplate.cs | 4 ---- src/Yavsc.Server/Models/Edition/IDocument.cs | 3 --- src/Yavsc.Server/Models/FormFile.cs | 2 -- src/Yavsc.Server/Models/HairCut/BrusherProfile.cs | 1 - .../Models/HairCut/HairCutPaymentEvent.cs | 1 - src/Yavsc.Server/Models/HairCut/HairCutQuery.cs | 4 ---- .../Models/HairCut/HairMultiCutQuery.cs | 2 -- src/Yavsc.Server/Models/HairCut/HairPrestation.cs | 1 - src/Yavsc.Server/Models/HairCut/Haircut.cs | 1 - .../Models/HairCut/Views/HaircutQueryInfo.cs | 1 - src/Yavsc.Server/Models/IT/Project.cs | 3 --- .../Models/IT/ProjectBuildConfiguration.cs | 1 - src/Yavsc.Server/Models/IT/SourceCode/Batch.cs | 1 - src/Yavsc.Server/Models/IT/SourceCode/GitClone.cs | 4 +--- .../Models/IT/SourceCode/ProjectBuild.cs | 2 -- .../Models/IT/SourceCode/SingleCmdProjectBatch.cs | 3 --- src/Yavsc.Server/Models/IdentityUserLogin.cs | 1 - src/Yavsc.Server/Models/Kyc/TrustToken.cs | 1 - src/Yavsc.Server/Models/Market/Catalog.cs | 2 -- src/Yavsc.Server/Models/Market/Money.cs | 2 -- src/Yavsc.Server/Models/Market/Service.cs | 1 - src/Yavsc.Server/Models/Messaging/CircleEvent.cs | 2 -- src/Yavsc.Server/Models/Messaging/DimissClicked.cs | 1 - src/Yavsc.Server/Models/Messaging/LiveFlow.cs | 1 - src/Yavsc.Server/Models/Musical/Instrument.cs | 1 - .../Models/Musical/InstrumentRating.cs | 1 - .../Models/Musical/MusicalPreference.cs | 1 - src/Yavsc.Server/Models/Musical/MusicalTendency.cs | 1 - .../Models/Musical/Profiles/DjPerformerProfile.cs | 1 - .../Models/Musical/Profiles/DjSettings.cs | 1 - .../Musical/Profiles/FormationPerformerProfile.cs | 1 - .../Models/Musical/Profiles/MusicLoverSettings.cs | 1 - .../Musical/Profiles/MusicianPerformerProfile.cs | 1 - .../Musical/Profiles/StarPerformerProfile.cs | 1 - src/Yavsc.Server/Models/Payment/PaypalPayment.cs | 6 ++---- src/Yavsc.Server/Models/Relationship/Circle.cs | 3 --- .../Models/Relationship/CircleMember.cs | 1 - src/Yavsc.Server/Models/Relationship/Contact.cs | 1 - src/Yavsc.Server/Models/Relationship/Tag.cs | 1 - src/Yavsc.Server/Models/Workflow/Activity.cs | 3 --- src/Yavsc.Server/Models/Workflow/CommandForm.cs | 3 +-- .../Models/Workflow/PerformerProfile.cs | 1 - .../Models/Workflow/Profiles/FormationSettings.cs | 1 - src/Yavsc.Server/Models/Workflow/RdvQuery.cs | 1 - src/Yavsc.Server/Models/Workflow/RendezVous.cs | 2 -- src/Yavsc.Server/Models/Workflow/UserActivity.cs | 1 - src/Yavsc.Server/Services/BlogSpotService.cs | 1 - .../Services/ClaudeModerationService.cs | 4 +--- src/Yavsc.Server/Services/FileSystemAuthManager.cs | 2 -- .../Services/GoogleApis/CalendarManager.cs | 1 - src/Yavsc.Server/Services/GoogleApis/MapTracks.cs | 5 ++--- src/Yavsc.Server/Services/GoogleApis/PeopleApi.cs | 1 - .../Services/IFileSystemAuthManager.cs | 1 - src/Yavsc.Server/Services/MailSender.cs | 1 - src/Yavsc.Server/Services/ProfileService.cs | 1 - src/Yavsc.Server/Services/SIRENCheker.cs | 2 -- src/Yavsc.Server/Settings/SiteSettings.cs | 1 - src/Yavsc.Server/Settings/UserPolicies.cs | 2 -- src/Yavsc.Server/Templates/UserOrientedTemplate.cs | 2 -- .../Account/ChangePasswordBindingModel.cs | 1 - .../Account/ExternalLoginConfirmationViewModel.cs | 1 - .../ViewModels/Account/ResetPasswordViewModel.cs | 1 - src/Yavsc.Server/ViewModels/Account/SignInModel.cs | 4 ---- .../ViewModels/Account/UnregisterViewModel.cs | 1 - .../ViewModels/Account/VerifyCodeViewModel.cs | 1 - src/Yavsc.Server/ViewModels/Auth/FileSpotInfo.cs | 2 -- .../Calendar/DateTimeChooserViewModel.cs | 2 -- src/Yavsc.Server/ViewModels/Chat/ChatRoomInfo.cs | 2 -- src/Yavsc.Server/ViewModels/Chat/ChatUserInfo.cs | 1 - .../FrontOffice/PerformerProfileViewModel.cs | 1 - src/Yavsc.Server/ViewModels/LiveCastHandler.cs | 12 ++---------- .../ViewModels/Manage/AddPhoneNumberViewModel.cs | 1 - .../ViewModels/Manage/DoDirectCreditViewModel.cs | 1 - .../ViewModels/Manage/SetAddressViewModel.cs | 1 - .../Manage/VerifyPhoneNumberViewModel.cs | 1 - .../ViewModels/Test/CalendarViewModel.cs | 2 -- src/cli/Commands/GenerationCommander.cs | 7 +++---- src/cli/Commands/UserListCleanUp.cs | 3 +-- src/cli/Program.cs | 3 +-- src/cli/Services/YaRazorEngineHost.cs | 4 +--- src/cli/Settings/ConnectionSettings.cs | 1 - 292 files changed, 91 insertions(+), 685 deletions(-) diff --git a/src/PostIt.Tests/AddCircleMemberDialogTests.cs b/src/PostIt.Tests/AddCircleMemberDialogTests.cs index 289ff727..98859649 100644 --- a/src/PostIt.Tests/AddCircleMemberDialogTests.cs +++ b/src/PostIt.Tests/AddCircleMemberDialogTests.cs @@ -1,6 +1,5 @@ using Avalonia; -using Avalonia.Controls; using Avalonia.Headless.XUnit; using Microsoft.Extensions.DependencyInjection; using PostIt.Services; diff --git a/src/PostIt.Tests/AndroidAppLaunchTests.cs b/src/PostIt.Tests/AndroidAppLaunchTests.cs index 2198bb78..54f4d9a7 100644 --- a/src/PostIt.Tests/AndroidAppLaunchTests.cs +++ b/src/PostIt.Tests/AndroidAppLaunchTests.cs @@ -1,10 +1,5 @@ -using System; using System.Diagnostics; -using System.IO; -using System.Linq; using Xamarin.UITest; -using Xamarin.UITest.Android; -using Xunit; namespace PostIt.Tests; diff --git a/src/PostIt.Tests/BearerScopeTests.cs b/src/PostIt.Tests/BearerScopeTests.cs index fbccb606..c6bf7d56 100644 --- a/src/PostIt.Tests/BearerScopeTests.cs +++ b/src/PostIt.Tests/BearerScopeTests.cs @@ -1,18 +1,8 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Net; -using System.Net.Http; using System.Text; using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Yavsc.Blogspot; using Yavsc.Api.Client; using PostIt.Services; -using PostIt.Services; -using Xunit; namespace PostIt.Tests; diff --git a/src/PostIt.Tests/BlogApiTestFakes.cs b/src/PostIt.Tests/BlogApiTestFakes.cs index 4b541e42..4f102be2 100644 --- a/src/PostIt.Tests/BlogApiTestFakes.cs +++ b/src/PostIt.Tests/BlogApiTestFakes.cs @@ -1,7 +1,6 @@ using Yavsc.Blogspot; using PostIt.Services; using PostIt.ViewModels; -using Yavsc.Models; namespace PostIt.Tests; diff --git a/src/PostIt.Tests/FakeAuthorizingBrowser.cs b/src/PostIt.Tests/FakeAuthorizingBrowser.cs index 4748425a..88dd5856 100644 --- a/src/PostIt.Tests/FakeAuthorizingBrowser.cs +++ b/src/PostIt.Tests/FakeAuthorizingBrowser.cs @@ -1,6 +1,3 @@ -using System; -using System.Net.Http; -using System.Threading.Tasks; using IdentityModel.OidcClient.Browser; namespace PostIt.Tests; diff --git a/src/PostIt.Tests/MainPageButtonsTests.cs b/src/PostIt.Tests/MainPageButtonsTests.cs index 767f9c2e..a84b85a3 100644 --- a/src/PostIt.Tests/MainPageButtonsTests.cs +++ b/src/PostIt.Tests/MainPageButtonsTests.cs @@ -1,9 +1,6 @@ using Avalonia; using Avalonia.Controls; -using Avalonia.Headless; using Avalonia.Headless.XUnit; -using Avalonia.Input; -using Avalonia.Interactivity; using CommunityToolkit.Mvvm.Input; using Microsoft.Extensions.DependencyInjection; using Yavsc.Api.Client; diff --git a/src/PostIt.Tests/MainPageSaveTests.cs b/src/PostIt.Tests/MainPageSaveTests.cs index b6bf963a..1eaf3f17 100644 --- a/src/PostIt.Tests/MainPageSaveTests.cs +++ b/src/PostIt.Tests/MainPageSaveTests.cs @@ -1,10 +1,8 @@ -using Avalonia; using Avalonia.Controls; using Avalonia.Headless.XUnit; using Avalonia.VisualTree; using Yavsc.Blogspot; using Yavsc.Api.Client; -using PostIt.Services; using PostIt.ViewModels; using PostIt.Views; namespace PostIt.Tests; diff --git a/src/PostIt.Tests/OidcStubAuthority.cs b/src/PostIt.Tests/OidcStubAuthority.cs index 3c6552fb..4bb25097 100644 --- a/src/PostIt.Tests/OidcStubAuthority.cs +++ b/src/PostIt.Tests/OidcStubAuthority.cs @@ -1,13 +1,8 @@ -using System; -using System.Collections.Generic; -using System.IO; using System.Net; using System.Net.Sockets; using System.Security.Cryptography; using System.Text; using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; namespace PostIt.Tests; diff --git a/src/PostIt.Tests/PostAclDialogTests.cs b/src/PostIt.Tests/PostAclDialogTests.cs index 95576778..2708ba8c 100644 --- a/src/PostIt.Tests/PostAclDialogTests.cs +++ b/src/PostIt.Tests/PostAclDialogTests.cs @@ -1,21 +1,13 @@ -using System; -using System.Collections.Generic; using System.Net; -using System.Net.Http; using System.Text; using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; using Avalonia; -using Avalonia.Controls; using Avalonia.Headless.XUnit; using Microsoft.Extensions.DependencyInjection; using PostIt.Services; using PostIt.ViewModels; using PostIt.Views; -using Yavsc.Abstract.Identity.Security; using Yavsc.Api.Client; -using Yavsc.Api.Client.Dtos; using Yavsc.Blogspot; namespace PostIt.Tests; diff --git a/src/PostIt.Tests/PostItViewModelTests.cs b/src/PostIt.Tests/PostItViewModelTests.cs index 2dee4604..780f674c 100644 --- a/src/PostIt.Tests/PostItViewModelTests.cs +++ b/src/PostIt.Tests/PostItViewModelTests.cs @@ -49,7 +49,7 @@ public class PostItViewModelTests var api = new StubYavscApiClient(expected); var blog = new BlogApiClient(api, "http://localhost/"); - var posts = await blog.GetPostsAsync(); + var posts = await blog.GetPostsAsync(ct: TestContext.Current.CancellationToken); Assert.Equal(2, posts.Count); Assert.Equal("Hello", posts[0].Title); diff --git a/src/PostIt.Tests/SchemeUrlDetectorTests.cs b/src/PostIt.Tests/SchemeUrlDetectorTests.cs index f5983cb3..78b67463 100644 --- a/src/PostIt.Tests/SchemeUrlDetectorTests.cs +++ b/src/PostIt.Tests/SchemeUrlDetectorTests.cs @@ -1,5 +1,4 @@ using PostIt.Services; -using Xunit; namespace PostIt.Tests; diff --git a/src/PostIt.Tests/SessionStatusBannerTests.cs b/src/PostIt.Tests/SessionStatusBannerTests.cs index d35529db..e1a5dd19 100644 --- a/src/PostIt.Tests/SessionStatusBannerTests.cs +++ b/src/PostIt.Tests/SessionStatusBannerTests.cs @@ -1,7 +1,5 @@ -using Avalonia; using Avalonia.Controls; using Avalonia.Headless.XUnit; -using Avalonia.Media; using Avalonia.Styling; using Avalonia.VisualTree; using PostIt.ViewModels; diff --git a/src/PostIt.Tests/SettingsLoadTests.cs b/src/PostIt.Tests/SettingsLoadTests.cs index a9dd01d4..dc58e9fc 100644 --- a/src/PostIt.Tests/SettingsLoadTests.cs +++ b/src/PostIt.Tests/SettingsLoadTests.cs @@ -1,9 +1,3 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Xunit; - namespace PostIt.Tests; public class SettingsLoadTests @@ -109,7 +103,7 @@ public class SettingsLoadTests { failures.Add(ex); } - }); + }, TestContext.Current.CancellationToken); } await Task.WhenAll(tasks); @@ -129,7 +123,7 @@ public class SettingsLoadTests /// and checking that Loaded flips exactly once (no torn reads). /// [Fact] - public void Load_is_idempotent_under_concurrent_calls() + public async Task Load_is_idempotent_under_concurrent_calls() { var settings = new PostIt.ViewModels.Settings { @@ -149,9 +143,9 @@ public class SettingsLoadTests { barrier.SignalAndWait(); settings.Load(); - }); + }, TestContext.Current.CancellationToken); } - Task.WaitAll(tasks); + await Task.WhenAll(tasks); Assert.True(settings.Loaded); } diff --git a/src/PostIt.Tests/SignaturePadControlTests.cs b/src/PostIt.Tests/SignaturePadControlTests.cs index 691ae547..c03e6850 100644 --- a/src/PostIt.Tests/SignaturePadControlTests.cs +++ b/src/PostIt.Tests/SignaturePadControlTests.cs @@ -1,8 +1,5 @@ -using System; -using System.Linq; using PostIt.Controls; using PostIt.Models; -using Xunit; namespace PostIt.Tests; diff --git a/src/PostIt.Tests/SignaturePageViewModelTests.cs b/src/PostIt.Tests/SignaturePageViewModelTests.cs index 37f17a58..494df9ab 100644 --- a/src/PostIt.Tests/SignaturePageViewModelTests.cs +++ b/src/PostIt.Tests/SignaturePageViewModelTests.cs @@ -1,10 +1,6 @@ -using System; -using System.IO; using System.Text.Json; -using System.Threading.Tasks; using PostIt.Controls; using PostIt.ViewModels; -using Xunit; namespace PostIt.Tests; diff --git a/src/PostIt.Tests/UnitTest1.cs b/src/PostIt.Tests/UnitTest1.cs index 96990865..aa053281 100644 --- a/src/PostIt.Tests/UnitTest1.cs +++ b/src/PostIt.Tests/UnitTest1.cs @@ -1,5 +1,4 @@ using Avalonia.Headless.XUnit; -using Avalonia.Controls; using PostIt.Views; namespace PostIt.Tests; @@ -13,4 +12,4 @@ public class MainPageTests window.Show(); Assert.NotNull(window); } -} \ No newline at end of file +} diff --git a/src/PostIt.Tests/YavscApiClientTests.cs b/src/PostIt.Tests/YavscApiClientTests.cs index e54bc541..21c0dd00 100644 --- a/src/PostIt.Tests/YavscApiClientTests.cs +++ b/src/PostIt.Tests/YavscApiClientTests.cs @@ -1,22 +1,10 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Net; -using System.Net.Http; using System.Net.Sockets; using System.Text; using System.Text.Json; -using System.Threading; -using Yavsc.Blogspot; -using Yavsc.Api.Client; using PostIt.Services; -using System.Threading.Tasks; -using IdentityModel.OidcClient; using IdentityModel.OidcClient.Browser; -using PostIt.Services; using PostIt.ViewModels; -using Xunit; namespace PostIt.Tests; diff --git a/src/PostIt/PostIt.Android/MainActivity.cs b/src/PostIt/PostIt.Android/MainActivity.cs index 86ce394a..a1fae5fb 100644 --- a/src/PostIt/PostIt.Android/MainActivity.cs +++ b/src/PostIt/PostIt.Android/MainActivity.cs @@ -1,7 +1,6 @@ using Android.App; using Android.Content.PM; using Android.Content; -using Avalonia; using Avalonia.Android; namespace PostIt.Android; @@ -63,4 +62,4 @@ public class MainActivity : AvaloniaMainActivity tcs?.TrySetResult(intent?.Data?.ToString() ?? string.Empty); } } -} \ No newline at end of file +} diff --git a/src/PostIt/PostIt.Android/Services/AndroidSystemBrowser.cs b/src/PostIt/PostIt.Android/Services/AndroidSystemBrowser.cs index cb9c324b..a801c004 100644 --- a/src/PostIt/PostIt.Android/Services/AndroidSystemBrowser.cs +++ b/src/PostIt/PostIt.Android/Services/AndroidSystemBrowser.cs @@ -1,7 +1,6 @@ using System; using System.Threading.Tasks; using Android.App; -using Android.Content; using AndroidX.Browser.CustomTabs; using IdentityModel.OidcClient.Browser; diff --git a/src/PostIt/PostIt.Browser/Program.cs b/src/PostIt/PostIt.Browser/Program.cs index 8700609d..f91cc4ee 100644 --- a/src/PostIt/PostIt.Browser/Program.cs +++ b/src/PostIt/PostIt.Browser/Program.cs @@ -1,5 +1,4 @@ -using System.Runtime.Versioning; -using System.Threading.Tasks; +using System.Threading.Tasks; using Avalonia; using Avalonia.Browser; using PostIt; @@ -15,4 +14,4 @@ internal sealed partial class Program public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure(); -} \ No newline at end of file +} diff --git a/src/PostIt/PostIt.Desktop/PlatformBootstrap.cs b/src/PostIt/PostIt.Desktop/PlatformBootstrap.cs index 1563ec53..ff9ca7f6 100644 --- a/src/PostIt/PostIt.Desktop/PlatformBootstrap.cs +++ b/src/PostIt/PostIt.Desktop/PlatformBootstrap.cs @@ -1,4 +1,3 @@ -using IdentityModel.OidcClient.Browser; using PostIt.Services; namespace PostIt.Desktop; diff --git a/src/PostIt/PostIt.Desktop/Program.cs b/src/PostIt/PostIt.Desktop/Program.cs index 23c4ef62..c2d73a31 100644 --- a/src/PostIt/PostIt.Desktop/Program.cs +++ b/src/PostIt/PostIt.Desktop/Program.cs @@ -1,5 +1,4 @@ using System; -using System.Threading; using Avalonia; using PostIt.Services; @@ -74,4 +73,4 @@ sealed class Program #endif .WithInterFont() .LogToTrace(); -} \ No newline at end of file +} diff --git a/src/PostIt/PostIt/Services/YavscApiClient.cs b/src/PostIt/PostIt/Services/YavscApiClient.cs index b611fe02..726b3f4f 100644 --- a/src/PostIt/PostIt/Services/YavscApiClient.cs +++ b/src/PostIt/PostIt/Services/YavscApiClient.cs @@ -3,7 +3,6 @@ using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Net.Http.Json; -using System.Text; using System.Text.Json; using System.Threading; using System.Threading.Tasks; diff --git a/src/PostIt/PostIt/ViewModels/AddCircleMemberDialogViewModel.cs b/src/PostIt/PostIt/ViewModels/AddCircleMemberDialogViewModel.cs index 59d6dbed..88d01335 100644 --- a/src/PostIt/PostIt/ViewModels/AddCircleMemberDialogViewModel.cs +++ b/src/PostIt/PostIt/ViewModels/AddCircleMemberDialogViewModel.cs @@ -5,7 +5,6 @@ using System.Threading.Tasks; using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using PostIt.Services; -using PostIt.Views; using Yavsc.Api.Client; namespace PostIt.ViewModels; diff --git a/src/PostIt/PostIt/ViewModels/HomePageViewModel.cs b/src/PostIt/PostIt/ViewModels/HomePageViewModel.cs index 876f862c..5d727729 100644 --- a/src/PostIt/PostIt/ViewModels/HomePageViewModel.cs +++ b/src/PostIt/PostIt/ViewModels/HomePageViewModel.cs @@ -1,6 +1,4 @@ using CommunityToolkit.Mvvm.Input; -using Microsoft.Extensions.DependencyInjection; -using PostIt; using PostIt.Services; namespace PostIt.ViewModels; diff --git a/src/PostIt/PostIt/ViewModels/MainPageViewModel.cs b/src/PostIt/PostIt/ViewModels/MainPageViewModel.cs index e8256df6..d374c9e4 100644 --- a/src/PostIt/PostIt/ViewModels/MainPageViewModel.cs +++ b/src/PostIt/PostIt/ViewModels/MainPageViewModel.cs @@ -8,8 +8,6 @@ using CommunityToolkit.Mvvm.Input; using Microsoft.Extensions.DependencyInjection; using Yavsc.Blogspot; using Yavsc.Api.Client; -using PostIt.Services; -using PostIt.Views; namespace PostIt.ViewModels; diff --git a/src/PostIt/PostIt/ViewModels/ViewModelBase.cs b/src/PostIt/PostIt/ViewModels/ViewModelBase.cs index 93019360..5ce17aba 100644 --- a/src/PostIt/PostIt/ViewModels/ViewModelBase.cs +++ b/src/PostIt/PostIt/ViewModels/ViewModelBase.cs @@ -1,11 +1,10 @@ -using Avalonia.Styling; -using CommunityToolkit.Mvvm.ComponentModel; +using CommunityToolkit.Mvvm.ComponentModel; namespace PostIt.ViewModels; public abstract partial class ViewModelBase : ObservableObject { - + /// /// Gets if the user can navigate to the next page /// diff --git a/src/PostIt/PostIt/Views/CirclesPage.axaml.cs b/src/PostIt/PostIt/Views/CirclesPage.axaml.cs index a2f01fb5..3fe7a16c 100644 --- a/src/PostIt/PostIt/Views/CirclesPage.axaml.cs +++ b/src/PostIt/PostIt/Views/CirclesPage.axaml.cs @@ -1,10 +1,5 @@ -using System; -using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; -using Microsoft.Extensions.DependencyInjection; -using PostIt.Services; -using PostIt.ViewModels; namespace PostIt.Views; diff --git a/src/PostIt/PostIt/Views/SessionStatusBanner.axaml.cs b/src/PostIt/PostIt/Views/SessionStatusBanner.axaml.cs index 0f240635..ac788ee4 100644 --- a/src/PostIt/PostIt/Views/SessionStatusBanner.axaml.cs +++ b/src/PostIt/PostIt/Views/SessionStatusBanner.axaml.cs @@ -1,5 +1,4 @@ using Avalonia.Controls; -using Avalonia.Markup.Xaml; namespace PostIt.Views; diff --git a/src/Yavsc.Abstract/Attributes/ActivityBillingAttribute.cs b/src/Yavsc.Abstract/Attributes/ActivityBillingAttribute.cs index a3f13d7d..3930a69f 100644 --- a/src/Yavsc.Abstract/Attributes/ActivityBillingAttribute.cs +++ b/src/Yavsc.Abstract/Attributes/ActivityBillingAttribute.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc.Attributes { public class ActivityBillingAttribute : Attribute diff --git a/src/Yavsc.Abstract/Attributes/ActivitySettingsAttribute.cs b/src/Yavsc.Abstract/Attributes/ActivitySettingsAttribute.cs index f91a7279..8d9b958f 100644 --- a/src/Yavsc.Abstract/Attributes/ActivitySettingsAttribute.cs +++ b/src/Yavsc.Abstract/Attributes/ActivitySettingsAttribute.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc.Attributes { public class ActivitySettingsAttribute : Attribute diff --git a/src/Yavsc.Abstract/Attributes/Validation/ValidRemoteUserDirAttribute.cs b/src/Yavsc.Abstract/Attributes/Validation/ValidRemoteUserDirAttribute.cs index 43c44054..33e3f21a 100644 --- a/src/Yavsc.Abstract/Attributes/Validation/ValidRemoteUserDirAttribute.cs +++ b/src/Yavsc.Abstract/Attributes/Validation/ValidRemoteUserDirAttribute.cs @@ -1,10 +1,8 @@ - -using System; using System.ComponentModel.DataAnnotations; using Yavsc.Server.Helpers; namespace Yavsc.Attributes.Validation -{ +{ /// /// Valid Remote User Dir Attribute /// @@ -18,7 +16,7 @@ namespace Yavsc.Attributes.Validation { if (ErrorMessageResourceType==null) { ErrorMessageResourceType = typeof(Yavsc.Attributes.Validation.Resources); - ErrorMessageResourceName = "InvalidPath"; + ErrorMessageResourceName = "InvalidPath"; } } diff --git a/src/Yavsc.Abstract/Attributes/Validation/YaRegularExpression.cs b/src/Yavsc.Abstract/Attributes/Validation/YaRegularExpression.cs index 5bb67326..92175c36 100644 --- a/src/Yavsc.Abstract/Attributes/Validation/YaRegularExpression.cs +++ b/src/Yavsc.Abstract/Attributes/Validation/YaRegularExpression.cs @@ -1,14 +1,12 @@ - -using System; using System.Reflection; namespace Yavsc.Attributes.Validation { - public class YaRegularExpression : System.ComponentModel.DataAnnotations.RegularExpressionAttribute { + public class YaRegularExpression : System.ComponentModel.DataAnnotations.RegularExpressionAttribute { public YaRegularExpression(string pattern): base (pattern) { this.ErrorMessage = "RegularExpression: "+ pattern; - + } public override string FormatErrorMessage(string name) @@ -20,4 +18,4 @@ namespace Yavsc.Attributes.Validation } } -} \ No newline at end of file +} diff --git a/src/Yavsc.Abstract/Attributes/Validation/YaRequiredAttribute.cs b/src/Yavsc.Abstract/Attributes/Validation/YaRequiredAttribute.cs index 9f753c20..e3c04be4 100644 --- a/src/Yavsc.Abstract/Attributes/Validation/YaRequiredAttribute.cs +++ b/src/Yavsc.Abstract/Attributes/Validation/YaRequiredAttribute.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc.Attributes.Validation { [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)] @@ -13,13 +11,13 @@ namespace Yavsc.Attributes.Validation public YaRequiredAttribute (string msg) : base(msg) { ErrorMessage = msg; - } + } public YaRequiredAttribute () : base("Required Field") { ErrorMessageResourceType = typeof(Yavsc.Attributes.Validation.Resources); ErrorMessageResourceName = "FieldRequired"; } - + public override bool IsValid(object value) { if (value == null) { return false; @@ -34,5 +32,5 @@ namespace Yavsc.Attributes.Validation return true; } } - -} \ No newline at end of file + +} diff --git a/src/Yavsc.Abstract/Attributes/Validation/YaStringLength.cs b/src/Yavsc.Abstract/Attributes/Validation/YaStringLength.cs index c4c7b19f..91015b24 100644 --- a/src/Yavsc.Abstract/Attributes/Validation/YaStringLength.cs +++ b/src/Yavsc.Abstract/Attributes/Validation/YaStringLength.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc.Attributes.Validation { public partial class YaStringLength: YaValidationAttribute @@ -21,15 +19,15 @@ namespace Yavsc.Attributes.Validation { if (ErrorMessageResourceType==null) { ErrorMessageResourceType = typeof(Yavsc.Attributes.Validation.Resources); - ErrorMessageResourceName = "InvalidStringLength"; + ErrorMessageResourceName = "InvalidStringLength"; } } public override bool IsValid(object value) { - + string stringValue = value as string; if (stringValue==null) return MinimumLength <= 0; - if (MinimumLength>=0) + if (MinimumLength>=0) { if (stringValue.Length< MinimumLength) { return false; diff --git a/src/Yavsc.Abstract/Attributes/Validation/YaValidationAttribute.cs b/src/Yavsc.Abstract/Attributes/Validation/YaValidationAttribute.cs index 827d26ba..d8d6070d 100644 --- a/src/Yavsc.Abstract/Attributes/Validation/YaValidationAttribute.cs +++ b/src/Yavsc.Abstract/Attributes/Validation/YaValidationAttribute.cs @@ -1,6 +1,3 @@ -using System; -using System.Reflection; - namespace Yavsc.Attributes.Validation { public class YaValidationAttribute : System.ComponentModel.DataAnnotations.ValidationAttribute @@ -9,7 +6,7 @@ namespace Yavsc.Attributes.Validation { } - + public YaValidationAttribute(Func acr): base(acr) { @@ -45,4 +42,4 @@ namespace Yavsc.Attributes.Validation return GetResourceString(ErrorMessageResourceName); } } -} \ No newline at end of file +} diff --git a/src/Yavsc.Abstract/Authentication/RegisterModel.cs b/src/Yavsc.Abstract/Authentication/RegisterModel.cs index e4285f06..2ebb3297 100644 --- a/src/Yavsc.Abstract/Authentication/RegisterModel.cs +++ b/src/Yavsc.Abstract/Authentication/RegisterModel.cs @@ -1,7 +1,4 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Attributes.Validation; -using Yavsc.Abstract; - using Yavsc; namespace Yavsc.ViewModels.Account { diff --git a/src/Yavsc.Abstract/Billing/IBillable.cs b/src/Yavsc.Abstract/Billing/IBillable.cs index dfc9ee0f..416dc5be 100644 --- a/src/Yavsc.Abstract/Billing/IBillable.cs +++ b/src/Yavsc.Abstract/Billing/IBillable.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using Yavsc.Services; namespace Yavsc.Billing diff --git a/src/Yavsc.Abstract/Blogspot/IBlogPost.cs b/src/Yavsc.Abstract/Blogspot/IBlogPost.cs index 6090fca2..1ef37180 100644 --- a/src/Yavsc.Abstract/Blogspot/IBlogPost.cs +++ b/src/Yavsc.Abstract/Blogspot/IBlogPost.cs @@ -2,7 +2,6 @@ using Yavsc.Abstract.Identity.Security; -using Yavsc.Interfaces; namespace Yavsc.Blogspot { diff --git a/src/Yavsc.Abstract/Chat/IChatRoom.cs b/src/Yavsc.Abstract/Chat/IChatRoom.cs index 665c7126..1d6f68dd 100644 --- a/src/Yavsc.Abstract/Chat/IChatRoom.cs +++ b/src/Yavsc.Abstract/Chat/IChatRoom.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Yavsc.Abstract.Chat @@ -15,4 +14,4 @@ namespace Yavsc.Abstract.Chat List Moderation { get; } } -} \ No newline at end of file +} diff --git a/src/Yavsc.Abstract/FileSystem/AbstractFileSystemHelpers.cs b/src/Yavsc.Abstract/FileSystem/AbstractFileSystemHelpers.cs index 5e571e24..dd805864 100644 --- a/src/Yavsc.Abstract/FileSystem/AbstractFileSystemHelpers.cs +++ b/src/Yavsc.Abstract/FileSystem/AbstractFileSystemHelpers.cs @@ -1,7 +1,4 @@ -using System; -using System.IO; -using System.Linq; -using System.Text; +using System.Text; using Yavsc.ViewModels.UserFiles; namespace Yavsc.Server.Helpers @@ -42,10 +39,10 @@ namespace Yavsc.Server.Helpers { if (name.Any(c => !ValidFileNameChars.Contains(c))) return false; - + if (!name.Any(c => !AlfaNum.Contains(c))) return false; - + return true; } diff --git a/src/Yavsc.Abstract/FileSystem/RemoteFileInfo.cs b/src/Yavsc.Abstract/FileSystem/RemoteFileInfo.cs index 76cb17eb..2a21823c 100644 --- a/src/Yavsc.Abstract/FileSystem/RemoteFileInfo.cs +++ b/src/Yavsc.Abstract/FileSystem/RemoteFileInfo.cs @@ -1,8 +1,6 @@ -using System; - -namespace Yavsc.ViewModels +namespace Yavsc.ViewModels { - public class RemoteFileInfo + public class RemoteFileInfo { public string Name { get; set; } @@ -11,7 +9,7 @@ namespace Yavsc.ViewModels public DateTime CreationTime { get; set; } public DateTime LastModified { get; set; } - + } -} \ No newline at end of file +} diff --git a/src/Yavsc.Abstract/FileSystem/UserDirectoryInfo.cs b/src/Yavsc.Abstract/FileSystem/UserDirectoryInfo.cs index cced9397..fa727d0c 100644 --- a/src/Yavsc.Abstract/FileSystem/UserDirectoryInfo.cs +++ b/src/Yavsc.Abstract/FileSystem/UserDirectoryInfo.cs @@ -1,7 +1,3 @@ -using System; -using System.IO; -using System.Linq; -using Yavsc.Abstract.FileSystem; using Yavsc.Server.Helpers; namespace Yavsc.ViewModels.UserFiles @@ -13,7 +9,7 @@ namespace Yavsc.ViewModels.UserFiles public RemoteFileInfo [] Files { get; set; } - public DirectoryShortInfo [] SubDirectories {  + public DirectoryShortInfo [] SubDirectories { get; set; } private readonly DirectoryInfo dInfo; @@ -23,7 +19,7 @@ namespace Yavsc.ViewModels.UserFiles { } - + public UserDirectoryInfo(string userReposPath, string userId, string path) { if (string.IsNullOrWhiteSpace(userId)) diff --git a/src/Yavsc.Abstract/Google/Calendar/CalendarEventList.cs b/src/Yavsc.Abstract/Google/Calendar/CalendarEventList.cs index 095c28be..0b8b0682 100644 --- a/src/Yavsc.Abstract/Google/Calendar/CalendarEventList.cs +++ b/src/Yavsc.Abstract/Google/Calendar/CalendarEventList.cs @@ -18,8 +18,6 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -using System; - namespace Yavsc.Models.Google { diff --git a/src/Yavsc.Abstract/Google/Calendar/CalendarList.cs b/src/Yavsc.Abstract/Google/Calendar/CalendarList.cs index c7caccda..84ab1bf0 100644 --- a/src/Yavsc.Abstract/Google/Calendar/CalendarList.cs +++ b/src/Yavsc.Abstract/Google/Calendar/CalendarList.cs @@ -19,8 +19,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -using System; - namespace Yavsc.Models.Google.Calendar { /// diff --git a/src/Yavsc.Abstract/Google/Calendar/CalendarListEntry.cs b/src/Yavsc.Abstract/Google/Calendar/CalendarListEntry.cs index 00a5ffcb..99d9a99b 100644 --- a/src/Yavsc.Abstract/Google/Calendar/CalendarListEntry.cs +++ b/src/Yavsc.Abstract/Google/Calendar/CalendarListEntry.cs @@ -19,14 +19,12 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -using System; - namespace Yavsc.Models.Google.Calendar { /// /// Calendar list entry. /// - /// + /// [Obsolete("use GoogleUse.Apis")] public class CalendarListEntry { /// diff --git a/src/Yavsc.Abstract/Google/Calendar/Reminder.cs b/src/Yavsc.Abstract/Google/Calendar/Reminder.cs index 8a48753c..d10e6da7 100644 --- a/src/Yavsc.Abstract/Google/Calendar/Reminder.cs +++ b/src/Yavsc.Abstract/Google/Calendar/Reminder.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc.Models.Google.Calendar { [Obsolete("use GoogleUse.Apis")] diff --git a/src/Yavsc.Abstract/Google/GDate.cs b/src/Yavsc.Abstract/Google/GDate.cs index e1fe7f5c..3506ba41 100644 --- a/src/Yavsc.Abstract/Google/GDate.cs +++ b/src/Yavsc.Abstract/Google/GDate.cs @@ -18,8 +18,6 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -using System; - namespace Yavsc.Models.Google { /// diff --git a/src/Yavsc.Abstract/Google/Messaging/MessageWithPayLoad.cs b/src/Yavsc.Abstract/Google/Messaging/MessageWithPayLoad.cs index ed683304..344273ad 100644 --- a/src/Yavsc.Abstract/Google/Messaging/MessageWithPayLoad.cs +++ b/src/Yavsc.Abstract/Google/Messaging/MessageWithPayLoad.cs @@ -20,7 +20,6 @@ // along with this program. If not, see . using Yavsc.Abstract.Models.Messaging; -using Yavsc.Models.Messaging; namespace Yavsc.Models.Google.Messaging { diff --git a/src/Yavsc.Abstract/IT/CodeFromChars.cs b/src/Yavsc.Abstract/IT/CodeFromChars.cs index b8e2f0d6..ff441568 100644 --- a/src/Yavsc.Abstract/IT/CodeFromChars.cs +++ b/src/Yavsc.Abstract/IT/CodeFromChars.cs @@ -1,6 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; namespace Yavsc.Abstract.IT { @@ -13,10 +11,10 @@ namespace Yavsc.Abstract.IT } public CharArray (IList word): base(word) { - + } public CharArray (IEnumerable word): base(word) { - + } public IList Aggregate(char other) @@ -89,10 +87,10 @@ namespace Yavsc.Abstract.IT State = -3; return; } - + State = states[letter]; } } } -} \ No newline at end of file +} diff --git a/src/Yavsc.Abstract/IT/ICode.cs b/src/Yavsc.Abstract/IT/ICode.cs index c190065a..2661c70c 100644 --- a/src/Yavsc.Abstract/IT/ICode.cs +++ b/src/Yavsc.Abstract/IT/ICode.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace Yavsc.Abstract.IT { // un code est, parmis les ensembles de suites de signes, @@ -14,7 +12,7 @@ namespace Yavsc.Abstract.IT bool Validate(); /// - /// Defines a new letter in this code, + /// Defines a new letter in this code, /// as an enumerable of TLetter /// /// diff --git a/src/Yavsc.Abstract/IT/IProject.cs b/src/Yavsc.Abstract/IT/IProject.cs index e15fb067..946ab6e9 100644 --- a/src/Yavsc.Abstract/IT/IProject.cs +++ b/src/Yavsc.Abstract/IT/IProject.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace Yavsc.Abstract.IT { public interface IProject diff --git a/src/Yavsc.Abstract/Identity/TokenInfo.cs b/src/Yavsc.Abstract/Identity/TokenInfo.cs index 1847f3a2..2c7a4fd4 100644 --- a/src/Yavsc.Abstract/Identity/TokenInfo.cs +++ b/src/Yavsc.Abstract/Identity/TokenInfo.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc.Abstract.Identity { public class TokenInfo diff --git a/src/Yavsc.Abstract/Interfaces/IBaseTrackedEntity.cs b/src/Yavsc.Abstract/Interfaces/IBaseTrackedEntity.cs index f544f654..f79a596e 100644 --- a/src/Yavsc.Abstract/Interfaces/IBaseTrackedEntity.cs +++ b/src/Yavsc.Abstract/Interfaces/IBaseTrackedEntity.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc { public interface ITrackedEntity diff --git a/src/Yavsc.Abstract/Interfaces/IBatch.cs b/src/Yavsc.Abstract/Interfaces/IBatch.cs index e3dac450..a31470ec 100644 --- a/src/Yavsc.Abstract/Interfaces/IBatch.cs +++ b/src/Yavsc.Abstract/Interfaces/IBatch.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc.Abstract.Interfaces { public interface IBatch diff --git a/src/Yavsc.Abstract/Interfaces/IBillingService.cs b/src/Yavsc.Abstract/Interfaces/IBillingService.cs index 3ba7fc59..e11c9c99 100644 --- a/src/Yavsc.Abstract/Interfaces/IBillingService.cs +++ b/src/Yavsc.Abstract/Interfaces/IBillingService.cs @@ -1,8 +1,7 @@ namespace Yavsc.Services { - using System.Linq; - using System.Threading.Tasks; - using System.Collections.Generic; + using System.Threading.Tasks; + using System.Collections.Generic; using Yavsc.Abstract.Workflow; public interface IBillingService diff --git a/src/Yavsc.Abstract/Interfaces/Workflow/IBookQueryData.cs b/src/Yavsc.Abstract/Interfaces/Workflow/IBookQueryData.cs index 6934f3a9..2c844f92 100644 --- a/src/Yavsc.Abstract/Interfaces/Workflow/IBookQueryData.cs +++ b/src/Yavsc.Abstract/Interfaces/Workflow/IBookQueryData.cs @@ -1,5 +1,4 @@ -using System; -using Yavsc.Abstract.Identity; +using Yavsc.Abstract.Identity; namespace Yavsc.Interfaces { @@ -11,4 +10,4 @@ namespace Yavsc.Interfaces ILocation Location { get; set; } decimal? Previsionnal { get; set; } } -} \ No newline at end of file +} diff --git a/src/Yavsc.Abstract/Messaging/IAnnounce.cs b/src/Yavsc.Abstract/Messaging/IAnnounce.cs index cd1957af..04d16c1b 100644 --- a/src/Yavsc.Abstract/Messaging/IAnnounce.cs +++ b/src/Yavsc.Abstract/Messaging/IAnnounce.cs @@ -1,6 +1,4 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using Yavsc.Interfaces; +using Yavsc.Interfaces; namespace Yavsc.Models.Messaging { @@ -8,5 +6,5 @@ namespace Yavsc.Models.Messaging Reason For { get; set; } string Message { get; set; } } - -} \ No newline at end of file + +} diff --git a/src/Yavsc.Abstract/Messaging/Notification.cs b/src/Yavsc.Abstract/Messaging/Notification.cs index 8b79e2c8..dbbf735d 100644 --- a/src/Yavsc.Abstract/Messaging/Notification.cs +++ b/src/Yavsc.Abstract/Messaging/Notification.cs @@ -1,4 +1,3 @@ -using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; @@ -29,7 +28,7 @@ namespace Yavsc.Abstract.Models.Messaging /// [StringLength(512)] [Display(Name = "Icône")] - public string? icon { get; set; } + public string? icon { get; set; } /// /// The sound. /// diff --git a/src/Yavsc.Abstract/Messaging/RdvQueryProviderInfo.cs b/src/Yavsc.Abstract/Messaging/RdvQueryProviderInfo.cs index 5e9118f3..87125c54 100644 --- a/src/Yavsc.Abstract/Messaging/RdvQueryProviderInfo.cs +++ b/src/Yavsc.Abstract/Messaging/RdvQueryProviderInfo.cs @@ -1,4 +1,3 @@ -using System; using Yavsc.Abstract.Identity; using Yavsc.Models.Relationship; diff --git a/src/Yavsc.Abstract/Relationship/Location.cs b/src/Yavsc.Abstract/Relationship/Location.cs index 6c7491f6..de4beb20 100644 --- a/src/Yavsc.Abstract/Relationship/Location.cs +++ b/src/Yavsc.Abstract/Relationship/Location.cs @@ -1,6 +1,5 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using Yavsc.Attributes.Validation; namespace Yavsc.Models.Relationship { diff --git a/src/Yavsc.Abstract/Relationship/Position.cs b/src/Yavsc.Abstract/Relationship/Position.cs index 22b03c76..717ac922 100644 --- a/src/Yavsc.Abstract/Relationship/Position.cs +++ b/src/Yavsc.Abstract/Relationship/Position.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Attributes.Validation; namespace Yavsc.Models.Relationship { diff --git a/src/Yavsc.Abstract/Templates/Template.cs b/src/Yavsc.Abstract/Templates/Template.cs index ee1a8c8b..c71fcfbf 100644 --- a/src/Yavsc.Abstract/Templates/Template.cs +++ b/src/Yavsc.Abstract/Templates/Template.cs @@ -1,5 +1,4 @@ using System.Text; -using System.Threading.Tasks; namespace Yavsc.Abstract.Templates { diff --git a/src/Yavsc.Abstract/Workflow/IActivity.cs b/src/Yavsc.Abstract/Workflow/IActivity.cs index 45781b28..2f06420b 100644 --- a/src/Yavsc.Abstract/Workflow/IActivity.cs +++ b/src/Yavsc.Abstract/Workflow/IActivity.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc { public interface IActivity diff --git a/src/Yavsc.Abstract/Workflow/IMobileDeviceDeclaration.cs b/src/Yavsc.Abstract/Workflow/IMobileDeviceDeclaration.cs index 4f3613e8..6e55ebe5 100644 --- a/src/Yavsc.Abstract/Workflow/IMobileDeviceDeclaration.cs +++ b/src/Yavsc.Abstract/Workflow/IMobileDeviceDeclaration.cs @@ -16,8 +16,6 @@ // along with yavsc. If not, see . // -using System; - namespace Yavsc { public interface IMobileDeviceDeclaration diff --git a/src/Yavsc.Abstract/Workflow/INominativeQuery.cs b/src/Yavsc.Abstract/Workflow/INominativeQuery.cs index d498e28d..84dcee69 100644 --- a/src/Yavsc.Abstract/Workflow/INominativeQuery.cs +++ b/src/Yavsc.Abstract/Workflow/INominativeQuery.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc.Abstract.Workflow { public interface IDecidableQuery: ITrackedEntity, IQuery diff --git a/src/Yavsc.Abstract/Workflow/Process/Conjonction.cs b/src/Yavsc.Abstract/Workflow/Process/Conjonction.cs index bd2125db..a45de4e6 100644 --- a/src/Yavsc.Abstract/Workflow/Process/Conjonction.cs +++ b/src/Yavsc.Abstract/Workflow/Process/Conjonction.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace Yavsc.Models.Process { public class Conjonction : List, IRequisition diff --git a/src/Yavsc.Abstract/Workflow/Process/Disjonction.cs b/src/Yavsc.Abstract/Workflow/Process/Disjonction.cs index 416257b7..5c4e0831 100644 --- a/src/Yavsc.Abstract/Workflow/Process/Disjonction.cs +++ b/src/Yavsc.Abstract/Workflow/Process/Disjonction.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace Yavsc.Models.Process { public class Disjonction : List, IRequisition diff --git a/src/Yavsc.Abstract/Workflow/Tasks/IExecutionData.cs b/src/Yavsc.Abstract/Workflow/Tasks/IExecutionData.cs index fbc72a52..674ed6ac 100644 --- a/src/Yavsc.Abstract/Workflow/Tasks/IExecutionData.cs +++ b/src/Yavsc.Abstract/Workflow/Tasks/IExecutionData.cs @@ -1,7 +1,3 @@ -using System.Collections.Generic; -using System.Threading.Tasks; - - namespace Yavsc.Abstract.Workflow { public interface IExecutionData diff --git a/src/Yavsc.Abstract/Workflow/Tasks/ITaskMetaData.cs b/src/Yavsc.Abstract/Workflow/Tasks/ITaskMetaData.cs index e2371641..9e5365a3 100644 --- a/src/Yavsc.Abstract/Workflow/Tasks/ITaskMetaData.cs +++ b/src/Yavsc.Abstract/Workflow/Tasks/ITaskMetaData.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using Yavsc.Models; namespace Yavsc.Abstract.Workflow diff --git a/src/Yavsc.Abstract/Workflow/Tasks/TaskManager.cs b/src/Yavsc.Abstract/Workflow/Tasks/TaskManager.cs index 55c262f7..59f23b8b 100644 --- a/src/Yavsc.Abstract/Workflow/Tasks/TaskManager.cs +++ b/src/Yavsc.Abstract/Workflow/Tasks/TaskManager.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using System.Linq; - namespace Yavsc.Abstract.Workflow { public class TaskManager : ITaskRunnerProvider @@ -17,4 +14,4 @@ namespace Yavsc.Abstract.Workflow return runners.Where(r => r.GetType().Name.IndexOf(runnerName.Trim())>=0).ToArray(); } } -} \ No newline at end of file +} diff --git a/src/Yavsc.Api/Controllers/Business/ActivityApiController.cs b/src/Yavsc.Api/Controllers/Business/ActivityApiController.cs index 5aeddc57..6d91ba82 100644 --- a/src/Yavsc.Api/Controllers/Business/ActivityApiController.cs +++ b/src/Yavsc.Api/Controllers/Business/ActivityApiController.cs @@ -1,9 +1,4 @@ -using System.Collections.Generic; -using System.Linq; -using System.Security.Claims; -using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Api/Controllers/Business/BookQueryApiController.cs b/src/Yavsc.Api/Controllers/Business/BookQueryApiController.cs index 7e58b071..0d7112ec 100644 --- a/src/Yavsc.Api/Controllers/Business/BookQueryApiController.cs +++ b/src/Yavsc.Api/Controllers/Business/BookQueryApiController.cs @@ -1,10 +1,6 @@ -using System.Collections.Generic; -using System.Linq; using System.Security.Claims; using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; namespace Yavsc.Controllers { @@ -14,7 +10,6 @@ namespace Yavsc.Controllers using Yavsc.Models.Billing; using Yavsc.Abstract.Identity; using Microsoft.EntityFrameworkCore; - using Yavsc.Helpers; using Yavsc.Server.Helpers; [Produces("application/json")] diff --git a/src/Yavsc.Api/Controllers/Business/EstimateApiController.cs b/src/Yavsc.Api/Controllers/Business/EstimateApiController.cs index 902cb038..891909f0 100644 --- a/src/Yavsc.Api/Controllers/Business/EstimateApiController.cs +++ b/src/Yavsc.Api/Controllers/Business/EstimateApiController.cs @@ -1,13 +1,8 @@ -using System; -using System.Linq; using System.Security.Claims; using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Microsoft.Extensions.Logging; using Newtonsoft.Json; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Billing; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Api/Controllers/Business/EstimateTemplatesApiController.cs b/src/Yavsc.Api/Controllers/Business/EstimateTemplatesApiController.cs index 81de4cac..3fc91365 100644 --- a/src/Yavsc.Api/Controllers/Business/EstimateTemplatesApiController.cs +++ b/src/Yavsc.Api/Controllers/Business/EstimateTemplatesApiController.cs @@ -1,7 +1,6 @@ using System.Security.Claims; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Billing; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Api/Controllers/Business/FrontOfficeApiController.cs b/src/Yavsc.Api/Controllers/Business/FrontOfficeApiController.cs index c05da827..91d57d9f 100644 --- a/src/Yavsc.Api/Controllers/Business/FrontOfficeApiController.cs +++ b/src/Yavsc.Api/Controllers/Business/FrontOfficeApiController.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using Yavsc.Helpers; using Yavsc.Models; diff --git a/src/Yavsc.Api/Controllers/Business/ProductApiController.cs b/src/Yavsc.Api/Controllers/Business/ProductApiController.cs index 97a60fdb..d9792839 100644 --- a/src/Yavsc.Api/Controllers/Business/ProductApiController.cs +++ b/src/Yavsc.Api/Controllers/Business/ProductApiController.cs @@ -1,7 +1,6 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Market; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Api/Controllers/HairCut/BursherProfilesApiController.cs b/src/Yavsc.Api/Controllers/HairCut/BursherProfilesApiController.cs index cd3a561b..00e6e4ea 100644 --- a/src/Yavsc.Api/Controllers/HairCut/BursherProfilesApiController.cs +++ b/src/Yavsc.Api/Controllers/HairCut/BursherProfilesApiController.cs @@ -1,6 +1,5 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Haircut; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Api/Controllers/HairCut/HairCutController.cs b/src/Yavsc.Api/Controllers/HairCut/HairCutController.cs index c1181f54..bf27d1d9 100644 --- a/src/Yavsc.Api/Controllers/HairCut/HairCutController.cs +++ b/src/Yavsc.Api/Controllers/HairCut/HairCutController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; namespace Yavsc.ApiControllers @@ -11,7 +9,6 @@ namespace Yavsc.ApiControllers using System.Security.Claims; using Microsoft.Extensions.Logging; using Models; - using Services; using Models.Haircut; using System.Threading.Tasks; using Helpers; diff --git a/src/Yavsc.Api/Controllers/Musical/DjProfileApiController.cs b/src/Yavsc.Api/Controllers/Musical/DjProfileApiController.cs index 050241a7..35e97194 100644 --- a/src/Yavsc.Api/Controllers/Musical/DjProfileApiController.cs +++ b/src/Yavsc.Api/Controllers/Musical/DjProfileApiController.cs @@ -1,6 +1,5 @@ namespace Yavsc.ApiControllers { - using Models; using Yavsc.Models.Musical.Profiles; public class DjProfileApiController : ProfileApiController diff --git a/src/Yavsc.Api/Controllers/Musical/MusicalPreferencesApiController.cs b/src/Yavsc.Api/Controllers/Musical/MusicalPreferencesApiController.cs index dc935c14..89d1d265 100644 --- a/src/Yavsc.Api/Controllers/Musical/MusicalPreferencesApiController.cs +++ b/src/Yavsc.Api/Controllers/Musical/MusicalPreferencesApiController.cs @@ -1,6 +1,5 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Musical; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Api/Controllers/Musical/MusicalTendenciesApiController.cs b/src/Yavsc.Api/Controllers/Musical/MusicalTendenciesApiController.cs index e72090f6..67c5c2f8 100644 --- a/src/Yavsc.Api/Controllers/Musical/MusicalTendenciesApiController.cs +++ b/src/Yavsc.Api/Controllers/Musical/MusicalTendenciesApiController.cs @@ -1,6 +1,5 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Musical; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Api/Controllers/PostRateApiController.cs b/src/Yavsc.Api/Controllers/PostRateApiController.cs index 50d6d2e9..83e2bee1 100644 --- a/src/Yavsc.Api/Controllers/PostRateApiController.cs +++ b/src/Yavsc.Api/Controllers/PostRateApiController.cs @@ -1,8 +1,6 @@ -using System.Linq; using System.Security.Claims; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Api/Controllers/ProfileApiController.cs b/src/Yavsc.Api/Controllers/ProfileApiController.cs index 93bf2a4e..7ae9f153 100644 --- a/src/Yavsc.Api/Controllers/ProfileApiController.cs +++ b/src/Yavsc.Api/Controllers/ProfileApiController.cs @@ -2,8 +2,6 @@ using Microsoft.AspNetCore.Mvc; namespace Yavsc.ApiControllers { - using Models; - /// /// Base class for managing performers profiles /// diff --git a/src/Yavsc.Api/Controllers/Relationship/BlackListApiController.cs b/src/Yavsc.Api/Controllers/Relationship/BlackListApiController.cs index 32cf8495..3a0ca630 100644 --- a/src/Yavsc.Api/Controllers/Relationship/BlackListApiController.cs +++ b/src/Yavsc.Api/Controllers/Relationship/BlackListApiController.cs @@ -2,7 +2,6 @@ using System.Security.Claims; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Access; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Api/Controllers/Relationship/ChatRoomApiController.cs b/src/Yavsc.Api/Controllers/Relationship/ChatRoomApiController.cs index 5d59f6bd..d0f712b3 100644 --- a/src/Yavsc.Api/Controllers/Relationship/ChatRoomApiController.cs +++ b/src/Yavsc.Api/Controllers/Relationship/ChatRoomApiController.cs @@ -1,6 +1,5 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Chat; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Api/Controllers/Relationship/ContactsApiController.cs b/src/Yavsc.Api/Controllers/Relationship/ContactsApiController.cs index 96ba03dc..d7ed4607 100644 --- a/src/Yavsc.Api/Controllers/Relationship/ContactsApiController.cs +++ b/src/Yavsc.Api/Controllers/Relationship/ContactsApiController.cs @@ -1,7 +1,6 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Yavsc.Abstract.Identity; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Api/Controllers/ServiceApiController.cs b/src/Yavsc.Api/Controllers/ServiceApiController.cs index 8556fb5a..98817eeb 100644 --- a/src/Yavsc.Api/Controllers/ServiceApiController.cs +++ b/src/Yavsc.Api/Controllers/ServiceApiController.cs @@ -1,7 +1,6 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Market; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Api/Controllers/accounting/ApplicationUserApiController.cs b/src/Yavsc.Api/Controllers/accounting/ApplicationUserApiController.cs index cb565a0d..837e7f1e 100644 --- a/src/Yavsc.Api/Controllers/accounting/ApplicationUserApiController.cs +++ b/src/Yavsc.Api/Controllers/accounting/ApplicationUserApiController.cs @@ -1,12 +1,7 @@ -using System.Collections.Generic; -using System.Linq; -using System.Security.Claims; using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Yavsc.Abstract.Identity; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Api/Controllers/accounting/ProfileApiController.cs b/src/Yavsc.Api/Controllers/accounting/ProfileApiController.cs index ce90b076..3b72e1b6 100644 --- a/src/Yavsc.Api/Controllers/accounting/ProfileApiController.cs +++ b/src/Yavsc.Api/Controllers/accounting/ProfileApiController.cs @@ -1,11 +1,7 @@ using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; -using System.Security.Claims; -using System.Threading.Tasks; -using System.Linq; using Yavsc.Models; using Yavsc.Abstract.Identity; -using Yavsc.Helpers; using Yavsc.Server.Helpers; namespace Yavsc.ApiControllers.accounting diff --git a/src/Yavsc.Api/Helpers/RequestHelpers.cs b/src/Yavsc.Api/Helpers/RequestHelpers.cs index 0ab687e0..d92e765e 100644 --- a/src/Yavsc.Api/Helpers/RequestHelpers.cs +++ b/src/Yavsc.Api/Helpers/RequestHelpers.cs @@ -1,13 +1,3 @@ -using System.Collections.Generic; - -using Microsoft.Extensions.Logging; -using Microsoft.AspNetCore.Http; -using System.Threading.Tasks; -using Newtonsoft.Json; -using Yavsc.ViewModels; -using Yavsc.Models; -using System.Linq; - namespace Yavsc.Api.Helpers { public static class RequestHelpers diff --git a/src/Yavsc.Api/Program.cs b/src/Yavsc.Api/Program.cs index f7f247cc..3ed20e8d 100644 --- a/src/Yavsc.Api/Program.cs +++ b/src/Yavsc.Api/Program.cs @@ -15,7 +15,6 @@ using IdentityModel; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection.Extensions; -using Yavsc; using Yavsc.Abstract.Interfaces; using Yavsc.Helpers; using Yavsc.Interface; diff --git a/src/Yavsc.Blogs.Tests/BlogAclApiTests.cs b/src/Yavsc.Blogs.Tests/BlogAclApiTests.cs index 49259d05..92dd3b2c 100644 --- a/src/Yavsc.Blogs.Tests/BlogAclApiTests.cs +++ b/src/Yavsc.Blogs.Tests/BlogAclApiTests.cs @@ -5,8 +5,6 @@ using Microsoft.Extensions.DependencyInjection; using Yavsc.Abstract.BlogSpot; using Yavsc.Models; using Yavsc.Models.Access; -using Yavsc.Models.Blog; -using Yavsc.Models.Relationship; using Yavsc.Tests.Shared; using static Yavsc.Constants; diff --git a/src/Yavsc.Blogs.Tests/BlogApiSmokeTests.cs b/src/Yavsc.Blogs.Tests/BlogApiSmokeTests.cs index 162d76fe..2fd42e2f 100644 --- a/src/Yavsc.Blogs.Tests/BlogApiSmokeTests.cs +++ b/src/Yavsc.Blogs.Tests/BlogApiSmokeTests.cs @@ -1,7 +1,4 @@ -using System.Net; -using System.Net.Http; using Microsoft.Extensions.DependencyInjection; -using Yavsc.Tests.Shared; namespace Yavsc.Blogs.Tests; diff --git a/src/Yavsc.Blogs.Tests/CircleMembersApiTests.cs b/src/Yavsc.Blogs.Tests/CircleMembersApiTests.cs index a2367180..cc376c84 100644 --- a/src/Yavsc.Blogs.Tests/CircleMembersApiTests.cs +++ b/src/Yavsc.Blogs.Tests/CircleMembersApiTests.cs @@ -1,5 +1,4 @@ using System.Net; -using System.Net.Http; using System.Net.Http.Json; using System.Text.Json; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Yavsc.Blogs.Tests/JwtClaimMappingCollection.cs b/src/Yavsc.Blogs.Tests/JwtClaimMappingCollection.cs index e141c0f3..927453ac 100644 --- a/src/Yavsc.Blogs.Tests/JwtClaimMappingCollection.cs +++ b/src/Yavsc.Blogs.Tests/JwtClaimMappingCollection.cs @@ -1,5 +1,3 @@ -using Xunit; - namespace Yavsc.Blogs.Tests; [CollectionDefinition("JwtClaimMapping", DisableParallelization = true)] diff --git a/src/Yavsc.Blogs.Tests/MappedClaimsBlogsWebServerFixture.cs b/src/Yavsc.Blogs.Tests/MappedClaimsBlogsWebServerFixture.cs index 6d84aed5..127f38fe 100644 --- a/src/Yavsc.Blogs.Tests/MappedClaimsBlogsWebServerFixture.cs +++ b/src/Yavsc.Blogs.Tests/MappedClaimsBlogsWebServerFixture.cs @@ -1,6 +1,5 @@ using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; -using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; diff --git a/src/Yavsc.Blogs.Tests/PublishEndpointTests.cs b/src/Yavsc.Blogs.Tests/PublishEndpointTests.cs index e767a57a..8a564262 100644 --- a/src/Yavsc.Blogs.Tests/PublishEndpointTests.cs +++ b/src/Yavsc.Blogs.Tests/PublishEndpointTests.cs @@ -1,5 +1,4 @@ using System.Net; -using System.Net.Http; using System.Net.Http.Json; using System.Text.Json; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Yavsc.Blogs/Controllers/CircleApiController.cs b/src/Yavsc.Blogs/Controllers/CircleApiController.cs index ea3c981b..524f0471 100644 --- a/src/Yavsc.Blogs/Controllers/CircleApiController.cs +++ b/src/Yavsc.Blogs/Controllers/CircleApiController.cs @@ -1,4 +1,3 @@ -using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Yavsc.Models; diff --git a/src/Yavsc.Blogs/Program.cs b/src/Yavsc.Blogs/Program.cs index 952115d3..00ac7f6f 100644 --- a/src/Yavsc.Blogs/Program.cs +++ b/src/Yavsc.Blogs/Program.cs @@ -3,7 +3,6 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection.Extensions; -using Yavsc; using Yavsc.Interface; using Yavsc.Interfaces; using Yavsc.Models; diff --git a/src/Yavsc.Org.Tests/ComputeKidTests.cs b/src/Yavsc.Org.Tests/ComputeKidTests.cs index af9d94a9..b1338bbd 100644 --- a/src/Yavsc.Org.Tests/ComputeKidTests.cs +++ b/src/Yavsc.Org.Tests/ComputeKidTests.cs @@ -1,9 +1,5 @@ -using System; -using System.IO; -using System.Linq; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; -using Xunit; using Yavsc.Extensions; namespace Yavsc.Org.Tests; diff --git a/src/Yavsc.Org.Tests/Controllers/ClientControllerCollectionTests.cs b/src/Yavsc.Org.Tests/Controllers/ClientControllerCollectionTests.cs index 8883c75d..d2e40f53 100644 --- a/src/Yavsc.Org.Tests/Controllers/ClientControllerCollectionTests.cs +++ b/src/Yavsc.Org.Tests/Controllers/ClientControllerCollectionTests.cs @@ -1,11 +1,8 @@ using System.Net; -using System.Net.Http; -using System.Threading.Tasks; using IdentityServer8.EntityFramework.Entities; using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; -using Xunit; using Yavsc.Models; using Yavsc.Tests.Shared; diff --git a/src/Yavsc.Org.Tests/Controllers/CommandFormsControllerTests.cs b/src/Yavsc.Org.Tests/Controllers/CommandFormsControllerTests.cs index 953ac43c..462d6fca 100644 --- a/src/Yavsc.Org.Tests/Controllers/CommandFormsControllerTests.cs +++ b/src/Yavsc.Org.Tests/Controllers/CommandFormsControllerTests.cs @@ -1,8 +1,5 @@ using System.Net; -using System.Net.Http; -using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.Testing; -using Xunit; using Yavsc.Tests.Shared; namespace Yavsc.Org.Tests.Controllers; diff --git a/src/Yavsc.Org.Tests/EstimateSignatureFileHelperTests.cs b/src/Yavsc.Org.Tests/EstimateSignatureFileHelperTests.cs index 9de881af..d4e52cc4 100644 --- a/src/Yavsc.Org.Tests/EstimateSignatureFileHelperTests.cs +++ b/src/Yavsc.Org.Tests/EstimateSignatureFileHelperTests.cs @@ -1,11 +1,5 @@ -using System; -using System.IO; using System.Security.Claims; using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Xunit; -using Yavsc.Models; using Yavsc.Models.Billing; using Yavsc.Server.Helpers; using Yavsc.Server.Models.FileSystem; diff --git a/src/Yavsc.Org.Tests/NonRegression/ApplicationUserDisplayTemplateTests.cs b/src/Yavsc.Org.Tests/NonRegression/ApplicationUserDisplayTemplateTests.cs index 9fed6a15..e0f8e9bf 100644 --- a/src/Yavsc.Org.Tests/NonRegression/ApplicationUserDisplayTemplateTests.cs +++ b/src/Yavsc.Org.Tests/NonRegression/ApplicationUserDisplayTemplateTests.cs @@ -1,6 +1,3 @@ -using System.IO; -using Xunit; - namespace Yavsc.Org.Tests.NonRegression; /// diff --git a/src/Yavsc.Org.Tests/NonRegression/BillingServiceTests.cs b/src/Yavsc.Org.Tests/NonRegression/BillingServiceTests.cs index bf40438a..261308a2 100644 --- a/src/Yavsc.Org.Tests/NonRegression/BillingServiceTests.cs +++ b/src/Yavsc.Org.Tests/NonRegression/BillingServiceTests.cs @@ -1,10 +1,7 @@ using Microsoft.EntityFrameworkCore; -using Xunit; -using Yavsc; using Yavsc.Abstract.Workflow; using Yavsc.Helpers; using Yavsc.Models; -using Yavsc.Models.Billing; using Yavsc.Models.Haircut; using Yavsc.Services; diff --git a/src/Yavsc.Org.Tests/NonRegression/OidcSeedTests.cs b/src/Yavsc.Org.Tests/NonRegression/OidcSeedTests.cs index af449ae7..5bf46a30 100644 --- a/src/Yavsc.Org.Tests/NonRegression/OidcSeedTests.cs +++ b/src/Yavsc.Org.Tests/NonRegression/OidcSeedTests.cs @@ -1,5 +1,3 @@ -using Xunit; - namespace Yavsc { /// diff --git a/src/Yavsc.Org.Tests/NonRegression/UserDisplayHelpersTests.cs b/src/Yavsc.Org.Tests/NonRegression/UserDisplayHelpersTests.cs index 7543a42e..c7c46db9 100644 --- a/src/Yavsc.Org.Tests/NonRegression/UserDisplayHelpersTests.cs +++ b/src/Yavsc.Org.Tests/NonRegression/UserDisplayHelpersTests.cs @@ -1,5 +1,3 @@ -using Xunit; -using Yavsc.Abstract; using Yavsc.Abstract.Identity; namespace Yavsc.Org.Tests.NonRegression; diff --git a/src/Yavsc.Org.Tests/Smoke/AccountSmokeTests.cs b/src/Yavsc.Org.Tests/Smoke/AccountSmokeTests.cs index 50f92d63..c77a20ab 100644 --- a/src/Yavsc.Org.Tests/Smoke/AccountSmokeTests.cs +++ b/src/Yavsc.Org.Tests/Smoke/AccountSmokeTests.cs @@ -1,6 +1,3 @@ -using System.Threading.Tasks; -using Xunit; - namespace Yavsc.Org.Tests.Smoke; /// diff --git a/src/Yavsc.Org.Tests/Smoke/BlogSmokeTests.cs b/src/Yavsc.Org.Tests/Smoke/BlogSmokeTests.cs index 8aa95347..96650ba8 100644 --- a/src/Yavsc.Org.Tests/Smoke/BlogSmokeTests.cs +++ b/src/Yavsc.Org.Tests/Smoke/BlogSmokeTests.cs @@ -1,6 +1,3 @@ -using System.Threading.Tasks; -using Xunit; - namespace Yavsc.Org.Tests.Smoke; /// diff --git a/src/Yavsc.Org.Tests/Smoke/SmokeTestBase.cs b/src/Yavsc.Org.Tests/Smoke/SmokeTestBase.cs index 1029effc..29fd9b46 100644 --- a/src/Yavsc.Org.Tests/Smoke/SmokeTestBase.cs +++ b/src/Yavsc.Org.Tests/Smoke/SmokeTestBase.cs @@ -1,8 +1,3 @@ -using System.Net; -using System.Net.Http; -using System.Threading.Tasks; -using Xunit; - namespace Yavsc.Org.Tests.Smoke; /// diff --git a/src/Yavsc.Org.Tests/StaticAssetsPathsTests.cs b/src/Yavsc.Org.Tests/StaticAssetsPathsTests.cs index 01962268..fcc22e1c 100644 --- a/src/Yavsc.Org.Tests/StaticAssetsPathsTests.cs +++ b/src/Yavsc.Org.Tests/StaticAssetsPathsTests.cs @@ -1,7 +1,3 @@ -using System.IO; -using Xunit; -using Xunit.v3; - namespace Yavsc.Org.Tests; /// diff --git a/src/Yavsc.Org.Tests/TestUserMiddleware.cs b/src/Yavsc.Org.Tests/TestUserMiddleware.cs index b88a75e3..7117b2ed 100644 --- a/src/Yavsc.Org.Tests/TestUserMiddleware.cs +++ b/src/Yavsc.Org.Tests/TestUserMiddleware.cs @@ -1,6 +1,4 @@ -using System.Linq; using System.Security.Claims; -using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Yavsc.Tests.Shared; diff --git a/src/Yavsc.Org.Tests/WebServerFixture.cs b/src/Yavsc.Org.Tests/WebServerFixture.cs index edfd87d9..e580438b 100644 --- a/src/Yavsc.Org.Tests/WebServerFixture.cs +++ b/src/Yavsc.Org.Tests/WebServerFixture.cs @@ -10,7 +10,6 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using System.Net; using System.Net.Sockets; -using Yavsc; using Yavsc.Extensions; using Yavsc.Interfaces; using Yavsc.Models; diff --git a/src/Yavsc.Org/Contants.cs b/src/Yavsc.Org/Contants.cs index c8d79d6d..c4a5e8b1 100644 --- a/src/Yavsc.Org/Contants.cs +++ b/src/Yavsc.Org/Contants.cs @@ -1,8 +1,6 @@ namespace Yavsc.Org; -using IdentityServer8.EntityFramework.Entities; - public static class Constants { // ApiScopes seeded explicitly by EnsureDefaultApplicationScopes. diff --git a/src/Yavsc.Org/Controllers/Accounting/ExternalController.cs b/src/Yavsc.Org/Controllers/Accounting/ExternalController.cs index 1e0dd487..11bf1684 100644 --- a/src/Yavsc.Org/Controllers/Accounting/ExternalController.cs +++ b/src/Yavsc.Org/Controllers/Accounting/ExternalController.cs @@ -20,7 +20,6 @@ using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; -using Microsoft.EntityFrameworkCore; using Yavsc; using Yavsc.Extensions; using Yavsc.Interfaces; diff --git a/src/Yavsc.Org/Controllers/Accounting/UsersController.cs b/src/Yavsc.Org/Controllers/Accounting/UsersController.cs index cab06844..a94157ee 100644 --- a/src/Yavsc.Org/Controllers/Accounting/UsersController.cs +++ b/src/Yavsc.Org/Controllers/Accounting/UsersController.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; diff --git a/src/Yavsc.Org/Controllers/Administration/AdministrationController.cs b/src/Yavsc.Org/Controllers/Administration/AdministrationController.cs index e2944e9e..3abf8296 100644 --- a/src/Yavsc.Org/Controllers/Administration/AdministrationController.cs +++ b/src/Yavsc.Org/Controllers/Administration/AdministrationController.cs @@ -5,7 +5,6 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using Yavsc.Abstract.Identity; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Server.Helpers; using Yavsc.ViewModels; diff --git a/src/Yavsc.Org/Controllers/Administration/ClientController.cs b/src/Yavsc.Org/Controllers/Administration/ClientController.cs index ac3dc326..ed7e278e 100644 --- a/src/Yavsc.Org/Controllers/Administration/ClientController.cs +++ b/src/Yavsc.Org/Controllers/Administration/ClientController.cs @@ -1,4 +1,3 @@ -using IdentityServer8.EntityFramework.DbContexts; using IdentityServer8.EntityFramework.Entities; using IdentityServer8.EntityFramework.Stores; using Microsoft.AspNetCore.Authorization; diff --git a/src/Yavsc.Org/Controllers/Administration/MailingTemplateController.cs b/src/Yavsc.Org/Controllers/Administration/MailingTemplateController.cs index caaebc11..9be8b7c4 100644 --- a/src/Yavsc.Org/Controllers/Administration/MailingTemplateController.cs +++ b/src/Yavsc.Org/Controllers/Administration/MailingTemplateController.cs @@ -2,12 +2,10 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Yavsc.Models; -using Yavsc.Models.Calendar; using Yavsc.Server.Models.EMailing; using Microsoft.AspNetCore.Authorization; using Yavsc.Server.Settings; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Server.Models.Calendar; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Org/Controllers/Communicating/AnnouncesController.cs b/src/Yavsc.Org/Controllers/Communicating/AnnouncesController.cs index f8b41c99..d2aefcdb 100644 --- a/src/Yavsc.Org/Controllers/Communicating/AnnouncesController.cs +++ b/src/Yavsc.Org/Controllers/Communicating/AnnouncesController.cs @@ -1,11 +1,9 @@ -using System.Threading.Tasks; using Yavsc.ViewModels.Auth; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Yavsc.Models; using Yavsc.Models.Messaging; using Microsoft.Extensions.Localization; -using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Org/Controllers/Communicating/CircleController.cs b/src/Yavsc.Org/Controllers/Communicating/CircleController.cs index 8a19ba6b..d4110047 100644 --- a/src/Yavsc.Org/Controllers/Communicating/CircleController.cs +++ b/src/Yavsc.Org/Controllers/Communicating/CircleController.cs @@ -2,7 +2,6 @@ using System.Security.Claims; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Relationship; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Org/Controllers/Communicating/CircleMembersController.cs b/src/Yavsc.Org/Controllers/Communicating/CircleMembersController.cs index 2710c7cd..a64a1cf7 100644 --- a/src/Yavsc.Org/Controllers/Communicating/CircleMembersController.cs +++ b/src/Yavsc.Org/Controllers/Communicating/CircleMembersController.cs @@ -3,7 +3,6 @@ using System.Security.Claims; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Relationship; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Org/Controllers/Communicating/NotificationsController.cs b/src/Yavsc.Org/Controllers/Communicating/NotificationsController.cs index 5a3c25de..05df7f55 100644 --- a/src/Yavsc.Org/Controllers/Communicating/NotificationsController.cs +++ b/src/Yavsc.Org/Controllers/Communicating/NotificationsController.cs @@ -1,9 +1,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Yavsc.Abstract.Models.Messaging; -using Yavsc.Helpers; using Yavsc.Models; -using Yavsc.Models.Messaging; using Yavsc.Server.Helpers; namespace Yavsc.Controllers diff --git a/src/Yavsc.Org/Controllers/Consent/ConsentController.cs b/src/Yavsc.Org/Controllers/Consent/ConsentController.cs index b7b6eff8..b11ce511 100644 --- a/src/Yavsc.Org/Controllers/Consent/ConsentController.cs +++ b/src/Yavsc.Org/Controllers/Consent/ConsentController.cs @@ -8,15 +8,9 @@ using IdentityServer8.Services; using IdentityServer8.Extensions; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; -using System.Linq; -using System.Threading.Tasks; using IdentityServer8.Validation; -using System.Collections.Generic; -using System; using Yavsc; using Yavsc.Extensions; -using Yavsc.Models; namespace IdentityServerHost.Quickstart.UI { diff --git a/src/Yavsc.Org/Controllers/Consent/ConsentInputModel.cs b/src/Yavsc.Org/Controllers/Consent/ConsentInputModel.cs index f608fe3b..9eb30853 100644 --- a/src/Yavsc.Org/Controllers/Consent/ConsentInputModel.cs +++ b/src/Yavsc.Org/Controllers/Consent/ConsentInputModel.cs @@ -1,9 +1,6 @@ // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. - -using System.Collections.Generic; - namespace IdentityServerHost.Quickstart.UI { public class ConsentInputModel @@ -14,4 +11,4 @@ namespace IdentityServerHost.Quickstart.UI public string ReturnUrl { get; set; } public string Description { get; set; } } -} \ No newline at end of file +} diff --git a/src/Yavsc.Org/Controllers/Consent/ConsentViewModel.cs b/src/Yavsc.Org/Controllers/Consent/ConsentViewModel.cs index af4b9c5c..3d157578 100644 --- a/src/Yavsc.Org/Controllers/Consent/ConsentViewModel.cs +++ b/src/Yavsc.Org/Controllers/Consent/ConsentViewModel.cs @@ -1,9 +1,6 @@ // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. - -using System.Collections.Generic; - namespace IdentityServerHost.Quickstart.UI { public class ConsentViewModel : ConsentInputModel diff --git a/src/Yavsc.Org/Controllers/Contracting/CoWorkingController.cs b/src/Yavsc.Org/Controllers/Contracting/CoWorkingController.cs index 0d173df5..f719085c 100644 --- a/src/Yavsc.Org/Controllers/Contracting/CoWorkingController.cs +++ b/src/Yavsc.Org/Controllers/Contracting/CoWorkingController.cs @@ -1,7 +1,6 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Workflow; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Org/Controllers/Contracting/DoController.cs b/src/Yavsc.Org/Controllers/Contracting/DoController.cs index f0393a80..a62312c4 100644 --- a/src/Yavsc.Org/Controllers/Contracting/DoController.cs +++ b/src/Yavsc.Org/Controllers/Contracting/DoController.cs @@ -11,7 +11,6 @@ namespace Yavsc.Controllers using Yavsc.ViewModels.Workflow; using Yavsc.Services; using System.Threading.Tasks; - using Yavsc.Helpers; using Microsoft.EntityFrameworkCore; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Org/Controllers/Contracting/EstimateController.cs b/src/Yavsc.Org/Controllers/Contracting/EstimateController.cs index bbcc89fc..5dbd882b 100644 --- a/src/Yavsc.Org/Controllers/Contracting/EstimateController.cs +++ b/src/Yavsc.Org/Controllers/Contracting/EstimateController.cs @@ -2,7 +2,6 @@ using System.Net.Mime; using System.Security.Claims; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Yavsc.Helpers; namespace Yavsc.Controllers { diff --git a/src/Yavsc.Org/Controllers/Contracting/FormsController.cs b/src/Yavsc.Org/Controllers/Contracting/FormsController.cs index e7243022..423cf2f4 100644 --- a/src/Yavsc.Org/Controllers/Contracting/FormsController.cs +++ b/src/Yavsc.Org/Controllers/Contracting/FormsController.cs @@ -1,6 +1,5 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Forms; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Org/Controllers/Contracting/MusicalTendenciesController.cs b/src/Yavsc.Org/Controllers/Contracting/MusicalTendenciesController.cs index ca7996a3..ee8d40e7 100644 --- a/src/Yavsc.Org/Controllers/Contracting/MusicalTendenciesController.cs +++ b/src/Yavsc.Org/Controllers/Contracting/MusicalTendenciesController.cs @@ -4,7 +4,6 @@ namespace Yavsc.Controllers { using Models; using Models.Musical; - using Yavsc.Helpers; using Yavsc.Server.Helpers; public class MusicalTendenciesController : Controller diff --git a/src/Yavsc.Org/Controllers/Contracting/SIRENExceptionsController.cs b/src/Yavsc.Org/Controllers/Contracting/SIRENExceptionsController.cs index baa7f060..bf08484e 100644 --- a/src/Yavsc.Org/Controllers/Contracting/SIRENExceptionsController.cs +++ b/src/Yavsc.Org/Controllers/Contracting/SIRENExceptionsController.cs @@ -1,6 +1,5 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Billing; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Org/Controllers/Device/DeviceController.cs b/src/Yavsc.Org/Controllers/Device/DeviceController.cs index 2e516aa6..0a10e28f 100644 --- a/src/Yavsc.Org/Controllers/Device/DeviceController.cs +++ b/src/Yavsc.Org/Controllers/Device/DeviceController.cs @@ -2,10 +2,6 @@ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using IdentityServer8.Configuration; using IdentityServer8.Events; using IdentityServer8.Extensions; @@ -14,7 +10,6 @@ using IdentityServer8.Services; using IdentityServer8.Validation; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Yavsc.Models; using Yavsc.Models.Access; diff --git a/src/Yavsc.Org/Controllers/Diagnostics/DiagnosticsController.cs b/src/Yavsc.Org/Controllers/Diagnostics/DiagnosticsController.cs index ffdfb78d..65870f85 100644 --- a/src/Yavsc.Org/Controllers/Diagnostics/DiagnosticsController.cs +++ b/src/Yavsc.Org/Controllers/Diagnostics/DiagnosticsController.cs @@ -2,8 +2,6 @@ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. -using System.Linq; -using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Yavsc.Org/Controllers/Diagnostics/DiagnosticsViewModel.cs b/src/Yavsc.Org/Controllers/Diagnostics/DiagnosticsViewModel.cs index d88cbc5e..b50d5c48 100644 --- a/src/Yavsc.Org/Controllers/Diagnostics/DiagnosticsViewModel.cs +++ b/src/Yavsc.Org/Controllers/Diagnostics/DiagnosticsViewModel.cs @@ -5,7 +5,6 @@ using IdentityModel; using Microsoft.AspNetCore.Authentication; using Newtonsoft.Json; -using System.Collections.Generic; using System.Text; namespace Yavsc.Models diff --git a/src/Yavsc.Org/Controllers/DimissClicksApiController.cs b/src/Yavsc.Org/Controllers/DimissClicksApiController.cs index b07bc4b3..56fec223 100644 --- a/src/Yavsc.Org/Controllers/DimissClicksApiController.cs +++ b/src/Yavsc.Org/Controllers/DimissClicksApiController.cs @@ -2,7 +2,6 @@ using System.Security.Claims; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Messaging; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Org/Controllers/FileSystemController.cs b/src/Yavsc.Org/Controllers/FileSystemController.cs index 84579675..e4f18b39 100644 --- a/src/Yavsc.Org/Controllers/FileSystemController.cs +++ b/src/Yavsc.Org/Controllers/FileSystemController.cs @@ -1,6 +1,4 @@ using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; -using Yavsc.Helpers; using Yavsc.Server.Helpers; namespace Yavsc.Controllers diff --git a/src/Yavsc.Org/Controllers/GrantsController.cs b/src/Yavsc.Org/Controllers/GrantsController.cs index 225b7f5b..ad5627ed 100644 --- a/src/Yavsc.Org/Controllers/GrantsController.cs +++ b/src/Yavsc.Org/Controllers/GrantsController.cs @@ -5,9 +5,6 @@ using IdentityServer8.Services; using IdentityServer8.Stores; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using IdentityServer8.Events; using IdentityServer8.Extensions; diff --git a/src/Yavsc.Org/Controllers/Haircut/ColorsController.cs b/src/Yavsc.Org/Controllers/Haircut/ColorsController.cs index ef390f84..6beaa561 100644 --- a/src/Yavsc.Org/Controllers/Haircut/ColorsController.cs +++ b/src/Yavsc.Org/Controllers/Haircut/ColorsController.cs @@ -1,6 +1,5 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Drawing; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Org/Controllers/Haircut/HairTaintsController.cs b/src/Yavsc.Org/Controllers/Haircut/HairTaintsController.cs index a0a25246..7885720a 100644 --- a/src/Yavsc.Org/Controllers/Haircut/HairTaintsController.cs +++ b/src/Yavsc.Org/Controllers/Haircut/HairTaintsController.cs @@ -2,7 +2,6 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Haircut; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Org/Controllers/Kyc/DeclarantController.cs b/src/Yavsc.Org/Controllers/Kyc/DeclarantController.cs index 9f4933d1..491d378d 100644 --- a/src/Yavsc.Org/Controllers/Kyc/DeclarantController.cs +++ b/src/Yavsc.Org/Controllers/Kyc/DeclarantController.cs @@ -1,7 +1,6 @@ // Yavsc.Controllers.Kyc/DeclarantController.cs namespace Yavsc.Controllers.Kyc { - using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; diff --git a/src/Yavsc.Org/Controllers/Musical/InstrumentationController.cs b/src/Yavsc.Org/Controllers/Musical/InstrumentationController.cs index 536c7417..70faa88b 100644 --- a/src/Yavsc.Org/Controllers/Musical/InstrumentationController.cs +++ b/src/Yavsc.Org/Controllers/Musical/InstrumentationController.cs @@ -3,7 +3,6 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Models.Musical.Profiles; using Yavsc.Server.Helpers; diff --git a/src/Yavsc.Org/Controllers/Musical/InstrumentsController.cs b/src/Yavsc.Org/Controllers/Musical/InstrumentsController.cs index 7c0d6cb3..84c9590b 100644 --- a/src/Yavsc.Org/Controllers/Musical/InstrumentsController.cs +++ b/src/Yavsc.Org/Controllers/Musical/InstrumentsController.cs @@ -1,12 +1,9 @@ -using System.Linq; using Microsoft.AspNetCore.Mvc; namespace Yavsc.Controllers { - using System.Security.Claims; using Models; using Models.Musical; - using Yavsc.Helpers; using Yavsc.Server.Helpers; public class InstrumentsController : Controller diff --git a/src/Yavsc.Org/CustomModelBinder.cs b/src/Yavsc.Org/CustomModelBinder.cs index c12084c5..ef1454b0 100644 --- a/src/Yavsc.Org/CustomModelBinder.cs +++ b/src/Yavsc.Org/CustomModelBinder.cs @@ -1,6 +1,4 @@ -using System; using System.Globalization; -using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ModelBinding; namespace Yavsc @@ -37,7 +35,7 @@ namespace Yavsc bindingContext.Result = ModelBindingResult.Success(actualValue); } else bindingContext.Result = ModelBindingResult.Failed(); - + } } } diff --git a/src/Yavsc.Org/Helpers/Ansi2HtmlEncoder.cs b/src/Yavsc.Org/Helpers/Ansi2HtmlEncoder.cs index 61f8c51b..fb832a5d 100644 --- a/src/Yavsc.Org/Helpers/Ansi2HtmlEncoder.cs +++ b/src/Yavsc.Org/Helpers/Ansi2HtmlEncoder.cs @@ -3,9 +3,7 @@ // paul schneider 19/06/2018 15:58 20182018 6 19 // */ -using System.IO; using System.Diagnostics; -using System.Threading.Tasks; namespace Yavsc.Helpers { diff --git a/src/Yavsc.Org/Helpers/ControllerHelpers.cs b/src/Yavsc.Org/Helpers/ControllerHelpers.cs index 07937e4a..9f92c9e7 100644 --- a/src/Yavsc.Org/Helpers/ControllerHelpers.cs +++ b/src/Yavsc.Org/Helpers/ControllerHelpers.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using Yavsc.Abstract.Models.Messaging; diff --git a/src/Yavsc.Org/Helpers/ListItemHelpers.cs b/src/Yavsc.Org/Helpers/ListItemHelpers.cs index a9101622..ea81e24e 100644 --- a/src/Yavsc.Org/Helpers/ListItemHelpers.cs +++ b/src/Yavsc.Org/Helpers/ListItemHelpers.cs @@ -1,6 +1,3 @@ - -using System.Collections.Generic; -using System.Linq; using Microsoft.AspNetCore.Mvc.Rendering; using Yavsc.Models; using Yavsc.Models.Workflow; diff --git a/src/Yavsc.Org/Helpers/OAuthHelpers.cs b/src/Yavsc.Org/Helpers/OAuthHelpers.cs index efd3942b..668d720e 100644 --- a/src/Yavsc.Org/Helpers/OAuthHelpers.cs +++ b/src/Yavsc.Org/Helpers/OAuthHelpers.cs @@ -1,4 +1,3 @@ -using System; using System.Security.Cryptography; namespace Yavsc.Helpers { diff --git a/src/Yavsc.Org/Helpers/PageHelpers.cs b/src/Yavsc.Org/Helpers/PageHelpers.cs index c094495e..4258565a 100644 --- a/src/Yavsc.Org/Helpers/PageHelpers.cs +++ b/src/Yavsc.Org/Helpers/PageHelpers.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; using Microsoft.AspNetCore.Html; using Microsoft.AspNetCore.Mvc.Rendering; -using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.Extensions.Localization; namespace Yavsc.Server.Helpers diff --git a/src/Yavsc.Org/Helpers/TeXHelpers.cs b/src/Yavsc.Org/Helpers/TeXHelpers.cs index 9e7ed330..daacb741 100644 --- a/src/Yavsc.Org/Helpers/TeXHelpers.cs +++ b/src/Yavsc.Org/Helpers/TeXHelpers.cs @@ -1,7 +1,4 @@ -using System; using System.Diagnostics; -using System.IO; -using System.Linq; using Microsoft.AspNetCore.Html; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; diff --git a/src/Yavsc.Org/Migrations/20260309015232_init.cs b/src/Yavsc.Org/Migrations/20260309015232_init.cs index 894d57cb..8780da0d 100644 --- a/src/Yavsc.Org/Migrations/20260309015232_init.cs +++ b/src/Yavsc.Org/Migrations/20260309015232_init.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/src/Yavsc.Org/Migrations/20260604103455_pending.cs b/src/Yavsc.Org/Migrations/20260604103455_pending.cs index 5f9eb8b9..1f34c294 100644 --- a/src/Yavsc.Org/Migrations/20260604103455_pending.cs +++ b/src/Yavsc.Org/Migrations/20260604103455_pending.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/src/Yavsc.Org/Migrations/20260706013420_activityModerated.cs b/src/Yavsc.Org/Migrations/20260706013420_activityModerated.cs index 79e4000d..d99d3296 100644 --- a/src/Yavsc.Org/Migrations/20260706013420_activityModerated.cs +++ b/src/Yavsc.Org/Migrations/20260706013420_activityModerated.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/src/Yavsc.Org/Migrations/ConfigurationDb/20260301200548_init.cs b/src/Yavsc.Org/Migrations/ConfigurationDb/20260301200548_init.cs index a8261311..df95a443 100644 --- a/src/Yavsc.Org/Migrations/ConfigurationDb/20260301200548_init.cs +++ b/src/Yavsc.Org/Migrations/ConfigurationDb/20260301200548_init.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/src/Yavsc.Org/Migrations/PersistedGrantDb/20260301200508_init.cs b/src/Yavsc.Org/Migrations/PersistedGrantDb/20260301200508_init.cs index 0c240b20..b1297867 100644 --- a/src/Yavsc.Org/Migrations/PersistedGrantDb/20260301200508_init.cs +++ b/src/Yavsc.Org/Migrations/PersistedGrantDb/20260301200508_init.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/src/Yavsc.Org/Program.cs b/src/Yavsc.Org/Program.cs index a0ef57d3..7f8e38b1 100644 --- a/src/Yavsc.Org/Program.cs +++ b/src/Yavsc.Org/Program.cs @@ -1,5 +1,3 @@ -using Anthropic.SDK; -using Yavsc.Abstract.Interfaces; using Yavsc.Extensions; using Yavsc.Server.Helpers; @@ -18,6 +16,6 @@ namespace Yavsc app.Run(); } - + } -} \ No newline at end of file +} diff --git a/src/Yavsc.Org/Services/BlogSpotService.cs b/src/Yavsc.Org/Services/BlogSpotService.cs index 5a47e85e..7eac07a1 100644 --- a/src/Yavsc.Org/Services/BlogSpotService.cs +++ b/src/Yavsc.Org/Services/BlogSpotService.cs @@ -2,7 +2,6 @@ using System.Diagnostics; using System.Security.Claims; using Microsoft.AspNetCore.Authorization; using Microsoft.EntityFrameworkCore; -using Yavsc; using Yavsc.Blogspot; using Yavsc.Models; using Yavsc.Models.Blog; diff --git a/src/Yavsc.Org/Services/ChatHubConnexionManager.cs b/src/Yavsc.Org/Services/ChatHubConnexionManager.cs index 43365366..a9782661 100644 --- a/src/Yavsc.Org/Services/ChatHubConnexionManager.cs +++ b/src/Yavsc.Org/Services/ChatHubConnexionManager.cs @@ -1,13 +1,5 @@ - -using System; using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using System.Windows.Input; -using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Localization; -using Microsoft.Extensions.Logging; using Yavsc.Abstract.Chat; using Yavsc.Models; using Yavsc.ViewModels.Chat; diff --git a/src/Yavsc.Org/Services/YavscTemplateEngine.cs b/src/Yavsc.Org/Services/YavscTemplateEngine.cs index 9b29d853..904f203a 100644 --- a/src/Yavsc.Org/Services/YavscTemplateEngine.cs +++ b/src/Yavsc.Org/Services/YavscTemplateEngine.cs @@ -10,15 +10,9 @@ using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Emit; using Yavsc.Models; -using Yavsc.Services; -using System.Reflection; using Yavsc.Abstract.Templates; using Microsoft.AspNetCore.Identity; -using RazorEngine.Configuration; -using Yavsc.Interface; -using Microsoft.Extensions.Logging; using System.Diagnostics; -using RazorEngine.Compilation.ImpromptuInterface.Optimization; using RazorEngine.Compilation.ImpromptuInterface; namespace Yavsc.Lib @@ -30,7 +24,7 @@ namespace Yavsc.Lib "Yavsc.Templates" , "Yavsc.Models", "Yavsc.Models.Identity"}; - + readonly IStringLocalizer stringLocalizer; readonly ApplicationDbContext dbContext; @@ -144,14 +138,14 @@ namespace Yavsc.Lib var template = result.CallActLike(user); return template.GeneratedText; } - + /* result.CallActLike<> inMemoryAssembly.Seek(0, SeekOrigin.Begin); Assembly assembly = Assembly.Load(inMemoryAssembly.ToArray()); // UserOrientedTemplate userOrientedTemplate = (UserOrientedTemplate) // FIXME Activator.CreateInstance(Type.GetType(templateInfo.TemplateType)); - + foreach (var user in dbContext.ApplicationUser.Where( u => u.AllowMonthlyEmail )) @@ -160,7 +154,7 @@ namespace Yavsc.Lib userOrientedTemplate.Init(); userOrientedTemplate.User = user; */ throw new NotImplementedException(); - + } } } diff --git a/src/Yavsc.Org/ViewComponents/CalendarViewComponent.cs b/src/Yavsc.Org/ViewComponents/CalendarViewComponent.cs index ed8b7acd..9b0fd6a0 100644 --- a/src/Yavsc.Org/ViewComponents/CalendarViewComponent.cs +++ b/src/Yavsc.Org/ViewComponents/CalendarViewComponent.cs @@ -1,7 +1,4 @@ -using System; -using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; -using Yavsc.Models; using Yavsc.Services; namespace Yavsc.ViewComponents diff --git a/src/Yavsc.Org/ViewComponents/CirclesControlViewComponent.cs b/src/Yavsc.Org/ViewComponents/CirclesControlViewComponent.cs index c7af7c86..58aab3b8 100644 --- a/src/Yavsc.Org/ViewComponents/CirclesControlViewComponent.cs +++ b/src/Yavsc.Org/ViewComponents/CirclesControlViewComponent.cs @@ -1,4 +1,3 @@ -using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; diff --git a/src/Yavsc.Org/ViewComponents/CommentViewComponent.cs b/src/Yavsc.Org/ViewComponents/CommentViewComponent.cs index 62d3bb7a..6f85a953 100644 --- a/src/Yavsc.Org/ViewComponents/CommentViewComponent.cs +++ b/src/Yavsc.Org/ViewComponents/CommentViewComponent.cs @@ -1,9 +1,7 @@ -using System.Diagnostics; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Localization; using Yavsc.Models; -using Yavsc.Models.Blog; namespace Yavsc.ViewComponents { diff --git a/src/Yavsc.Org/ViewComponents/DirectoryViewComponent.cs b/src/Yavsc.Org/ViewComponents/DirectoryViewComponent.cs index af7f436b..fea78afb 100644 --- a/src/Yavsc.Org/ViewComponents/DirectoryViewComponent.cs +++ b/src/Yavsc.Org/ViewComponents/DirectoryViewComponent.cs @@ -1,7 +1,5 @@ using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; -using System.Threading.Tasks; -using Yavsc.Helpers; using Yavsc.Models; using Yavsc.Server.Helpers; using Yavsc.ViewModels.UserFiles; diff --git a/src/Yavsc.Org/ViewComponents/TaggerComponent.cs b/src/Yavsc.Org/ViewComponents/TaggerComponent.cs index 94655237..d9f26e60 100644 --- a/src/Yavsc.Org/ViewComponents/TaggerComponent.cs +++ b/src/Yavsc.Org/ViewComponents/TaggerComponent.cs @@ -1,8 +1,6 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Localization; -using Microsoft.Extensions.Logging; using Yavsc.Interfaces; -using Yavsc.Models; namespace Yavsc.ViewComponents { diff --git a/src/Yavsc.Org/ViewModels/Account/SendCodeViewModel.cs b/src/Yavsc.Org/ViewModels/Account/SendCodeViewModel.cs index a10bda89..ea4dfba5 100644 --- a/src/Yavsc.Org/ViewModels/Account/SendCodeViewModel.cs +++ b/src/Yavsc.Org/ViewModels/Account/SendCodeViewModel.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Rendering; namespace Yavsc.ViewModels.Account diff --git a/src/Yavsc.Org/ViewModels/Administration/EnrolerViewModel.cs b/src/Yavsc.Org/ViewModels/Administration/EnrolerViewModel.cs index 1963e357..471a080e 100644 --- a/src/Yavsc.Org/ViewModels/Administration/EnrolerViewModel.cs +++ b/src/Yavsc.Org/ViewModels/Administration/EnrolerViewModel.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Attributes.Validation; namespace Yavsc.ViewModels { diff --git a/src/Yavsc.Org/ViewModels/Administration/FireViewModel.cs b/src/Yavsc.Org/ViewModels/Administration/FireViewModel.cs index 52230137..53b63bad 100644 --- a/src/Yavsc.Org/ViewModels/Administration/FireViewModel.cs +++ b/src/Yavsc.Org/ViewModels/Administration/FireViewModel.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Attributes.Validation; namespace Yavsc.ViewModels { diff --git a/src/Yavsc.Org/ViewModels/Gen/PdfGenerationViewModel.cs b/src/Yavsc.Org/ViewModels/Gen/PdfGenerationViewModel.cs index cbc99b0a..fe934e3a 100644 --- a/src/Yavsc.Org/ViewModels/Gen/PdfGenerationViewModel.cs +++ b/src/Yavsc.Org/ViewModels/Gen/PdfGenerationViewModel.cs @@ -1,7 +1,5 @@ using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Html; -using Microsoft.AspNetCore.Mvc.Rendering; -using Yavsc.Attributes.Validation; namespace Yavsc.ViewModels.Gen { diff --git a/src/Yavsc.Org/ViewModels/Manage/ConfigureTwoFactorViewModel.cs b/src/Yavsc.Org/ViewModels/Manage/ConfigureTwoFactorViewModel.cs index 685d11be..57212785 100644 --- a/src/Yavsc.Org/ViewModels/Manage/ConfigureTwoFactorViewModel.cs +++ b/src/Yavsc.Org/ViewModels/Manage/ConfigureTwoFactorViewModel.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Rendering; namespace Yavsc.ViewModels.Manage diff --git a/src/Yavsc.Org/ViewModels/Manage/IndexViewModel.cs b/src/Yavsc.Org/ViewModels/Manage/IndexViewModel.cs index b54bebcc..03cc42d8 100644 --- a/src/Yavsc.Org/ViewModels/Manage/IndexViewModel.cs +++ b/src/Yavsc.Org/ViewModels/Manage/IndexViewModel.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using Microsoft.AspNetCore.Identity; namespace Yavsc.ViewModels.Manage diff --git a/src/Yavsc.Org/ViewModels/Manage/ManageLoginsViewModel.cs b/src/Yavsc.Org/ViewModels/Manage/ManageLoginsViewModel.cs index d29107c3..2b77adcd 100644 --- a/src/Yavsc.Org/ViewModels/Manage/ManageLoginsViewModel.cs +++ b/src/Yavsc.Org/ViewModels/Manage/ManageLoginsViewModel.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using Microsoft.AspNetCore.Identity; namespace Yavsc.ViewModels.Manage diff --git a/src/Yavsc.Org/ViewModels/Manage/SetUserNameViewModel.cs b/src/Yavsc.Org/ViewModels/Manage/SetUserNameViewModel.cs index 61cf0727..9cef1603 100644 --- a/src/Yavsc.Org/ViewModels/Manage/SetUserNameViewModel.cs +++ b/src/Yavsc.Org/ViewModels/Manage/SetUserNameViewModel.cs @@ -1,6 +1,5 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Attributes.Validation; namespace Yavsc.ViewModels.Manage { diff --git a/src/Yavsc.Server/Exceptions/InvalidActivityModelException.cs b/src/Yavsc.Server/Exceptions/InvalidActivityModelException.cs index 5b3d086a..c2739d7c 100644 --- a/src/Yavsc.Server/Exceptions/InvalidActivityModelException.cs +++ b/src/Yavsc.Server/Exceptions/InvalidActivityModelException.cs @@ -1,4 +1,3 @@ -using System; namespace Yavsc.Exceptions { public class InvalidWorkflowModelException : Exception diff --git a/src/Yavsc.Server/Exceptions/InvalidPathException.cs b/src/Yavsc.Server/Exceptions/InvalidPathException.cs index d093d9ab..ea64128c 100644 --- a/src/Yavsc.Server/Exceptions/InvalidPathException.cs +++ b/src/Yavsc.Server/Exceptions/InvalidPathException.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc.Exceptions { public class InvalidPathException: Exception diff --git a/src/Yavsc.Server/Helpers/CompanyInfoHelpers.cs b/src/Yavsc.Server/Helpers/CompanyInfoHelpers.cs index 01a35a75..2d007b4a 100644 --- a/src/Yavsc.Server/Helpers/CompanyInfoHelpers.cs +++ b/src/Yavsc.Server/Helpers/CompanyInfoHelpers.cs @@ -1,5 +1,3 @@ -using System.Net.Http; -using System.Threading.Tasks; using Newtonsoft.Json.Linq; namespace Yavsc.Helpers diff --git a/src/Yavsc.Server/Helpers/EstimateSignatureFileHelper.cs b/src/Yavsc.Server/Helpers/EstimateSignatureFileHelper.cs index 122b382c..e2d40266 100644 --- a/src/Yavsc.Server/Helpers/EstimateSignatureFileHelper.cs +++ b/src/Yavsc.Server/Helpers/EstimateSignatureFileHelper.cs @@ -1,12 +1,7 @@ -using System; -using System.IO; using System.Security.Claims; using System.Text; using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; using Microsoft.AspNetCore.Http; -using Yavsc.Models; using Yavsc.Models.Billing; using Yavsc.Server.Models.FileSystem; namespace Yavsc.Server.Helpers; diff --git a/src/Yavsc.Server/Helpers/FileSystemHelpers.cs b/src/Yavsc.Server/Helpers/FileSystemHelpers.cs index f53ce0e8..91202727 100644 --- a/src/Yavsc.Server/Helpers/FileSystemHelpers.cs +++ b/src/Yavsc.Server/Helpers/FileSystemHelpers.cs @@ -4,12 +4,10 @@ using System.Security.Claims; using Microsoft.AspNetCore.Html; using Microsoft.Extensions.FileProviders; using Yavsc.Models; -using Yavsc.Models.FileSystem; using Yavsc.Models.Streaming; using Yavsc.ViewModels; using Microsoft.AspNetCore.Http; using Yavsc.Exceptions; -using Yavsc.Helpers; using Yavsc.Abstract.Helpers; using ImageMagick; using Yavsc.Server.Models.FileSystem; diff --git a/src/Yavsc.Server/Helpers/PayPalHelpers.cs b/src/Yavsc.Server/Helpers/PayPalHelpers.cs index abd70849..9d4074d4 100644 --- a/src/Yavsc.Server/Helpers/PayPalHelpers.cs +++ b/src/Yavsc.Server/Helpers/PayPalHelpers.cs @@ -1,15 +1,11 @@ -using System.Collections.Generic; - using Microsoft.Extensions.Logging; using Yavsc.Models.Billing; using Microsoft.AspNetCore.Http; -using System.Threading.Tasks; using Newtonsoft.Json; using PayPal.PayPalAPIInterfaceService.Model; using PayPal.PayPalAPIInterfaceService; using Yavsc.ViewModels.PayPal; using Yavsc.Models; -using System.Linq; using Yavsc.Models.Payment; using Microsoft.EntityFrameworkCore; diff --git a/src/Yavsc.Server/Helpers/RequestHelper.cs b/src/Yavsc.Server/Helpers/RequestHelper.cs index 9edbbbd8..1bdde9fe 100644 --- a/src/Yavsc.Server/Helpers/RequestHelper.cs +++ b/src/Yavsc.Server/Helpers/RequestHelper.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; -using System.IO; using System.Net; -using System.Net.Http; using System.Net.Http.Headers; -using System.Threading.Tasks; using Yavsc.Server.Model; namespace Yavsc.Server.Helpers diff --git a/src/Yavsc.Server/Helpers/ServiceExtensions.cs b/src/Yavsc.Server/Helpers/ServiceExtensions.cs index 0ac1f135..2c421025 100644 --- a/src/Yavsc.Server/Helpers/ServiceExtensions.cs +++ b/src/Yavsc.Server/Helpers/ServiceExtensions.cs @@ -1,8 +1,6 @@ using Microsoft.AspNetCore.Authentication; -using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; using Microsoft.IdentityModel.Tokens; namespace Yavsc.Server.Helpers; diff --git a/src/Yavsc.Server/Helpers/SimpleJsonPostMethod.cs b/src/Yavsc.Server/Helpers/SimpleJsonPostMethod.cs index 7de9d358..83c8bca7 100644 --- a/src/Yavsc.Server/Helpers/SimpleJsonPostMethod.cs +++ b/src/Yavsc.Server/Helpers/SimpleJsonPostMethod.cs @@ -19,10 +19,7 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . using System.Net; -using System.IO; -using System.Threading.Tasks; using Newtonsoft.Json; -using System; namespace Yavsc.Server.Helpers { @@ -76,7 +73,7 @@ namespace Yavsc.Server.Helpers } return ans; } - + } } diff --git a/src/Yavsc.Server/Interfaces/IConnexionManager.cs b/src/Yavsc.Server/Interfaces/IConnexionManager.cs index 1283b500..46374d40 100644 --- a/src/Yavsc.Server/Interfaces/IConnexionManager.cs +++ b/src/Yavsc.Server/Interfaces/IConnexionManager.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using Yavsc.ViewModels.Chat; namespace Yavsc.Services diff --git a/src/Yavsc.Server/Interfaces/IDiskUsageTracker.cs b/src/Yavsc.Server/Interfaces/IDiskUsageTracker.cs index 6066e94c..15a2fe48 100644 --- a/src/Yavsc.Server/Interfaces/IDiskUsageTracker.cs +++ b/src/Yavsc.Server/Interfaces/IDiskUsageTracker.cs @@ -1,6 +1,3 @@ - -using System; - namespace Yavsc.Services { diff --git a/src/Yavsc.Server/Interfaces/IFreeDateSet.cs b/src/Yavsc.Server/Interfaces/IFreeDateSet.cs index 640248d3..4e42e3c3 100644 --- a/src/Yavsc.Server/Interfaces/IFreeDateSet.cs +++ b/src/Yavsc.Server/Interfaces/IFreeDateSet.cs @@ -17,8 +17,6 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -using System; -using System.Collections.Generic; using Yavsc.Server.Models.Calendar; namespace Yavsc.Models.Calendar diff --git a/src/Yavsc.Server/Interfaces/ILiveProcessor.cs b/src/Yavsc.Server/Interfaces/ILiveProcessor.cs index d2d7f21e..97636cd5 100644 --- a/src/Yavsc.Server/Interfaces/ILiveProcessor.cs +++ b/src/Yavsc.Server/Interfaces/ILiveProcessor.cs @@ -1,5 +1,4 @@ using System.Collections.Concurrent; -using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Yavsc.Models; using Yavsc.ViewModels.Streaming; diff --git a/src/Yavsc.Server/Interfaces/ISmsSender.cs b/src/Yavsc.Server/Interfaces/ISmsSender.cs index 6f5ebf18..2f3817a4 100644 --- a/src/Yavsc.Server/Interfaces/ISmsSender.cs +++ b/src/Yavsc.Server/Interfaces/ISmsSender.cs @@ -1,6 +1,3 @@ - -using System.Threading.Tasks; - namespace Yavsc.Services { public interface ISmsSender diff --git a/src/Yavsc.Server/Interfaces/ISmtpClient.cs b/src/Yavsc.Server/Interfaces/ISmtpClient.cs index 6692cdba..57b5cdcf 100644 --- a/src/Yavsc.Server/Interfaces/ISmtpClient.cs +++ b/src/Yavsc.Server/Interfaces/ISmtpClient.cs @@ -1,5 +1,3 @@ -using System.Threading; -using System.Threading.Tasks; using MimeKit; namespace Yavsc.Interfaces diff --git a/src/Yavsc.Server/Interfaces/IYavscMessageSender.cs b/src/Yavsc.Server/Interfaces/IYavscMessageSender.cs index 9fcc4449..9d351ffd 100644 --- a/src/Yavsc.Server/Interfaces/IYavscMessageSender.cs +++ b/src/Yavsc.Server/Interfaces/IYavscMessageSender.cs @@ -1,7 +1,4 @@ - -using System.Collections.Generic; -using System.Threading.Tasks; -using Yavsc.Interfaces.Workflow; +using Yavsc.Interfaces.Workflow; using Yavsc.Models.Google.Messaging; using Yavsc.Models.Haircut; using Yavsc.Models.Messaging; @@ -11,18 +8,18 @@ namespace Yavsc.Services public interface IYavscMessageSender { Task NotifyBookQueryAsync( - IEnumerable connectionIds, + IEnumerable connectionIds, RdvQueryEvent ev); Task NotifyEstimateAsync( - IEnumerable connectionIds, + IEnumerable connectionIds, EstimationEvent ev); Task NotifyHairCutQueryAsync( - IEnumerable connectionIds, + IEnumerable connectionIds, HairCutQueryEvent ev); Task NotifyAsync( - IEnumerable connectionIds, + IEnumerable connectionIds, IEvent yaev); } } diff --git a/src/Yavsc.Server/Models/Access/Ban.cs b/src/Yavsc.Server/Models/Access/Ban.cs index 5b2d02a3..92198aab 100644 --- a/src/Yavsc.Server/Models/Access/Ban.cs +++ b/src/Yavsc.Server/Models/Access/Ban.cs @@ -1,4 +1,3 @@ -using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; diff --git a/src/Yavsc.Server/Models/Access/CircleAuthorizationToBlogPost.cs b/src/Yavsc.Server/Models/Access/CircleAuthorizationToBlogPost.cs index 7976395b..d3f79844 100644 --- a/src/Yavsc.Server/Models/Access/CircleAuthorizationToBlogPost.cs +++ b/src/Yavsc.Server/Models/Access/CircleAuthorizationToBlogPost.cs @@ -4,7 +4,6 @@ namespace Yavsc.Models.Access using Models.Relationship; using Newtonsoft.Json; using Blog; - using Yavsc.Abstract.Identity.Security; using Yavsc.Abstract.BlogSpot; public class CircleAuthorizationToBlogPost : PostAccessControlRulePayload diff --git a/src/Yavsc.Server/Models/Access/ConsentInputModel.cs b/src/Yavsc.Server/Models/Access/ConsentInputModel.cs index b5015bdd..cf20824a 100644 --- a/src/Yavsc.Server/Models/Access/ConsentInputModel.cs +++ b/src/Yavsc.Server/Models/Access/ConsentInputModel.cs @@ -1,9 +1,6 @@ // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. - -using System.Collections.Generic; - namespace Yavsc.Models.Access { public class ConsentInputModel diff --git a/src/Yavsc.Server/Models/Access/ConsentViewModel.cs b/src/Yavsc.Server/Models/Access/ConsentViewModel.cs index f94204ff..740c6881 100644 --- a/src/Yavsc.Server/Models/Access/ConsentViewModel.cs +++ b/src/Yavsc.Server/Models/Access/ConsentViewModel.cs @@ -1,9 +1,6 @@ // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. - -using System.Collections.Generic; - namespace Yavsc.Models.Access { public class ConsentViewModel : ConsentInputModel diff --git a/src/Yavsc.Server/Models/Access/RuleSet.cs b/src/Yavsc.Server/Models/Access/RuleSet.cs index c8b3068d..c4ca55d1 100644 --- a/src/Yavsc.Server/Models/Access/RuleSet.cs +++ b/src/Yavsc.Server/Models/Access/RuleSet.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace Yavsc.Models.Access { public abstract class RuleSet :List> { diff --git a/src/Yavsc.Server/Models/ApplicationDbContext.cs b/src/Yavsc.Server/Models/ApplicationDbContext.cs index 5ebf931f..0ddab58e 100644 --- a/src/Yavsc.Server/Models/ApplicationDbContext.cs +++ b/src/Yavsc.Server/Models/ApplicationDbContext.cs @@ -8,8 +8,6 @@ namespace Yavsc.Models using Abstract.Identity; using Abstract.Models.Messaging; using Access; - using Attributes; - using Auth; using Bank; using Billing; using Blog; @@ -22,7 +20,6 @@ namespace Yavsc.Models using IT.Fixing; using Market; using Messaging; - using Microsoft.AspNetCore.Http; using Musical; using Musical.Profiles; using Payment; diff --git a/src/Yavsc.Server/Models/Auth/DeviceDeclaration.cs b/src/Yavsc.Server/Models/Auth/DeviceDeclaration.cs index a6190c96..1db1d89e 100644 --- a/src/Yavsc.Server/Models/Auth/DeviceDeclaration.cs +++ b/src/Yavsc.Server/Models/Auth/DeviceDeclaration.cs @@ -1,5 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; @@ -21,13 +20,13 @@ namespace Yavsc.Models.Identity /// /// Latest Activity Update - /// - /// Let's says, - /// the latest time this device downloaded functional info from server + /// + /// Let's says, + /// the latest time this device downloaded functional info from server /// activity list, let's say, promoted ones, those thar are at index, and - /// all others, that are not listed as unsupported ones (not any more, after + /// all others, that are not listed as unsupported ones (not any more, after /// has been annonced as obsolete a decent laps of time). - /// + /// /// In order to say, is any activity has changed here. /// /// diff --git a/src/Yavsc.Server/Models/Auth/OAuth2Tokens.cs b/src/Yavsc.Server/Models/Auth/OAuth2Tokens.cs index 89963ed4..88397a88 100644 --- a/src/Yavsc.Server/Models/Auth/OAuth2Tokens.cs +++ b/src/Yavsc.Server/Models/Auth/OAuth2Tokens.cs @@ -1,4 +1,3 @@ -using System; using System.ComponentModel.DataAnnotations; namespace Yavsc.Models.Auth diff --git a/src/Yavsc.Server/Models/Auth/RefreshToken.cs b/src/Yavsc.Server/Models/Auth/RefreshToken.cs index 89642295..0234291c 100644 --- a/src/Yavsc.Server/Models/Auth/RefreshToken.cs +++ b/src/Yavsc.Server/Models/Auth/RefreshToken.cs @@ -1,4 +1,3 @@ -using System; using System.ComponentModel.DataAnnotations; namespace Yavsc.Models.Auth diff --git a/src/Yavsc.Server/Models/Bank/BalanceImpact.cs b/src/Yavsc.Server/Models/Bank/BalanceImpact.cs index c5aa654b..3a248844 100644 --- a/src/Yavsc.Server/Models/Bank/BalanceImpact.cs +++ b/src/Yavsc.Server/Models/Bank/BalanceImpact.cs @@ -1,5 +1,3 @@ - -using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; diff --git a/src/Yavsc.Server/Models/Billing/Estimate.cs b/src/Yavsc.Server/Models/Billing/Estimate.cs index 817d22ae..e6495a14 100644 --- a/src/Yavsc.Server/Models/Billing/Estimate.cs +++ b/src/Yavsc.Server/Models/Billing/Estimate.cs @@ -1,9 +1,5 @@ - -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; namespace Yavsc.Models.Billing { diff --git a/src/Yavsc.Server/Models/Billing/EstimateTemplate.cs b/src/Yavsc.Server/Models/Billing/EstimateTemplate.cs index d191f9d7..49af6b0e 100644 --- a/src/Yavsc.Server/Models/Billing/EstimateTemplate.cs +++ b/src/Yavsc.Server/Models/Billing/EstimateTemplate.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; diff --git a/src/Yavsc.Server/Models/Billing/NominativeServiceCommand.cs b/src/Yavsc.Server/Models/Billing/NominativeServiceCommand.cs index b2af663b..ad651d36 100644 --- a/src/Yavsc.Server/Models/Billing/NominativeServiceCommand.cs +++ b/src/Yavsc.Server/Models/Billing/NominativeServiceCommand.cs @@ -1,5 +1,3 @@ - -using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; diff --git a/src/Yavsc.Server/Models/Billing/Signature.cs b/src/Yavsc.Server/Models/Billing/Signature.cs index 2e26ae9c..10da97f1 100644 --- a/src/Yavsc.Server/Models/Billing/Signature.cs +++ b/src/Yavsc.Server/Models/Billing/Signature.cs @@ -1,8 +1,6 @@ -using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; -using Yavsc.Models.Relationship; namespace Yavsc.Models.Billing; diff --git a/src/Yavsc.Server/Models/Billing/histoestim.cs b/src/Yavsc.Server/Models/Billing/histoestim.cs index 3821bf5f..1f9b99f1 100644 --- a/src/Yavsc.Server/Models/Billing/histoestim.cs +++ b/src/Yavsc.Server/Models/Billing/histoestim.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc.Models.Billing { public partial class histoestim diff --git a/src/Yavsc.Server/Models/Blog/BlogAttachedFile.cs b/src/Yavsc.Server/Models/Blog/BlogAttachedFile.cs index 8f556d5c..a857665d 100644 --- a/src/Yavsc.Server/Models/Blog/BlogAttachedFile.cs +++ b/src/Yavsc.Server/Models/Blog/BlogAttachedFile.cs @@ -1,6 +1,5 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using Org.BouncyCastle.Crypto.Modes; using Microsoft.EntityFrameworkCore; namespace Yavsc.Models.Blog diff --git a/src/Yavsc.Server/Models/Blog/Comment.cs b/src/Yavsc.Server/Models/Blog/Comment.cs index d1d09c29..acb5e003 100644 --- a/src/Yavsc.Server/Models/Blog/Comment.cs +++ b/src/Yavsc.Server/Models/Blog/Comment.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; diff --git a/src/Yavsc.Server/Models/Calendar/Availabliity.cs b/src/Yavsc.Server/Models/Calendar/Availabliity.cs index e39dd476..02bdbb28 100644 --- a/src/Yavsc.Server/Models/Calendar/Availabliity.cs +++ b/src/Yavsc.Server/Models/Calendar/Availabliity.cs @@ -1,5 +1,3 @@ -using Yavsc.Models.Calendar; - namespace Yavsc.Server.Models.Calendar { public class Availability : List diff --git a/src/Yavsc.Server/Models/Calendar/Period.cs b/src/Yavsc.Server/Models/Calendar/Period.cs index 50303463..dfc285cf 100644 --- a/src/Yavsc.Server/Models/Calendar/Period.cs +++ b/src/Yavsc.Server/Models/Calendar/Period.cs @@ -19,7 +19,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -using System; using System.ComponentModel.DataAnnotations; namespace Yavsc.Server.Models.Calendar diff --git a/src/Yavsc.Server/Models/Chat/ChatRoom.cs b/src/Yavsc.Server/Models/Chat/ChatRoom.cs index e03421c0..1b7f1c58 100644 --- a/src/Yavsc.Server/Models/Chat/ChatRoom.cs +++ b/src/Yavsc.Server/Models/Chat/ChatRoom.cs @@ -1,6 +1,3 @@ - -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; diff --git a/src/Yavsc.Server/Models/Cratie/Option.cs b/src/Yavsc.Server/Models/Cratie/Option.cs index ed157717..d3a3caaf 100644 --- a/src/Yavsc.Server/Models/Cratie/Option.cs +++ b/src/Yavsc.Server/Models/Cratie/Option.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc.Models.Cratie { public class Option: ITrackedEntity diff --git a/src/Yavsc.Server/Models/Cratie/Scrutin.cs b/src/Yavsc.Server/Models/Cratie/Scrutin.cs index 753cec34..a4ca11dd 100644 --- a/src/Yavsc.Server/Models/Cratie/Scrutin.cs +++ b/src/Yavsc.Server/Models/Cratie/Scrutin.cs @@ -1,4 +1,3 @@ -using System; using System.ComponentModel.DataAnnotations; namespace Yavsc.Models.Cratie diff --git a/src/Yavsc.Server/Models/EMailing/MailingTemplate.cs b/src/Yavsc.Server/Models/EMailing/MailingTemplate.cs index 71e773d8..3626388b 100644 --- a/src/Yavsc.Server/Models/EMailing/MailingTemplate.cs +++ b/src/Yavsc.Server/Models/EMailing/MailingTemplate.cs @@ -1,10 +1,6 @@ -using System; using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; using RazorEngine.Templating; using Yavsc.Attributes.Validation; -using Yavsc.Models; -using Yavsc.Models.Calendar; using Yavsc.Server.Models.Calendar; namespace Yavsc.Server.Models.EMailing diff --git a/src/Yavsc.Server/Models/Edition/IDocument.cs b/src/Yavsc.Server/Models/Edition/IDocument.cs index 396e4eba..28307d42 100644 --- a/src/Yavsc.Server/Models/Edition/IDocument.cs +++ b/src/Yavsc.Server/Models/Edition/IDocument.cs @@ -1,4 +1,3 @@ - // // IDocument.cs // @@ -20,8 +19,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -using System; - namespace Yavsc.Models { public class Parameter { diff --git a/src/Yavsc.Server/Models/FormFile.cs b/src/Yavsc.Server/Models/FormFile.cs index 9bac0ae4..bda84217 100644 --- a/src/Yavsc.Server/Models/FormFile.cs +++ b/src/Yavsc.Server/Models/FormFile.cs @@ -1,5 +1,3 @@ - -using System.IO; using System.Net.Mime; namespace Yavsc.Server.Model diff --git a/src/Yavsc.Server/Models/HairCut/BrusherProfile.cs b/src/Yavsc.Server/Models/HairCut/BrusherProfile.cs index ace5a12b..ba47bfdc 100644 --- a/src/Yavsc.Server/Models/HairCut/BrusherProfile.cs +++ b/src/Yavsc.Server/Models/HairCut/BrusherProfile.cs @@ -23,7 +23,6 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; -using System.Collections.Generic; namespace Yavsc.Models.Haircut { diff --git a/src/Yavsc.Server/Models/HairCut/HairCutPaymentEvent.cs b/src/Yavsc.Server/Models/HairCut/HairCutPaymentEvent.cs index e76bbb37..35324928 100644 --- a/src/Yavsc.Server/Models/HairCut/HairCutPaymentEvent.cs +++ b/src/Yavsc.Server/Models/HairCut/HairCutPaymentEvent.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.Localization; -using System.Linq; using Yavsc.Interfaces.Workflow; using Yavsc.Models.Haircut; diff --git a/src/Yavsc.Server/Models/HairCut/HairCutQuery.cs b/src/Yavsc.Server/Models/HairCut/HairCutQuery.cs index 5aab5258..0960db6d 100644 --- a/src/Yavsc.Server/Models/HairCut/HairCutQuery.cs +++ b/src/Yavsc.Server/Models/HairCut/HairCutQuery.cs @@ -1,6 +1,3 @@ - -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Yavsc.Models.Billing; @@ -8,7 +5,6 @@ using Yavsc.Models.Relationship; using Yavsc.Billing; using System.Globalization; using Yavsc.Helpers; -using System.Linq; using Microsoft.Extensions.Localization; using Yavsc.ViewModels.PayPal; using Yavsc.Models.HairCut; diff --git a/src/Yavsc.Server/Models/HairCut/HairMultiCutQuery.cs b/src/Yavsc.Server/Models/HairCut/HairMultiCutQuery.cs index b68ed38b..21ae437c 100644 --- a/src/Yavsc.Server/Models/HairCut/HairMultiCutQuery.cs +++ b/src/Yavsc.Server/Models/HairCut/HairMultiCutQuery.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Yavsc.Models.Billing; diff --git a/src/Yavsc.Server/Models/HairCut/HairPrestation.cs b/src/Yavsc.Server/Models/HairCut/HairPrestation.cs index ce560d01..a14053b3 100644 --- a/src/Yavsc.Server/Models/HairCut/HairPrestation.cs +++ b/src/Yavsc.Server/Models/HairCut/HairPrestation.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; diff --git a/src/Yavsc.Server/Models/HairCut/Haircut.cs b/src/Yavsc.Server/Models/HairCut/Haircut.cs index dc7549a3..77cb0eb9 100644 --- a/src/Yavsc.Server/Models/HairCut/Haircut.cs +++ b/src/Yavsc.Server/Models/HairCut/Haircut.cs @@ -1,4 +1,3 @@ -using System; namespace Yavsc.Haircut { public interface IProviderInfo diff --git a/src/Yavsc.Server/Models/HairCut/Views/HaircutQueryInfo.cs b/src/Yavsc.Server/Models/HairCut/Views/HaircutQueryInfo.cs index d86da930..c9213862 100644 --- a/src/Yavsc.Server/Models/HairCut/Views/HaircutQueryInfo.cs +++ b/src/Yavsc.Server/Models/HairCut/Views/HaircutQueryInfo.cs @@ -20,7 +20,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -using System; using System.ComponentModel.DataAnnotations; using Yavsc.Abstract.Identity; using Yavsc.Models.Relationship; diff --git a/src/Yavsc.Server/Models/IT/Project.cs b/src/Yavsc.Server/Models/IT/Project.cs index 1a7fa4e4..1fce99de 100644 --- a/src/Yavsc.Server/Models/IT/Project.cs +++ b/src/Yavsc.Server/Models/IT/Project.cs @@ -1,9 +1,6 @@ -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; using Yavsc.Abstract.IT; -using Yavsc.Attributes.Validation; using Yavsc.Billing; using Yavsc.Models.Billing; using Yavsc.Server.Models.IT.SourceCode; diff --git a/src/Yavsc.Server/Models/IT/ProjectBuildConfiguration.cs b/src/Yavsc.Server/Models/IT/ProjectBuildConfiguration.cs index e0ea867e..e2f96bed 100644 --- a/src/Yavsc.Server/Models/IT/ProjectBuildConfiguration.cs +++ b/src/Yavsc.Server/Models/IT/ProjectBuildConfiguration.cs @@ -1,6 +1,5 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using Yavsc.Attributes.Validation; namespace Yavsc.Server.Models.IT { diff --git a/src/Yavsc.Server/Models/IT/SourceCode/Batch.cs b/src/Yavsc.Server/Models/IT/SourceCode/Batch.cs index 2405c6e1..8a0d4c6b 100644 --- a/src/Yavsc.Server/Models/IT/SourceCode/Batch.cs +++ b/src/Yavsc.Server/Models/IT/SourceCode/Batch.cs @@ -1,4 +1,3 @@ -using System; using Yavsc.Abstract.Interfaces; namespace Yavsc.Server.Models.IT.SourceCode diff --git a/src/Yavsc.Server/Models/IT/SourceCode/GitClone.cs b/src/Yavsc.Server/Models/IT/SourceCode/GitClone.cs index 5c926f3b..826e5de3 100644 --- a/src/Yavsc.Server/Models/IT/SourceCode/GitClone.cs +++ b/src/Yavsc.Server/Models/IT/SourceCode/GitClone.cs @@ -3,8 +3,6 @@ // paul 21/06/2018 11:27 20182018 6 21 // */ using System.Diagnostics; -using System.IO; -using System; namespace Yavsc.Server.Models.IT.SourceCode { @@ -40,7 +38,7 @@ namespace Yavsc.Server.Models.IT.SourceCode using (var writer = new StreamWriter(stream)) { var process = Process.Start(cloneStart); - // TODO publish the starting log url ... + // TODO publish the starting log url ... while (!process.HasExited) { if (process.StandardOutput.Peek() > -1) diff --git a/src/Yavsc.Server/Models/IT/SourceCode/ProjectBuild.cs b/src/Yavsc.Server/Models/IT/SourceCode/ProjectBuild.cs index 3c636e0f..f65b17b5 100644 --- a/src/Yavsc.Server/Models/IT/SourceCode/ProjectBuild.cs +++ b/src/Yavsc.Server/Models/IT/SourceCode/ProjectBuild.cs @@ -1,6 +1,4 @@ -using System; using System.Diagnostics; -using System.IO; namespace Yavsc.Server.Models.IT.SourceCode { diff --git a/src/Yavsc.Server/Models/IT/SourceCode/SingleCmdProjectBatch.cs b/src/Yavsc.Server/Models/IT/SourceCode/SingleCmdProjectBatch.cs index 73a7f075..2ce16256 100644 --- a/src/Yavsc.Server/Models/IT/SourceCode/SingleCmdProjectBatch.cs +++ b/src/Yavsc.Server/Models/IT/SourceCode/SingleCmdProjectBatch.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.IO; namespace Yavsc.Server.Models.IT.SourceCode { diff --git a/src/Yavsc.Server/Models/IdentityUserLogin.cs b/src/Yavsc.Server/Models/IdentityUserLogin.cs index 49afeeea..bfbd4e89 100644 --- a/src/Yavsc.Server/Models/IdentityUserLogin.cs +++ b/src/Yavsc.Server/Models/IdentityUserLogin.cs @@ -1,6 +1,5 @@ namespace Yavsc.Models.Auth { - using Microsoft.AspNetCore.Identity; using System.ComponentModel.DataAnnotations.Schema; public class YaIdentityUserLogin diff --git a/src/Yavsc.Server/Models/Kyc/TrustToken.cs b/src/Yavsc.Server/Models/Kyc/TrustToken.cs index 47084cb0..2e240bae 100644 --- a/src/Yavsc.Server/Models/Kyc/TrustToken.cs +++ b/src/Yavsc.Server/Models/Kyc/TrustToken.cs @@ -3,7 +3,6 @@ namespace Yavsc.Models.Kyc { using System; using System.ComponentModel.DataAnnotations; - using System.ComponentModel.DataAnnotations.Schema; /// /// Token opaque représentant une entité sans l'identifier. diff --git a/src/Yavsc.Server/Models/Market/Catalog.cs b/src/Yavsc.Server/Models/Market/Catalog.cs index b58a1c1c..aee16e3f 100644 --- a/src/Yavsc.Server/Models/Market/Catalog.cs +++ b/src/Yavsc.Server/Models/Market/Catalog.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace Yavsc.Models.Market { public class Catalog { diff --git a/src/Yavsc.Server/Models/Market/Money.cs b/src/Yavsc.Server/Models/Market/Money.cs index fd6a5546..a4b599d3 100644 --- a/src/Yavsc.Server/Models/Market/Money.cs +++ b/src/Yavsc.Server/Models/Market/Money.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc.Models.Market { /// /// Not yet used! diff --git a/src/Yavsc.Server/Models/Market/Service.cs b/src/Yavsc.Server/Models/Market/Service.cs index 8177bd59..34c996e5 100644 --- a/src/Yavsc.Server/Models/Market/Service.cs +++ b/src/Yavsc.Server/Models/Market/Service.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace Yavsc.Models.Market { diff --git a/src/Yavsc.Server/Models/Messaging/CircleEvent.cs b/src/Yavsc.Server/Models/Messaging/CircleEvent.cs index 369e3a54..b1eb782b 100644 --- a/src/Yavsc.Server/Models/Messaging/CircleEvent.cs +++ b/src/Yavsc.Server/Models/Messaging/CircleEvent.cs @@ -19,13 +19,11 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Yavsc.Models.Messaging { using Models.Relationship; - using Yavsc.Attributes.Validation; /// /// Event pub. diff --git a/src/Yavsc.Server/Models/Messaging/DimissClicked.cs b/src/Yavsc.Server/Models/Messaging/DimissClicked.cs index 3ac16646..88295fd8 100644 --- a/src/Yavsc.Server/Models/Messaging/DimissClicked.cs +++ b/src/Yavsc.Server/Models/Messaging/DimissClicked.cs @@ -1,7 +1,6 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Yavsc.Abstract.Models.Messaging; -using Yavsc.Attributes.Validation; namespace Yavsc.Models.Messaging { diff --git a/src/Yavsc.Server/Models/Messaging/LiveFlow.cs b/src/Yavsc.Server/Models/Messaging/LiveFlow.cs index b121877b..7e3914c0 100644 --- a/src/Yavsc.Server/Models/Messaging/LiveFlow.cs +++ b/src/Yavsc.Server/Models/Messaging/LiveFlow.cs @@ -1,4 +1,3 @@ -using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Yavsc.Abstract.Streaming; diff --git a/src/Yavsc.Server/Models/Musical/Instrument.cs b/src/Yavsc.Server/Models/Musical/Instrument.cs index 0b81fed0..105d2442 100644 --- a/src/Yavsc.Server/Models/Musical/Instrument.cs +++ b/src/Yavsc.Server/Models/Musical/Instrument.cs @@ -1,6 +1,5 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using Yavsc.Attributes.Validation; namespace Yavsc.Models.Musical { diff --git a/src/Yavsc.Server/Models/Musical/InstrumentRating.cs b/src/Yavsc.Server/Models/Musical/InstrumentRating.cs index 7578a427..150d2967 100644 --- a/src/Yavsc.Server/Models/Musical/InstrumentRating.cs +++ b/src/Yavsc.Server/Models/Musical/InstrumentRating.cs @@ -1,6 +1,5 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using Yavsc.Attributes.Validation; using Yavsc.Models.Workflow; namespace Yavsc.Models.Musical diff --git a/src/Yavsc.Server/Models/Musical/MusicalPreference.cs b/src/Yavsc.Server/Models/Musical/MusicalPreference.cs index dc66667d..009e1167 100644 --- a/src/Yavsc.Server/Models/Musical/MusicalPreference.cs +++ b/src/Yavsc.Server/Models/Musical/MusicalPreference.cs @@ -1,7 +1,6 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using Yavsc.Attributes.Validation; namespace Yavsc.Models.Musical { diff --git a/src/Yavsc.Server/Models/Musical/MusicalTendency.cs b/src/Yavsc.Server/Models/Musical/MusicalTendency.cs index 0804bd1e..9b5743b7 100644 --- a/src/Yavsc.Server/Models/Musical/MusicalTendency.cs +++ b/src/Yavsc.Server/Models/Musical/MusicalTendency.cs @@ -1,6 +1,5 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using Yavsc.Attributes.Validation; namespace Yavsc.Models.Musical { diff --git a/src/Yavsc.Server/Models/Musical/Profiles/DjPerformerProfile.cs b/src/Yavsc.Server/Models/Musical/Profiles/DjPerformerProfile.cs index 863e8263..2669e0d9 100644 --- a/src/Yavsc.Server/Models/Musical/Profiles/DjPerformerProfile.cs +++ b/src/Yavsc.Server/Models/Musical/Profiles/DjPerformerProfile.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using Yavsc.Models.Workflow; diff --git a/src/Yavsc.Server/Models/Musical/Profiles/DjSettings.cs b/src/Yavsc.Server/Models/Musical/Profiles/DjSettings.cs index d74a0284..6d7cc372 100644 --- a/src/Yavsc.Server/Models/Musical/Profiles/DjSettings.cs +++ b/src/Yavsc.Server/Models/Musical/Profiles/DjSettings.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Yavsc.Models.Musical.Profiles diff --git a/src/Yavsc.Server/Models/Musical/Profiles/FormationPerformerProfile.cs b/src/Yavsc.Server/Models/Musical/Profiles/FormationPerformerProfile.cs index 410864e4..496bd40f 100644 --- a/src/Yavsc.Server/Models/Musical/Profiles/FormationPerformerProfile.cs +++ b/src/Yavsc.Server/Models/Musical/Profiles/FormationPerformerProfile.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using Yavsc.Models.Workflow; diff --git a/src/Yavsc.Server/Models/Musical/Profiles/MusicLoverSettings.cs b/src/Yavsc.Server/Models/Musical/Profiles/MusicLoverSettings.cs index fae39a40..40c87347 100644 --- a/src/Yavsc.Server/Models/Musical/Profiles/MusicLoverSettings.cs +++ b/src/Yavsc.Server/Models/Musical/Profiles/MusicLoverSettings.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Yavsc.Models.Musical.Profiles diff --git a/src/Yavsc.Server/Models/Musical/Profiles/MusicianPerformerProfile.cs b/src/Yavsc.Server/Models/Musical/Profiles/MusicianPerformerProfile.cs index 62719963..83ed28bb 100644 --- a/src/Yavsc.Server/Models/Musical/Profiles/MusicianPerformerProfile.cs +++ b/src/Yavsc.Server/Models/Musical/Profiles/MusicianPerformerProfile.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using Yavsc.Models.Workflow; diff --git a/src/Yavsc.Server/Models/Musical/Profiles/StarPerformerProfile.cs b/src/Yavsc.Server/Models/Musical/Profiles/StarPerformerProfile.cs index 43b976b4..eff45874 100644 --- a/src/Yavsc.Server/Models/Musical/Profiles/StarPerformerProfile.cs +++ b/src/Yavsc.Server/Models/Musical/Profiles/StarPerformerProfile.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using Yavsc.Models.Workflow; diff --git a/src/Yavsc.Server/Models/Payment/PaypalPayment.cs b/src/Yavsc.Server/Models/Payment/PaypalPayment.cs index f33160e5..bb214cad 100644 --- a/src/Yavsc.Server/Models/Payment/PaypalPayment.cs +++ b/src/Yavsc.Server/Models/Payment/PaypalPayment.cs @@ -1,12 +1,10 @@ -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -namespace Yavsc.Models.Payment { +namespace Yavsc.Models.Payment +{ using Yavsc; using Relationship; - using Yavsc.Attributes.Validation; public class PayPalPayment : ITrackedEntity { diff --git a/src/Yavsc.Server/Models/Relationship/Circle.cs b/src/Yavsc.Server/Models/Relationship/Circle.cs index 97b79f8d..35b40c07 100644 --- a/src/Yavsc.Server/Models/Relationship/Circle.cs +++ b/src/Yavsc.Server/Models/Relationship/Circle.cs @@ -1,9 +1,6 @@ - -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; -using Yavsc.Attributes.Validation; namespace Yavsc.Models.Relationship { diff --git a/src/Yavsc.Server/Models/Relationship/CircleMember.cs b/src/Yavsc.Server/Models/Relationship/CircleMember.cs index a102b260..e83215c7 100644 --- a/src/Yavsc.Server/Models/Relationship/CircleMember.cs +++ b/src/Yavsc.Server/Models/Relationship/CircleMember.cs @@ -1,7 +1,6 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using Yavsc.Attributes.Validation; namespace Yavsc.Models.Relationship { diff --git a/src/Yavsc.Server/Models/Relationship/Contact.cs b/src/Yavsc.Server/Models/Relationship/Contact.cs index 7976432b..4e87f322 100644 --- a/src/Yavsc.Server/Models/Relationship/Contact.cs +++ b/src/Yavsc.Server/Models/Relationship/Contact.cs @@ -1,7 +1,6 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; -using Yavsc.Attributes.Validation; namespace Yavsc.Models.Relationship { diff --git a/src/Yavsc.Server/Models/Relationship/Tag.cs b/src/Yavsc.Server/Models/Relationship/Tag.cs index ea9cc222..9fd1907b 100644 --- a/src/Yavsc.Server/Models/Relationship/Tag.cs +++ b/src/Yavsc.Server/Models/Relationship/Tag.cs @@ -1,7 +1,6 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using Yavsc.Attributes.Validation; namespace Yavsc.Models.Relationship { diff --git a/src/Yavsc.Server/Models/Workflow/Activity.cs b/src/Yavsc.Server/Models/Workflow/Activity.cs index af9a0909..0f813a27 100644 --- a/src/Yavsc.Server/Models/Workflow/Activity.cs +++ b/src/Yavsc.Server/Models/Workflow/Activity.cs @@ -1,6 +1,3 @@ - -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; diff --git a/src/Yavsc.Server/Models/Workflow/CommandForm.cs b/src/Yavsc.Server/Models/Workflow/CommandForm.cs index 4063babd..a5b76153 100644 --- a/src/Yavsc.Server/Models/Workflow/CommandForm.cs +++ b/src/Yavsc.Server/Models/Workflow/CommandForm.cs @@ -4,8 +4,7 @@ using Newtonsoft.Json; namespace Yavsc.Models.Workflow { - using Yavsc; - using Yavsc.Attributes.Validation; + using Yavsc; public class CommandForm : ICommandForm { diff --git a/src/Yavsc.Server/Models/Workflow/PerformerProfile.cs b/src/Yavsc.Server/Models/Workflow/PerformerProfile.cs index a9f4a507..7067bc13 100644 --- a/src/Yavsc.Server/Models/Workflow/PerformerProfile.cs +++ b/src/Yavsc.Server/Models/Workflow/PerformerProfile.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; diff --git a/src/Yavsc.Server/Models/Workflow/Profiles/FormationSettings.cs b/src/Yavsc.Server/Models/Workflow/Profiles/FormationSettings.cs index 2f7095da..1c30d32c 100644 --- a/src/Yavsc.Server/Models/Workflow/Profiles/FormationSettings.cs +++ b/src/Yavsc.Server/Models/Workflow/Profiles/FormationSettings.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Yavsc.Attributes.Validation; diff --git a/src/Yavsc.Server/Models/Workflow/RdvQuery.cs b/src/Yavsc.Server/Models/Workflow/RdvQuery.cs index d908c492..34bae29a 100644 --- a/src/Yavsc.Server/Models/Workflow/RdvQuery.cs +++ b/src/Yavsc.Server/Models/Workflow/RdvQuery.cs @@ -1,4 +1,3 @@ -using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; diff --git a/src/Yavsc.Server/Models/Workflow/RendezVous.cs b/src/Yavsc.Server/Models/Workflow/RendezVous.cs index 2f2e35f9..ddfbf587 100644 --- a/src/Yavsc.Server/Models/Workflow/RendezVous.cs +++ b/src/Yavsc.Server/Models/Workflow/RendezVous.cs @@ -1,4 +1,3 @@ -using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Yavsc.Models.Market; @@ -6,7 +5,6 @@ using Yavsc.Models.Market; namespace Yavsc.Models.Workflow { using Models.Relationship; - using Yavsc.Attributes.Validation; /// /// A date, between two persons diff --git a/src/Yavsc.Server/Models/Workflow/UserActivity.cs b/src/Yavsc.Server/Models/Workflow/UserActivity.cs index d9841ce7..5e2abf35 100644 --- a/src/Yavsc.Server/Models/Workflow/UserActivity.cs +++ b/src/Yavsc.Server/Models/Workflow/UserActivity.cs @@ -1,7 +1,6 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; -using Yavsc.Attributes.Validation; namespace Yavsc.Models.Workflow { diff --git a/src/Yavsc.Server/Services/BlogSpotService.cs b/src/Yavsc.Server/Services/BlogSpotService.cs index eb6fa457..6b85a4c3 100644 --- a/src/Yavsc.Server/Services/BlogSpotService.cs +++ b/src/Yavsc.Server/Services/BlogSpotService.cs @@ -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; diff --git a/src/Yavsc.Server/Services/ClaudeModerationService.cs b/src/Yavsc.Server/Services/ClaudeModerationService.cs index 0d6260ae..a510e55c 100644 --- a/src/Yavsc.Server/Services/ClaudeModerationService.cs +++ b/src/Yavsc.Server/Services/ClaudeModerationService.cs @@ -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); } } -} \ No newline at end of file +} diff --git a/src/Yavsc.Server/Services/FileSystemAuthManager.cs b/src/Yavsc.Server/Services/FileSystemAuthManager.cs index 973ccffc..53f29210 100644 --- a/src/Yavsc.Server/Services/FileSystemAuthManager.cs +++ b/src/Yavsc.Server/Services/FileSystemAuthManager.cs @@ -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; diff --git a/src/Yavsc.Server/Services/GoogleApis/CalendarManager.cs b/src/Yavsc.Server/Services/GoogleApis/CalendarManager.cs index f91b3393..8d9d7c23 100644 --- a/src/Yavsc.Server/Services/GoogleApis/CalendarManager.cs +++ b/src/Yavsc.Server/Services/GoogleApis/CalendarManager.cs @@ -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; diff --git a/src/Yavsc.Server/Services/GoogleApis/MapTracks.cs b/src/Yavsc.Server/Services/GoogleApis/MapTracks.cs index 230bee9a..6691674b 100644 --- a/src/Yavsc.Server/Services/GoogleApis/MapTracks.cs +++ b/src/Yavsc.Server/Services/GoogleApis/MapTracks.cs @@ -18,7 +18,6 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -using System.Threading.Tasks; using Yavsc.Models.Google; using Yavsc.Server.Helpers; @@ -56,11 +55,11 @@ namespace Yavsc.GoogleApis /// Entities. public static async Task CreateEntity( Entity[] entities ) { string [] ans = null; - + using (SimpleJsonPostMethod wr = new SimpleJsonPostMethod (googleMapTracksPath + "entities/create")) { - ans = await wr.Invoke (entities); + ans = await wr.Invoke (entities); } return ans; } diff --git a/src/Yavsc.Server/Services/GoogleApis/PeopleApi.cs b/src/Yavsc.Server/Services/GoogleApis/PeopleApi.cs index e67fa30e..de50e555 100644 --- a/src/Yavsc.Server/Services/GoogleApis/PeopleApi.cs +++ b/src/Yavsc.Server/Services/GoogleApis/PeopleApi.cs @@ -19,7 +19,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -using System.IO; using System.Net; using Newtonsoft.Json; using Yavsc.Abstract.Identity; diff --git a/src/Yavsc.Server/Services/IFileSystemAuthManager.cs b/src/Yavsc.Server/Services/IFileSystemAuthManager.cs index 9551cc6a..36d44c2d 100644 --- a/src/Yavsc.Server/Services/IFileSystemAuthManager.cs +++ b/src/Yavsc.Server/Services/IFileSystemAuthManager.cs @@ -1,6 +1,5 @@ using System.Security.Claims; -using Microsoft.Extensions.FileProviders; namespace Yavsc.Services { diff --git a/src/Yavsc.Server/Services/MailSender.cs b/src/Yavsc.Server/Services/MailSender.cs index 5e9e6d49..417fca6b 100644 --- a/src/Yavsc.Server/Services/MailSender.cs +++ b/src/Yavsc.Server/Services/MailSender.cs @@ -1,4 +1,3 @@ -using System.Net; using MailKit.Security; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; diff --git a/src/Yavsc.Server/Services/ProfileService.cs b/src/Yavsc.Server/Services/ProfileService.cs index bda689a4..b6da3a56 100644 --- a/src/Yavsc.Server/Services/ProfileService.cs +++ b/src/Yavsc.Server/Services/ProfileService.cs @@ -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; diff --git a/src/Yavsc.Server/Services/SIRENCheker.cs b/src/Yavsc.Server/Services/SIRENCheker.cs index 0843e946..eedea3f0 100644 --- a/src/Yavsc.Server/Services/SIRENCheker.cs +++ b/src/Yavsc.Server/Services/SIRENCheker.cs @@ -1,5 +1,3 @@ -using System.Net.Http; -using System.Threading.Tasks; using Yavsc.Helpers; namespace Yavsc.Services diff --git a/src/Yavsc.Server/Settings/SiteSettings.cs b/src/Yavsc.Server/Settings/SiteSettings.cs index 1f63ea2c..9267370e 100644 --- a/src/Yavsc.Server/Settings/SiteSettings.cs +++ b/src/Yavsc.Server/Settings/SiteSettings.cs @@ -1,4 +1,3 @@ -using Microsoft.EntityFrameworkCore.Metadata.Builders; using Yavsc.Models.Relationship; namespace Yavsc diff --git a/src/Yavsc.Server/Settings/UserPolicies.cs b/src/Yavsc.Server/Settings/UserPolicies.cs index 5f48426b..125a6236 100644 --- a/src/Yavsc.Server/Settings/UserPolicies.cs +++ b/src/Yavsc.Server/Settings/UserPolicies.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using Yavsc.Models; namespace Yavsc.Server.Settings diff --git a/src/Yavsc.Server/Templates/UserOrientedTemplate.cs b/src/Yavsc.Server/Templates/UserOrientedTemplate.cs index 43ceb532..7c85f104 100644 --- a/src/Yavsc.Server/Templates/UserOrientedTemplate.cs +++ b/src/Yavsc.Server/Templates/UserOrientedTemplate.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using Yavsc.Abstract.Templates; using Yavsc.Models; diff --git a/src/Yavsc.Server/ViewModels/Account/ChangePasswordBindingModel.cs b/src/Yavsc.Server/ViewModels/Account/ChangePasswordBindingModel.cs index bb2478d6..f5cb6bc1 100644 --- a/src/Yavsc.Server/ViewModels/Account/ChangePasswordBindingModel.cs +++ b/src/Yavsc.Server/ViewModels/Account/ChangePasswordBindingModel.cs @@ -1,6 +1,5 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Attributes.Validation; namespace Yavsc.Models.Account {  public class ChangePasswordBindingModel { diff --git a/src/Yavsc.Server/ViewModels/Account/ExternalLoginConfirmationViewModel.cs b/src/Yavsc.Server/ViewModels/Account/ExternalLoginConfirmationViewModel.cs index 09519543..a9ab63df 100644 --- a/src/Yavsc.Server/ViewModels/Account/ExternalLoginConfirmationViewModel.cs +++ b/src/Yavsc.Server/ViewModels/Account/ExternalLoginConfirmationViewModel.cs @@ -1,6 +1,5 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Abstract; using Yavsc.Attributes.Validation; namespace Yavsc.ViewModels.Account diff --git a/src/Yavsc.Server/ViewModels/Account/ResetPasswordViewModel.cs b/src/Yavsc.Server/ViewModels/Account/ResetPasswordViewModel.cs index a7f65c70..35c50878 100644 --- a/src/Yavsc.Server/ViewModels/Account/ResetPasswordViewModel.cs +++ b/src/Yavsc.Server/ViewModels/Account/ResetPasswordViewModel.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Attributes.Validation; namespace Yavsc.ViewModels.Account { diff --git a/src/Yavsc.Server/ViewModels/Account/SignInModel.cs b/src/Yavsc.Server/ViewModels/Account/SignInModel.cs index 272563d5..d2aa69ad 100755 --- a/src/Yavsc.Server/ViewModels/Account/SignInModel.cs +++ b/src/Yavsc.Server/ViewModels/Account/SignInModel.cs @@ -1,8 +1,4 @@ - -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using System.Runtime.InteropServices; -using Yavsc.Attributes.Validation; namespace Yavsc.ViewModels.Account { diff --git a/src/Yavsc.Server/ViewModels/Account/UnregisterViewModel.cs b/src/Yavsc.Server/ViewModels/Account/UnregisterViewModel.cs index 13e412f1..e28fcfed 100644 --- a/src/Yavsc.Server/ViewModels/Account/UnregisterViewModel.cs +++ b/src/Yavsc.Server/ViewModels/Account/UnregisterViewModel.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Attributes.Validation; namespace Yavsc.ViewModels.Account { diff --git a/src/Yavsc.Server/ViewModels/Account/VerifyCodeViewModel.cs b/src/Yavsc.Server/ViewModels/Account/VerifyCodeViewModel.cs index 413eda97..a768e249 100644 --- a/src/Yavsc.Server/ViewModels/Account/VerifyCodeViewModel.cs +++ b/src/Yavsc.Server/ViewModels/Account/VerifyCodeViewModel.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Attributes.Validation; namespace Yavsc.ViewModels.Account { diff --git a/src/Yavsc.Server/ViewModels/Auth/FileSpotInfo.cs b/src/Yavsc.Server/ViewModels/Auth/FileSpotInfo.cs index 78141e98..b151b4e7 100644 --- a/src/Yavsc.Server/ViewModels/Auth/FileSpotInfo.cs +++ b/src/Yavsc.Server/ViewModels/Auth/FileSpotInfo.cs @@ -1,5 +1,3 @@ - -using System.IO; using Microsoft.AspNetCore.Authorization; using Yavsc.Models.Blog; diff --git a/src/Yavsc.Server/ViewModels/Calendar/DateTimeChooserViewModel.cs b/src/Yavsc.Server/ViewModels/Calendar/DateTimeChooserViewModel.cs index de078cdb..967a9173 100644 --- a/src/Yavsc.Server/ViewModels/Calendar/DateTimeChooserViewModel.cs +++ b/src/Yavsc.Server/ViewModels/Calendar/DateTimeChooserViewModel.cs @@ -1,5 +1,3 @@ -using System; -using Yavsc.Models.Calendar; using Yavsc.Server.Models.Calendar; namespace Yavsc.ViewModels.Calendar diff --git a/src/Yavsc.Server/ViewModels/Chat/ChatRoomInfo.cs b/src/Yavsc.Server/ViewModels/Chat/ChatRoomInfo.cs index ff17d848..b74206f2 100644 --- a/src/Yavsc.Server/ViewModels/Chat/ChatRoomInfo.cs +++ b/src/Yavsc.Server/ViewModels/Chat/ChatRoomInfo.cs @@ -19,8 +19,6 @@ // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -using System.Collections.Generic; - namespace Yavsc { public class ChatRoomInfo diff --git a/src/Yavsc.Server/ViewModels/Chat/ChatUserInfo.cs b/src/Yavsc.Server/ViewModels/Chat/ChatUserInfo.cs index 66350be9..f8a8d19d 100644 --- a/src/Yavsc.Server/ViewModels/Chat/ChatUserInfo.cs +++ b/src/Yavsc.Server/ViewModels/Chat/ChatUserInfo.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using Yavsc.Models.Chat; namespace Yavsc.ViewModels.Chat {  diff --git a/src/Yavsc.Server/ViewModels/FrontOffice/PerformerProfileViewModel.cs b/src/Yavsc.Server/ViewModels/FrontOffice/PerformerProfileViewModel.cs index f5dce499..d2a23319 100644 --- a/src/Yavsc.Server/ViewModels/FrontOffice/PerformerProfileViewModel.cs +++ b/src/Yavsc.Server/ViewModels/FrontOffice/PerformerProfileViewModel.cs @@ -1,4 +1,3 @@ -using System.Linq; using Yavsc.Models.Workflow; namespace Yavsc.ViewModels.FrontOffice diff --git a/src/Yavsc.Server/ViewModels/LiveCastHandler.cs b/src/Yavsc.Server/ViewModels/LiveCastHandler.cs index f3ce00cb..55c3160d 100644 --- a/src/Yavsc.Server/ViewModels/LiveCastHandler.cs +++ b/src/Yavsc.Server/ViewModels/LiveCastHandler.cs @@ -1,15 +1,7 @@ -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.IO; +using System.Collections.Concurrent; using System.Net.WebSockets; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Extensions.Logging; -using Newtonsoft.Json; -using Yavsc.Helpers; using Yavsc.Models; -using Yavsc.Models.FileSystem; using Yavsc.Server.Helpers; using Yavsc.Server.Models.FileSystem; @@ -54,7 +46,7 @@ namespace Yavsc.ViewModels.Streaming item.Overridden = true; usage -= fi.Length; } - + logger.LogInformation("Opening the file"); using (var dest = fi.Open(FileMode.Create, FileAccess.Write, FileShare.Read)) { diff --git a/src/Yavsc.Server/ViewModels/Manage/AddPhoneNumberViewModel.cs b/src/Yavsc.Server/ViewModels/Manage/AddPhoneNumberViewModel.cs index 7c606ed3..bc823f50 100644 --- a/src/Yavsc.Server/ViewModels/Manage/AddPhoneNumberViewModel.cs +++ b/src/Yavsc.Server/ViewModels/Manage/AddPhoneNumberViewModel.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Attributes.Validation; namespace Yavsc.ViewModels.Manage { diff --git a/src/Yavsc.Server/ViewModels/Manage/DoDirectCreditViewModel.cs b/src/Yavsc.Server/ViewModels/Manage/DoDirectCreditViewModel.cs index cec754f0..7ee28f2c 100644 --- a/src/Yavsc.Server/ViewModels/Manage/DoDirectCreditViewModel.cs +++ b/src/Yavsc.Server/ViewModels/Manage/DoDirectCreditViewModel.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Attributes.Validation; namespace Yavsc.ViewModels.Manage { diff --git a/src/Yavsc.Server/ViewModels/Manage/SetAddressViewModel.cs b/src/Yavsc.Server/ViewModels/Manage/SetAddressViewModel.cs index ca568414..b7998761 100644 --- a/src/Yavsc.Server/ViewModels/Manage/SetAddressViewModel.cs +++ b/src/Yavsc.Server/ViewModels/Manage/SetAddressViewModel.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Attributes.Validation; namespace Yavsc.ViewModels.Manage { diff --git a/src/Yavsc.Server/ViewModels/Manage/VerifyPhoneNumberViewModel.cs b/src/Yavsc.Server/ViewModels/Manage/VerifyPhoneNumberViewModel.cs index 160185c9..71e87280 100644 --- a/src/Yavsc.Server/ViewModels/Manage/VerifyPhoneNumberViewModel.cs +++ b/src/Yavsc.Server/ViewModels/Manage/VerifyPhoneNumberViewModel.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using Yavsc.Attributes.Validation; namespace Yavsc.ViewModels.Manage { diff --git a/src/Yavsc.Server/ViewModels/Test/CalendarViewModel.cs b/src/Yavsc.Server/ViewModels/Test/CalendarViewModel.cs index cd3b58c1..105665fd 100644 --- a/src/Yavsc.Server/ViewModels/Test/CalendarViewModel.cs +++ b/src/Yavsc.Server/ViewModels/Test/CalendarViewModel.cs @@ -1,5 +1,3 @@ -using System; - namespace Yavsc.ViewModels.Test { public class CalendarViewModel diff --git a/src/cli/Commands/GenerationCommander.cs b/src/cli/Commands/GenerationCommander.cs index 55712f5b..7690a301 100644 --- a/src/cli/Commands/GenerationCommander.cs +++ b/src/cli/Commands/GenerationCommander.cs @@ -3,7 +3,6 @@ using cli.Model; using cli.Services; using cli.Settings; using Microsoft.Extensions.CommandLineUtils; -using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; @@ -44,7 +43,7 @@ namespace cli.Commands config.HelpOption("-? | -h | --help"); }); cmd.OnExecute(() => { - + var logger = loggerFactory.CreateLogger(); var modelFullName = mdClass?.Value ?? options?.Value.ModelFullName; var nameSpace = nameSpaceArg?.Value?? options?.Value.NameSpace; @@ -56,10 +55,10 @@ namespace cli.Commands logger.LogInformation($"Using parameters : modelFullName:{modelFullName} nameSpace:{nameSpace} dbContext:{dbContext} controllerName:{controllerName} relativePath:{relativePath}"); mvcGenerator.Generate(modelFullName, - dbContext, + dbContext, controllerName, relativePath); - + logger.LogInformation("Finished generation"); return 0; diff --git a/src/cli/Commands/UserListCleanUp.cs b/src/cli/Commands/UserListCleanUp.cs index e5360f36..7d171ed9 100644 --- a/src/cli/Commands/UserListCleanUp.cs +++ b/src/cli/Commands/UserListCleanUp.cs @@ -1,5 +1,4 @@ using cli.Model; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.CommandLineUtils; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; @@ -30,7 +29,7 @@ namespace cli.Commands if (!showhelp) { - + var mailer = Program.AppHost.Services.GetService(); var loggerFactory = Program.AppHost.Services.GetService(); diff --git a/src/cli/Program.cs b/src/cli/Program.cs index aeb573b1..6c0d0cef 100644 --- a/src/cli/Program.cs +++ b/src/cli/Program.cs @@ -1,6 +1,5 @@ // See https://aka.ms/new-console-template for more information -using cli; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; internal class Program @@ -16,7 +15,7 @@ internal class Program .AddJsonFile("appsettings-cli.json", optional: false, reloadOnChange: false) .AddJsonFile($"appsettings-cli.{builder.Environment.EnvironmentName}.json", optional: true, reloadOnChange: false) .AddEnvironmentVariables(); - + AppHost = builder.Build(); AppConfiguration = builder.Configuration; AppHost.Start(); diff --git a/src/cli/Services/YaRazorEngineHost.cs b/src/cli/Services/YaRazorEngineHost.cs index 3d29812a..038cd5fb 100644 --- a/src/cli/Services/YaRazorEngineHost.cs +++ b/src/cli/Services/YaRazorEngineHost.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Razor; - -namespace cli +namespace cli { public class YaRazorEngineHost { diff --git a/src/cli/Settings/ConnectionSettings.cs b/src/cli/Settings/ConnectionSettings.cs index 62622ebc..21836d2e 100644 --- a/src/cli/Settings/ConnectionSettings.cs +++ b/src/cli/Settings/ConnectionSettings.cs @@ -1,7 +1,6 @@ namespace cli { using System.ComponentModel.DataAnnotations.Schema; - using System.Runtime.Serialization; using Newtonsoft.Json; using Yavsc;