From 9d3a670c8459cac0624a8042c838b675cac6ffca Mon Sep 17 00:00:00 2001 From: MFM_Fazrin Date: Wed, 3 Aug 2022 13:08:38 +0300 Subject: [PATCH] Client app updated to .NET and unused imports cleaned --- .../.idea/.idea.GraphQLDemo/.idea/.gitignore | 13 +++++++++++++ .../.idea/.idea.GraphQLDemo/.idea/encodings.xml | 4 ++++ .../.idea/.idea.GraphQLDemo/.idea/indexLayout.xml | 8 ++++++++ GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/vcs.xml | 6 ++++++ GraphQLDemo/GraphQLDemo.API/DTOs/CourseDTO.cs | 2 -- GraphQLDemo/GraphQLDemo.API/DTOs/InstructorDTO.cs | 2 -- GraphQLDemo/GraphQLDemo.API/DTOs/StudentDTO.cs | 2 -- .../GraphQLDemo.API/DataLoaders/UserDataLoader.cs | 1 - .../Middlewares/UseUser/UseUserAttribute.cs | 4 ---- .../Middlewares/UseUser/UserAttribute.cs | 4 ---- .../Middlewares/UseUser/UserMiddleware.cs | 3 --- GraphQLDemo/GraphQLDemo.API/Models/Subject.cs | 7 +------ GraphQLDemo/GraphQLDemo.API/Models/User.cs | 7 +------ GraphQLDemo/GraphQLDemo.API/Program.cs | 6 ------ .../Schema/Filters/CourseFilterType.cs | 4 ---- .../Schema/Mutations/CourseMutation.cs | 6 ------ .../Schema/Mutations/CourseResult.cs | 4 ---- .../Schema/Mutations/CourseTypeInput.cs | 4 ---- .../Schema/Mutations/InstructorTypeInput.cs | 4 +--- .../GraphQLDemo.API/Schema/Queries/CourseQuery.cs | 2 -- .../GraphQLDemo.API/Schema/Queries/CourseType.cs | 5 +---- .../Schema/Queries/ISearchResultType.cs | 4 ---- .../Schema/Queries/InstructorType.cs | 3 --- .../GraphQLDemo.API/Schema/Queries/StudentType.cs | 3 --- .../GraphQLDemo.API/Schema/Queries/UserType.cs | 7 +------ .../Schema/Sorters/CourseSortType.cs | 4 ---- .../Schema/Subscriptions/Subscription.cs | 3 --- .../Services/Courses/CoursesRepository.cs | 1 - .../GraphQLDemo.API/Services/SchoolDbContext.cs | 4 ---- GraphQLDemo/GraphQLDemo.API/Startup.cs | 6 ------ .../Validators/CourseTypeInputValidator.cs | 4 ---- .../GraphQLDemo.Client/GraphQLDemo.Client.csproj | 14 ++++++++------ GraphQLDemo/GraphQLDemo.Client/Program.cs | 2 -- .../Scripts/CreateCourseScript.cs | 3 --- .../GraphQLDemo.Client/Scripts/GetCoursesScript.cs | 2 -- .../GraphQLDemo.Client/Scripts/LoginScript.cs | 3 --- .../GraphQLDemo.Client/Scripts/SearchScript.cs | 1 - .../GraphQLDemo.Client/Stores/TokenStore.cs | 8 +------- GraphQLDemo/global.json | 7 +++++++ 39 files changed, 52 insertions(+), 125 deletions(-) create mode 100644 GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/.gitignore create mode 100644 GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/encodings.xml create mode 100644 GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/indexLayout.xml create mode 100644 GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/vcs.xml create mode 100644 GraphQLDemo/global.json diff --git a/GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/.gitignore b/GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/.gitignore new file mode 100644 index 0000000..357f3ce --- /dev/null +++ b/GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/.idea.GraphQLDemo.iml +/modules.xml +/contentModel.xml +/projectSettingsUpdater.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/encodings.xml b/GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/indexLayout.xml b/GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/vcs.xml b/GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/GraphQLDemo/.idea/.idea.GraphQLDemo/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/GraphQLDemo/GraphQLDemo.API/DTOs/CourseDTO.cs b/GraphQLDemo/GraphQLDemo.API/DTOs/CourseDTO.cs index 7ad5002..69df87c 100644 --- a/GraphQLDemo/GraphQLDemo.API/DTOs/CourseDTO.cs +++ b/GraphQLDemo/GraphQLDemo.API/DTOs/CourseDTO.cs @@ -1,8 +1,6 @@ using GraphQLDemo.API.Models; using System; using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API.DTOs { diff --git a/GraphQLDemo/GraphQLDemo.API/DTOs/InstructorDTO.cs b/GraphQLDemo/GraphQLDemo.API/DTOs/InstructorDTO.cs index 741079c..7bec2b8 100644 --- a/GraphQLDemo/GraphQLDemo.API/DTOs/InstructorDTO.cs +++ b/GraphQLDemo/GraphQLDemo.API/DTOs/InstructorDTO.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API.DTOs { diff --git a/GraphQLDemo/GraphQLDemo.API/DTOs/StudentDTO.cs b/GraphQLDemo/GraphQLDemo.API/DTOs/StudentDTO.cs index 18ab7f7..afaf78f 100644 --- a/GraphQLDemo/GraphQLDemo.API/DTOs/StudentDTO.cs +++ b/GraphQLDemo/GraphQLDemo.API/DTOs/StudentDTO.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API.DTOs { diff --git a/GraphQLDemo/GraphQLDemo.API/DataLoaders/UserDataLoader.cs b/GraphQLDemo/GraphQLDemo.API/DataLoaders/UserDataLoader.cs index 5ce9da3..357ac2c 100644 --- a/GraphQLDemo/GraphQLDemo.API/DataLoaders/UserDataLoader.cs +++ b/GraphQLDemo/GraphQLDemo.API/DataLoaders/UserDataLoader.cs @@ -2,7 +2,6 @@ using FirebaseAdmin.Auth; using GraphQLDemo.API.Schema.Queries; using GreenDonut; -using System; using System.Collections.Generic; using System.Linq; using System.Threading; diff --git a/GraphQLDemo/GraphQLDemo.API/Middlewares/UseUser/UseUserAttribute.cs b/GraphQLDemo/GraphQLDemo.API/Middlewares/UseUser/UseUserAttribute.cs index 1df9b05..7f76574 100644 --- a/GraphQLDemo/GraphQLDemo.API/Middlewares/UseUser/UseUserAttribute.cs +++ b/GraphQLDemo/GraphQLDemo.API/Middlewares/UseUser/UseUserAttribute.cs @@ -1,11 +1,7 @@ using HotChocolate.Types; using HotChocolate.Types.Descriptors; -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; -using System.Threading.Tasks; namespace GraphQLDemo.API.Middlewares.UseUser { diff --git a/GraphQLDemo/GraphQLDemo.API/Middlewares/UseUser/UserAttribute.cs b/GraphQLDemo/GraphQLDemo.API/Middlewares/UseUser/UserAttribute.cs index 575676c..df0b724 100644 --- a/GraphQLDemo/GraphQLDemo.API/Middlewares/UseUser/UserAttribute.cs +++ b/GraphQLDemo/GraphQLDemo.API/Middlewares/UseUser/UserAttribute.cs @@ -1,8 +1,4 @@ using HotChocolate; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API.Middlewares.UseUser { diff --git a/GraphQLDemo/GraphQLDemo.API/Middlewares/UseUser/UserMiddleware.cs b/GraphQLDemo/GraphQLDemo.API/Middlewares/UseUser/UserMiddleware.cs index 6f5b0bb..e43deef 100644 --- a/GraphQLDemo/GraphQLDemo.API/Middlewares/UseUser/UserMiddleware.cs +++ b/GraphQLDemo/GraphQLDemo.API/Middlewares/UseUser/UserMiddleware.cs @@ -1,9 +1,6 @@ using FirebaseAdminAuthentication.DependencyInjection.Models; using GraphQLDemo.API.Models; using HotChocolate.Resolvers; -using System; -using System.Collections.Generic; -using System.Linq; using System.Security.Claims; using System.Threading.Tasks; diff --git a/GraphQLDemo/GraphQLDemo.API/Models/Subject.cs b/GraphQLDemo/GraphQLDemo.API/Models/Subject.cs index 95f0acd..1592484 100644 --- a/GraphQLDemo/GraphQLDemo.API/Models/Subject.cs +++ b/GraphQLDemo/GraphQLDemo.API/Models/Subject.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace GraphQLDemo.API.Models +namespace GraphQLDemo.API.Models { public enum Subject { diff --git a/GraphQLDemo/GraphQLDemo.API/Models/User.cs b/GraphQLDemo/GraphQLDemo.API/Models/User.cs index e464a8a..3d6ad63 100644 --- a/GraphQLDemo/GraphQLDemo.API/Models/User.cs +++ b/GraphQLDemo/GraphQLDemo.API/Models/User.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace GraphQLDemo.API.Models +namespace GraphQLDemo.API.Models { public class User { diff --git a/GraphQLDemo/GraphQLDemo.API/Program.cs b/GraphQLDemo/GraphQLDemo.API/Program.cs index 50e27d5..0a1a05c 100644 --- a/GraphQLDemo/GraphQLDemo.API/Program.cs +++ b/GraphQLDemo/GraphQLDemo.API/Program.cs @@ -1,14 +1,8 @@ using GraphQLDemo.API.Services; using Microsoft.AspNetCore.Hosting; using Microsoft.EntityFrameworkCore; -using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API { diff --git a/GraphQLDemo/GraphQLDemo.API/Schema/Filters/CourseFilterType.cs b/GraphQLDemo/GraphQLDemo.API/Schema/Filters/CourseFilterType.cs index 066869e..fa97a9c 100644 --- a/GraphQLDemo/GraphQLDemo.API/Schema/Filters/CourseFilterType.cs +++ b/GraphQLDemo/GraphQLDemo.API/Schema/Filters/CourseFilterType.cs @@ -1,9 +1,5 @@ using GraphQLDemo.API.Schema.Queries; using HotChocolate.Data.Filters; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API.Schema.Filters { diff --git a/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/CourseMutation.cs b/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/CourseMutation.cs index bf019c1..c45031d 100644 --- a/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/CourseMutation.cs +++ b/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/CourseMutation.cs @@ -1,10 +1,7 @@ using AppAny.HotChocolate.FluentValidation; -using FirebaseAdminAuthentication.DependencyInjection.Models; -using FluentValidation.Results; using GraphQLDemo.API.DTOs; using GraphQLDemo.API.Middlewares.UseUser; using GraphQLDemo.API.Models; -using GraphQLDemo.API.Schema.Queries; using GraphQLDemo.API.Schema.Subscriptions; using GraphQLDemo.API.Services.Courses; using GraphQLDemo.API.Validators; @@ -13,9 +10,6 @@ using HotChocolate.Subscriptions; using HotChocolate.Types; using System; -using System.Collections.Generic; -using System.Linq; -using System.Security.Claims; using System.Threading.Tasks; namespace GraphQLDemo.API.Schema.Mutations diff --git a/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/CourseResult.cs b/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/CourseResult.cs index 49d56c7..ac8a283 100644 --- a/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/CourseResult.cs +++ b/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/CourseResult.cs @@ -1,9 +1,5 @@ using GraphQLDemo.API.Models; -using GraphQLDemo.API.Schema.Queries; using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API.Schema.Mutations { diff --git a/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/CourseTypeInput.cs b/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/CourseTypeInput.cs index 8c9a725..03d4c25 100644 --- a/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/CourseTypeInput.cs +++ b/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/CourseTypeInput.cs @@ -1,9 +1,5 @@ using GraphQLDemo.API.Models; -using GraphQLDemo.API.Schema.Queries; using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API.Schema.Mutations { diff --git a/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/InstructorTypeInput.cs b/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/InstructorTypeInput.cs index fb87a44..1d3281b 100644 --- a/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/InstructorTypeInput.cs +++ b/GraphQLDemo/GraphQLDemo.API/Schema/Mutations/InstructorTypeInput.cs @@ -1,6 +1,4 @@ -using System; - -namespace GraphQLDemo.API.Schema.Mutations +namespace GraphQLDemo.API.Schema.Mutations { public class InstructorTypeInput { diff --git a/GraphQLDemo/GraphQLDemo.API/Schema/Queries/CourseQuery.cs b/GraphQLDemo/GraphQLDemo.API/Schema/Queries/CourseQuery.cs index 7fc3656..33f96aa 100644 --- a/GraphQLDemo/GraphQLDemo.API/Schema/Queries/CourseQuery.cs +++ b/GraphQLDemo/GraphQLDemo.API/Schema/Queries/CourseQuery.cs @@ -2,12 +2,10 @@ using GraphQLDemo.API.Schema.Filters; using GraphQLDemo.API.Schema.Sorters; using GraphQLDemo.API.Services; -using GraphQLDemo.API.Services.Courses; using HotChocolate; using HotChocolate.Data; using HotChocolate.Types; using System; -using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; diff --git a/GraphQLDemo/GraphQLDemo.API/Schema/Queries/CourseType.cs b/GraphQLDemo/GraphQLDemo.API/Schema/Queries/CourseType.cs index c8fd50a..4ce3618 100644 --- a/GraphQLDemo/GraphQLDemo.API/Schema/Queries/CourseType.cs +++ b/GraphQLDemo/GraphQLDemo.API/Schema/Queries/CourseType.cs @@ -1,13 +1,10 @@ -using FirebaseAdmin.Auth; -using GraphQLDemo.API.DataLoaders; +using GraphQLDemo.API.DataLoaders; using GraphQLDemo.API.DTOs; using GraphQLDemo.API.Models; -using GraphQLDemo.API.Services.Instructors; using HotChocolate; using HotChocolate.Data; using System; using System.Collections.Generic; -using System.Linq; using System.Threading; using System.Threading.Tasks; diff --git a/GraphQLDemo/GraphQLDemo.API/Schema/Queries/ISearchResultType.cs b/GraphQLDemo/GraphQLDemo.API/Schema/Queries/ISearchResultType.cs index e7c3cca..b7ae707 100644 --- a/GraphQLDemo/GraphQLDemo.API/Schema/Queries/ISearchResultType.cs +++ b/GraphQLDemo/GraphQLDemo.API/Schema/Queries/ISearchResultType.cs @@ -1,8 +1,4 @@ using HotChocolate.Types; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API.Schema.Queries { diff --git a/GraphQLDemo/GraphQLDemo.API/Schema/Queries/InstructorType.cs b/GraphQLDemo/GraphQLDemo.API/Schema/Queries/InstructorType.cs index 703ad0b..06f5964 100644 --- a/GraphQLDemo/GraphQLDemo.API/Schema/Queries/InstructorType.cs +++ b/GraphQLDemo/GraphQLDemo.API/Schema/Queries/InstructorType.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API.Schema.Queries { diff --git a/GraphQLDemo/GraphQLDemo.API/Schema/Queries/StudentType.cs b/GraphQLDemo/GraphQLDemo.API/Schema/Queries/StudentType.cs index 2e1f579..435794b 100644 --- a/GraphQLDemo/GraphQLDemo.API/Schema/Queries/StudentType.cs +++ b/GraphQLDemo/GraphQLDemo.API/Schema/Queries/StudentType.cs @@ -1,8 +1,5 @@ using HotChocolate; using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API.Schema.Queries { diff --git a/GraphQLDemo/GraphQLDemo.API/Schema/Queries/UserType.cs b/GraphQLDemo/GraphQLDemo.API/Schema/Queries/UserType.cs index 2e34b6e..0a24761 100644 --- a/GraphQLDemo/GraphQLDemo.API/Schema/Queries/UserType.cs +++ b/GraphQLDemo/GraphQLDemo.API/Schema/Queries/UserType.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace GraphQLDemo.API.Schema.Queries +namespace GraphQLDemo.API.Schema.Queries { public class UserType { diff --git a/GraphQLDemo/GraphQLDemo.API/Schema/Sorters/CourseSortType.cs b/GraphQLDemo/GraphQLDemo.API/Schema/Sorters/CourseSortType.cs index 488c29f..f75fb78 100644 --- a/GraphQLDemo/GraphQLDemo.API/Schema/Sorters/CourseSortType.cs +++ b/GraphQLDemo/GraphQLDemo.API/Schema/Sorters/CourseSortType.cs @@ -1,9 +1,5 @@ using GraphQLDemo.API.Schema.Queries; using HotChocolate.Data.Sorting; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API.Schema.Sorters { diff --git a/GraphQLDemo/GraphQLDemo.API/Schema/Subscriptions/Subscription.cs b/GraphQLDemo/GraphQLDemo.API/Schema/Subscriptions/Subscription.cs index e18ead5..9c0ce32 100644 --- a/GraphQLDemo/GraphQLDemo.API/Schema/Subscriptions/Subscription.cs +++ b/GraphQLDemo/GraphQLDemo.API/Schema/Subscriptions/Subscription.cs @@ -1,12 +1,9 @@ using GraphQLDemo.API.Schema.Mutations; -using GraphQLDemo.API.Schema.Queries; using HotChocolate; using HotChocolate.Execution; using HotChocolate.Subscriptions; using HotChocolate.Types; using System; -using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; namespace GraphQLDemo.API.Schema.Subscriptions diff --git a/GraphQLDemo/GraphQLDemo.API/Services/Courses/CoursesRepository.cs b/GraphQLDemo/GraphQLDemo.API/Services/Courses/CoursesRepository.cs index 06c7f21..cfd2ec1 100644 --- a/GraphQLDemo/GraphQLDemo.API/Services/Courses/CoursesRepository.cs +++ b/GraphQLDemo/GraphQLDemo.API/Services/Courses/CoursesRepository.cs @@ -2,7 +2,6 @@ using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; namespace GraphQLDemo.API.Services.Courses diff --git a/GraphQLDemo/GraphQLDemo.API/Services/SchoolDbContext.cs b/GraphQLDemo/GraphQLDemo.API/Services/SchoolDbContext.cs index bfe3d87..e789a1b 100644 --- a/GraphQLDemo/GraphQLDemo.API/Services/SchoolDbContext.cs +++ b/GraphQLDemo/GraphQLDemo.API/Services/SchoolDbContext.cs @@ -1,9 +1,5 @@ using GraphQLDemo.API.DTOs; using Microsoft.EntityFrameworkCore; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API.Services { diff --git a/GraphQLDemo/GraphQLDemo.API/Startup.cs b/GraphQLDemo/GraphQLDemo.API/Startup.cs index 6192f38..f2de109 100644 --- a/GraphQLDemo/GraphQLDemo.API/Startup.cs +++ b/GraphQLDemo/GraphQLDemo.API/Startup.cs @@ -1,12 +1,10 @@ using AppAny.HotChocolate.FluentValidation; using FirebaseAdmin; -using FirebaseAdmin.Auth; using FirebaseAdminAuthentication.DependencyInjection.Extensions; using FirebaseAdminAuthentication.DependencyInjection.Models; using FluentValidation.AspNetCore; using Google.Apis.Auth.OAuth2; using GraphQLDemo.API.DataLoaders; -using GraphQLDemo.API.Schema; using GraphQLDemo.API.Schema.Mutations; using GraphQLDemo.API.Schema.Queries; using GraphQLDemo.API.Schema.Subscriptions; @@ -16,15 +14,11 @@ using GraphQLDemo.API.Validators; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API { diff --git a/GraphQLDemo/GraphQLDemo.API/Validators/CourseTypeInputValidator.cs b/GraphQLDemo/GraphQLDemo.API/Validators/CourseTypeInputValidator.cs index 9b2c758..870bb1d 100644 --- a/GraphQLDemo/GraphQLDemo.API/Validators/CourseTypeInputValidator.cs +++ b/GraphQLDemo/GraphQLDemo.API/Validators/CourseTypeInputValidator.cs @@ -1,9 +1,5 @@ using FluentValidation; using GraphQLDemo.API.Schema.Mutations; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace GraphQLDemo.API.Validators { diff --git a/GraphQLDemo/GraphQLDemo.Client/GraphQLDemo.Client.csproj b/GraphQLDemo/GraphQLDemo.Client/GraphQLDemo.Client.csproj index d3c4a1a..110e724 100644 --- a/GraphQLDemo/GraphQLDemo.Client/GraphQLDemo.Client.csproj +++ b/GraphQLDemo/GraphQLDemo.Client/GraphQLDemo.Client.csproj @@ -2,7 +2,8 @@ Exe - net5.0 + net6.0 + 10 @@ -17,11 +18,11 @@ - - - - - + + + + + @@ -32,6 +33,7 @@ + diff --git a/GraphQLDemo/GraphQLDemo.Client/Program.cs b/GraphQLDemo/GraphQLDemo.Client/Program.cs index aa6c52d..740f4d5 100644 --- a/GraphQLDemo/GraphQLDemo.Client/Program.cs +++ b/GraphQLDemo/GraphQLDemo.Client/Program.cs @@ -4,9 +4,7 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using StrawberryShake; using System; -using System.Linq; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; diff --git a/GraphQLDemo/GraphQLDemo.Client/Scripts/CreateCourseScript.cs b/GraphQLDemo/GraphQLDemo.Client/Scripts/CreateCourseScript.cs index 60d6ca6..f125c1e 100644 --- a/GraphQLDemo/GraphQLDemo.Client/Scripts/CreateCourseScript.cs +++ b/GraphQLDemo/GraphQLDemo.Client/Scripts/CreateCourseScript.cs @@ -1,8 +1,5 @@ using StrawberryShake; using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading.Tasks; namespace GraphQLDemo.Client.Scripts diff --git a/GraphQLDemo/GraphQLDemo.Client/Scripts/GetCoursesScript.cs b/GraphQLDemo/GraphQLDemo.Client/Scripts/GetCoursesScript.cs index a7ff954..8775d0a 100644 --- a/GraphQLDemo/GraphQLDemo.Client/Scripts/GetCoursesScript.cs +++ b/GraphQLDemo/GraphQLDemo.Client/Scripts/GetCoursesScript.cs @@ -1,8 +1,6 @@ using StrawberryShake; using System; using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading.Tasks; namespace GraphQLDemo.Client.Scripts diff --git a/GraphQLDemo/GraphQLDemo.Client/Scripts/LoginScript.cs b/GraphQLDemo/GraphQLDemo.Client/Scripts/LoginScript.cs index baf71f2..5ba7a84 100644 --- a/GraphQLDemo/GraphQLDemo.Client/Scripts/LoginScript.cs +++ b/GraphQLDemo/GraphQLDemo.Client/Scripts/LoginScript.cs @@ -1,9 +1,6 @@ using Firebase.Auth; using GraphQLDemo.Client.Stores; using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading.Tasks; namespace GraphQLDemo.Client.Scripts diff --git a/GraphQLDemo/GraphQLDemo.Client/Scripts/SearchScript.cs b/GraphQLDemo/GraphQLDemo.Client/Scripts/SearchScript.cs index 0db2ffd..83df905 100644 --- a/GraphQLDemo/GraphQLDemo.Client/Scripts/SearchScript.cs +++ b/GraphQLDemo/GraphQLDemo.Client/Scripts/SearchScript.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Threading.Tasks; namespace GraphQLDemo.Client.Scripts diff --git a/GraphQLDemo/GraphQLDemo.Client/Stores/TokenStore.cs b/GraphQLDemo/GraphQLDemo.Client/Stores/TokenStore.cs index d4f54e3..aca29c8 100644 --- a/GraphQLDemo/GraphQLDemo.Client/Stores/TokenStore.cs +++ b/GraphQLDemo/GraphQLDemo.Client/Stores/TokenStore.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace GraphQLDemo.Client.Stores +namespace GraphQLDemo.Client.Stores { public class TokenStore { diff --git a/GraphQLDemo/global.json b/GraphQLDemo/global.json new file mode 100644 index 0000000..87aef9f --- /dev/null +++ b/GraphQLDemo/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + "version": "6.0.0", + "rollForward": "latestMajor", + "allowPrerelease": false + } +} \ No newline at end of file