Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 44f5eab

Browse filesBrowse files
committed
remove unused directives
1 parent 1348a63 commit 44f5eab
Copy full SHA for 44f5eab

39 files changed

+25
-174
lines changed

‎AspNetCoreIdentity/Controllers/AccountController.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/Controllers/AccountController.cs
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Linq;
43
using System.Security.Claims;
54
using System.Text.Encodings.Web;
65
using System.Threading.Tasks;
76
using AspNetCoreIdentity.Infrastructure;
8-
using AspNetCoreIdentity.Models;
97
using AspNetCoreIdentity.ViewModels;
10-
using Microsoft.AspNetCore.Authentication;
11-
using Microsoft.AspNetCore.Authentication.Cookies;
128
using Microsoft.AspNetCore.Authorization;
139
using Microsoft.AspNetCore.Identity;
1410
using Microsoft.AspNetCore.Mvc;

‎AspNetCoreIdentity/Controllers/ClientAppSettings.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/Controllers/ClientAppSettings.cs
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
using Microsoft.AspNetCore.Mvc;
1+
using Microsoft.AspNetCore.Mvc;
62

73
namespace AspNetCoreIdentity.Controllers
84
{

‎AspNetCoreIdentity/Controllers/ExternalAccountController.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/Controllers/ExternalAccountController.cs
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Linq;
4-
using System.Net;
53
using System.Security.Claims;
64
using System.Text.Encodings.Web;
75
using System.Threading.Tasks;

‎AspNetCoreIdentity/Controllers/HomeController.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/Controllers/HomeController.cs
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
using System;
2-
using System.Collections.Generic;
31
using System.Diagnostics;
4-
using System.Linq;
5-
using System.Threading.Tasks;
62
using AspNetCoreIdentity.Infrastructure;
7-
using AspNetCoreIdentity.Models;
8-
using Microsoft.AspNetCore.Identity;
93
using Microsoft.AspNetCore.Mvc;
104

115
namespace AspNetCoreIdentity.Controllers

‎AspNetCoreIdentity/Controllers/StreamingController.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/Controllers/StreamingController.cs
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.IO;
43
using System.Linq;
54
using System.Security.Claims;
65
using System.Threading.Tasks;
@@ -9,7 +8,6 @@
98
using Microsoft.AspNetCore.Authorization;
109
using Microsoft.AspNetCore.Identity;
1110
using Microsoft.AspNetCore.Mvc;
12-
using Newtonsoft.Json;
1311

1412
namespace AspNetCoreIdentity.Controllers {
1513
[Route ("api/[controller]")]

‎AspNetCoreIdentity/Infrastructure/AppUserStore.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/Infrastructure/AppUserStore.cs
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using AspNetCoreIdentity.Models;
2-
using Microsoft.AspNetCore.Identity;
1+
using Microsoft.AspNetCore.Identity;
32
using System;
43
using System.Collections.Generic;
54
using System.Linq;

‎AspNetCoreIdentity/Infrastructure/AuthMessageSenderOptions.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/Infrastructure/AuthMessageSenderOptions.cs
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
6-
namespace AspNetCoreIdentity.Infrastructure
1+
namespace AspNetCoreIdentity.Infrastructure
72
{
83
public class AuthMessageSenderOptions
94
{

‎AspNetCoreIdentity/Infrastructure/DbInitializer.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/Infrastructure/DbInitializer.cs
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Threading.Tasks;
44
using Microsoft.AspNetCore.Identity;
55
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
6-
using Microsoft.EntityFrameworkCore;
76

87
namespace AspNetCoreIdentity.Infrastructure {
98
public class DbInitializer : IDbInitializer {

‎AspNetCoreIdentity/Infrastructure/EmailSender.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/Infrastructure/EmailSender.cs
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
1+
using System.Threading.Tasks;
52
using Microsoft.Extensions.Options;
63
using SendGrid;
74
using SendGrid.Helpers.Mail;

‎AspNetCoreIdentity/Infrastructure/UserRepository.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/Infrastructure/UserRepository.cs
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
using AspNetCoreIdentity.Models;
2-
using System;
32
using System.Collections.Generic;
4-
using System.Linq;
5-
using System.Threading.Tasks;
63

74
namespace AspNetCoreIdentity.Infrastructure
85
{

‎AspNetCoreIdentity/Infrastructure/VideoRepository.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/Infrastructure/VideoRepository.cs
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
using AspNetCoreIdentity.Models;
21
using AspNetCoreIdentity.ViewModels;
3-
using System;
42
using System.Collections.Generic;
5-
using System.Linq;
6-
using System.Threading.Tasks;
73

84
namespace AspNetCoreIdentity.Infrastructure
95
{

‎AspNetCoreIdentity/Models/AppUser.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/Models/AppUser.cs
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
6-
namespace AspNetCoreIdentity.Models
1+
namespace AspNetCoreIdentity.Models
72
{
83
public class AppUser
94
{

‎AspNetCoreIdentity/Program.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/Program.cs
-7Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.IO;
4-
using System.Linq;
5-
using System.Threading.Tasks;
61
using Microsoft.AspNetCore;
72
using Microsoft.AspNetCore.Hosting;
8-
using Microsoft.Extensions.Configuration;
9-
using Microsoft.Extensions.Logging;
103

114
namespace AspNetCoreIdentity
125
{

‎AspNetCoreIdentity/ViewModels/AssociateViewModel.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/ViewModels/AssociateViewModel.cs
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
6-
namespace AspNetCoreIdentity.ViewModels
1+
namespace AspNetCoreIdentity.ViewModels
72
{
83
public class AssociateViewModel
94
{

‎AspNetCoreIdentity/ViewModels/ClaimVM.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/ViewModels/ClaimVM.cs
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
1+
using System.Collections.Generic;
52

63
namespace AspNetCoreIdentity.ViewModels
74
{

‎AspNetCoreIdentity/ViewModels/LoginVM.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/ViewModels/LoginVM.cs
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.ComponentModel.DataAnnotations;
4-
using System.Linq;
5-
using System.Threading.Tasks;
1+
using System.ComponentModel.DataAnnotations;
62

73
namespace AspNetCoreIdentity.ViewModels
84
{

‎AspNetCoreIdentity/ViewModels/RegisterVM.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/ViewModels/RegisterVM.cs
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.ComponentModel.DataAnnotations;
4-
using System.Linq;
5-
using System.Threading.Tasks;
1+
using System.ComponentModel.DataAnnotations;
62

73
namespace AspNetCoreIdentity.ViewModels
84
{

‎AspNetCoreIdentity/ViewModels/ResultVM.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/ViewModels/ResultVM.cs
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
6-
namespace AspNetCoreIdentity.ViewModels
1+
namespace AspNetCoreIdentity.ViewModels
72
{
83
public class ResultVM
94
{

‎AspNetCoreIdentity/ViewModels/UserStateVM.cs

Copy file name to clipboardExpand all lines: AspNetCoreIdentity/ViewModels/UserStateVM.cs
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
6-
namespace AspNetCoreIdentity.ViewModels
1+
namespace AspNetCoreIdentity.ViewModels
72
{
83
public class UserStateVM
94
{

‎IdentityServer/Config.cs

Copy file name to clipboardExpand all lines: IdentityServer/Config.cs
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Security.Claims;
5-
using System.Threading.Tasks;
1+
using System.Collections.Generic;
62
using IdentityServer4;
73
using IdentityServer4.Models;
8-
using IdentityServer4.Test;
94

105
namespace IdentityServer
116
{

‎IdentityServer/DatabaseInitializer.cs

Copy file name to clipboardExpand all lines: IdentityServer/DatabaseInitializer.cs
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Linq;
43
using System.Security.Claims;
5-
using System.Threading.Tasks;
64
using IdentityModel;
75
using IdentityServer.Data;
86
using IdentityServer4.EntityFramework.DbContexts;
97
using IdentityServer4.EntityFramework.Mappers;
108
using Microsoft.AspNetCore.Identity;
11-
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
129
using Microsoft.EntityFrameworkCore;
1310
using Microsoft.Extensions.DependencyInjection;
1411

‎IdentityServer/Models/Account/AccountOptions.cs

Copy file name to clipboardExpand all lines: IdentityServer/Models/Account/AccountOptions.cs
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
52

63
namespace IdentityServer.Models.Account
74
{

‎IdentityServer/Models/Account/ExternalProvider.cs

Copy file name to clipboardExpand all lines: IdentityServer/Models/Account/ExternalProvider.cs
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
6-
namespace IdentityServer.Models.Account
1+
namespace IdentityServer.Models.Account
72
{
83
public class ExternalProvider
94
{

‎IdentityServer/Models/Account/LoggedOutViewModel.cs

Copy file name to clipboardExpand all lines: IdentityServer/Models/Account/LoggedOutViewModel.cs
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
6-
namespace IdentityServer.Models.Account
1+
namespace IdentityServer.Models.Account
72
{
83
public class LoggedOutViewModel
94
{

‎IdentityServer/Models/Account/LoginViewModel.cs

Copy file name to clipboardExpand all lines: IdentityServer/Models/Account/LoginViewModel.cs
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4-
using System.Threading.Tasks;
54

65
namespace IdentityServer.Models.Account
76
{

‎IdentityServer/Models/Account/LogoutInputModel.cs

Copy file name to clipboardExpand all lines: IdentityServer/Models/Account/LogoutInputModel.cs
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
6-
namespace IdentityServer.Models.Account
1+
namespace IdentityServer.Models.Account
72
{
83
public class LogoutInputModel
94
{

‎IdentityServer/Models/Account/RedirectViewModel.cs

Copy file name to clipboardExpand all lines: IdentityServer/Models/Account/RedirectViewModel.cs
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
6-
namespace IdentityServer.Models
1+
namespace IdentityServer.Models
72
{
83
public class RedirectViewModel
94
{

‎IdentityServer/Models/Consent/ConsentInputModel.cs

Copy file name to clipboardExpand all lines: IdentityServer/Models/Consent/ConsentInputModel.cs
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
1+
using System.Collections.Generic;
52

63
namespace IdentityServer.Models.Consent
74
{

‎IdentityServer/Models/Consent/ConsentOptions.cs

Copy file name to clipboardExpand all lines: IdentityServer/Models/Consent/ConsentOptions.cs
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
6-
namespace IdentityServer.Models.Consent
1+
namespace IdentityServer.Models.Consent
72
{
83
public class ConsentOptions
94
{

‎IdentityServer/Models/Consent/ConsentViewModel.cs

Copy file name to clipboardExpand all lines: IdentityServer/Models/Consent/ConsentViewModel.cs
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
1+
using System.Collections.Generic;
52

63
namespace IdentityServer.Models.Consent
74
{

‎IdentityServer/Models/Consent/ProcessConsentResult.cs

Copy file name to clipboardExpand all lines: IdentityServer/Models/Consent/ProcessConsentResult.cs
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
6-
namespace IdentityServer.Models.Consent
1+
namespace IdentityServer.Models.Consent
72
{
83
public class ProcessConsentResult
94
{

‎IdentityServer/Models/Grants/GrantViewModel.cs

Copy file name to clipboardExpand all lines: IdentityServer/Models/Grants/GrantViewModel.cs
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
53

64
namespace IdentityServer.Models.Grants
75
{

‎IdentityServer/Models/Grants/GrantsViewModel.cs

Copy file name to clipboardExpand all lines: IdentityServer/Models/Grants/GrantsViewModel.cs
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
1+
using System.Collections.Generic;
52

63
namespace IdentityServer.Models.Grants
74
{

‎IdentityServer/Program.cs

Copy file name to clipboardExpand all lines: IdentityServer/Program.cs
+1-7Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.IO;
4-
using System.Linq;
5-
using System.Threading.Tasks;
6-
using Microsoft.AspNetCore;
1+
using Microsoft.AspNetCore;
72
using Microsoft.AspNetCore.Hosting;
83
using Microsoft.Extensions.Configuration;
94
using Microsoft.Extensions.DependencyInjection;
10-
using Microsoft.Extensions.Logging;
115

126
namespace IdentityServer
137
{

‎IdentityServer/Startup.cs

Copy file name to clipboardExpand all lines: IdentityServer/Startup.cs
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using Microsoft.AspNetCore.Builder;
55
using Microsoft.AspNetCore.Hosting;
66
using Microsoft.AspNetCore.Identity;
7-
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
87
using Microsoft.EntityFrameworkCore;
98
using Microsoft.Extensions.Configuration;
109
using Microsoft.Extensions.DependencyInjection;

‎IdentityServer/Views/Account/Login.cshtml

Copy file name to clipboardExpand all lines: IdentityServer/Views/Account/Login.cshtml
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
@using Microsoft.AspNetCore.WebUtilities
2-
@model IdentityServer.Models.Account.LoginViewModel
1+
@model IdentityServer.Models.Account.LoginViewModel
32

43
@{
54
var dictionary = new Dictionary<string, string> { {"ReturnUrl", Model.ReturnUrl }};

‎SocialNetwork.API/Controllers/ContactsController.cs

Copy file name to clipboardExpand all lines: SocialNetwork.API/Controllers/ContactsController.cs
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
53
using Microsoft.AspNetCore.Authorization;
64
using Microsoft.AspNetCore.Mvc;
75

‎SocialNetwork.API/Program.cs

Copy file name to clipboardExpand all lines: SocialNetwork.API/Program.cs
+1-8Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.IO;
4-
using System.Linq;
5-
using System.Threading.Tasks;
6-
using Microsoft.AspNetCore;
1+
using Microsoft.AspNetCore;
72
using Microsoft.AspNetCore.Hosting;
8-
using Microsoft.Extensions.Configuration;
9-
using Microsoft.Extensions.Logging;
103

114
namespace SocialNetwork.API
125
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.