for token, &refactoring

This commit is contained in:
2018-07-16 02:38:09 +02:00
parent 4115f1ad06
commit 3d97f27dee
65 changed files with 21 additions and 145 deletions

View File

@ -1,4 +1,3 @@
using System.IO;
using System.Linq;
using System.Security.Claims;
using System.Text;

View File

@ -3,7 +3,6 @@ using Yavsc.Abstract.Identity;
namespace Yavsc.Models
{
using Models.Messaging;
public class RdvQueryProviderInfo
{

View File

@ -1,4 +1,3 @@
using System;
using System.Text;
using System.Threading.Tasks;

View File

@ -1,4 +1,3 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Models.Process

View File

@ -1,7 +1,3 @@
using System.Collections.Generic;
using Yavsc.Abstract.Workflow;
namespace Yavsc.Models
{
public interface IRequisition

View File

@ -1,5 +1,3 @@
using System.Threading.Tasks;
namespace Yavsc.Abstract.Workflow
{
public interface ITaskRunner

View File

@ -1,4 +1,3 @@
using System.Resources;
namespace Yavsc.Attributes.Validation
{

View File

@ -1,5 +1,3 @@
using System;
using System.Resources;
using Microsoft.Extensions.Localization;
public static class ResourcesHelpers {

View File

@ -1,8 +0,0 @@
using System.Collections.Generic;
namespace Yavsc {
interface IBillingService_deux {
}
}

View File

@ -3,7 +3,6 @@ namespace Yavsc.Models.Access
using System.ComponentModel.DataAnnotations.Schema;
using Models.Relationship;
using Newtonsoft.Json;
using Yavsc;
using Blog;
using Yavsc.Abstract.Identity.Security;

View File

@ -23,8 +23,6 @@
using System;
using System.ComponentModel.DataAnnotations;
using Yavsc.Abstract.Identity;
using Yavsc.Abstract.Identity;
using Yavsc.Models.Auth;
using Yavsc.Models.Relationship;
namespace Yavsc.Models.Haircut.Views

View File

@ -1,8 +1,5 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Threading.Tasks;
using Yavsc.Abstract.Interfaces;
namespace Yavsc.Server.Models.IT.SourceCode
{

View File

@ -1,7 +1,4 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace Yavsc.Models.Identity
{

View File

@ -5,8 +5,6 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Identity
{
using Yavsc;
[JsonObject]
public class GoogleCloudMobileDeclaration {

View File

@ -1,7 +1,3 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using Yavsc.Interfaces;
namespace Yavsc.Models.Identity

View File

@ -1,7 +1,4 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace Yavsc.Models.Identity
{

View File

@ -1,5 +1,3 @@
using System.Linq;
using Microsoft.Data.Entity;
using Microsoft.Extensions.Localization;
namespace Yavsc.Models.Messaging

View File

@ -1,6 +1,3 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Relationship
{
public enum LocationKind

View File

@ -1,6 +1,5 @@
using Yavsc.Abstract.Templates;
using Yavsc.Models;
using System.Threading.Tasks;
namespace Yavsc.Templates
{

View File

@ -1,5 +1,3 @@
using System.Linq;
namespace Yavsc.ViewModels.Administration
{
public class RoleInfo

View File

@ -1,6 +1,4 @@
using Yavsc.Abstract.Identity;
using Yavsc.Abstract.Identity;
using Yavsc.Models.Auth;
namespace Yavsc.ViewModels.Administration
{

View File

@ -1,3 +1,5 @@
using Yavsc.Abstract.Identity.Security;
namespace Yavsc.ViewModels.Relationship
{
public class CirclesViewModel

View File

@ -15,6 +15,7 @@ namespace Yavsc.WebApi.Controllers
using System.Linq;
using Microsoft.Data.Entity;
using Microsoft.AspNet.Identity.EntityFramework;
using Yavsc.Abstract.Identity;
[Authorize(),Route("~/api/account")]
public class ApiAccountController : Controller

View File

@ -10,10 +10,10 @@ using Microsoft.Extensions.Logging;
namespace Yavsc.Controllers
{
using System;
using Yavsc.Models.Messaging;
using Yavsc.Models;
using Yavsc.Models.Workflow;
using Yavsc.Models.Billing;
using Yavsc.Abstract.Identity;
[Produces("application/json")]
[Route("api/bookquery"), Authorize(Roles = "Performer,Administrator")]

View File

@ -3,8 +3,8 @@ using System.Security.Claims;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc;
using Microsoft.Data.Entity;
using Yavsc.Abstract.Identity;
using Yavsc.Models;
using Yavsc.Models.Messaging;
namespace Yavsc.Controllers
{

View File

@ -3,7 +3,6 @@ using System.Collections.Generic;
using Microsoft.AspNet.Mvc;
using Yavsc.Helpers;
using Yavsc.Models;
using Yavsc.Models.Workflow;
using Yavsc.Services;
using Yavsc.ViewModels.FrontOffice;

View File

@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Mvc;
using Yavsc.Services;
namespace Yavsc.ApiControllers
{

View File

@ -1,15 +1,10 @@
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Authorization;
using Microsoft.AspNet.Mvc;
using Microsoft.Extensions.Logging;
using Microsoft.Data.Entity;
using Microsoft.AspNet.Identity.EntityFramework;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Linq;
using Yavsc.Models;
using Yavsc.Models.Auth;
using Yavsc.Helpers;
using Yavsc.Abstract.Identity;
namespace Yavsc.ApiControllers.accounting
{

View File

@ -1,6 +1,4 @@
using Microsoft.AspNet.Authorization;
using System.Security.Claims;
using Yavsc.Models.IT;
using Yavsc.Server.Models.IT.SourceCode;
using Yavsc.ViewModels.Auth;

View File

@ -20,7 +20,6 @@ using Newtonsoft.Json;
namespace Yavsc.Controllers
{
using Microsoft.AspNet.Http.Authentication;
using Yavsc.Abstract.Manage;
using Yavsc.Helpers;

View File

@ -7,8 +7,8 @@ using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Mvc;
using Microsoft.Data.Entity;
using Yavsc.Abstract.Identity;
using Yavsc.Models;
using Yavsc.Models.Auth;
using Yavsc.ViewModels.Administration;
namespace Yavsc.Controllers

View File

@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Security.Claims;
using Microsoft.AspNet.Mvc;

View File

@ -13,7 +13,6 @@ namespace Yavsc.Controllers
using Yavsc.ViewModels.Workflow;
using Yavsc.Services;
using System.Threading.Tasks;
using Newtonsoft.Json;
[Authorize]
public class DoController : Controller

View File

@ -12,7 +12,6 @@ using Microsoft.Extensions.OptionsModel;
namespace Yavsc.Controllers
{
using Helpers;
using Models;
using Models.Billing;
using Models.Workflow;

View File

@ -11,7 +11,6 @@ using Microsoft.Extensions.OptionsModel;
using Yavsc.Models;
using Yavsc.ViewModels.Auth;
using Microsoft.AspNet.Mvc.Rendering;
using Yavsc.ViewModels.Blogspot;
using Yavsc.Models.Blog;
// For more information on enabling Web API for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860

View File

@ -1,9 +1,6 @@
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using System;
using System.Diagnostics;
using System.IO;
using Microsoft.AspNet.Authorization;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Rendering;

View File

@ -1,4 +1,3 @@
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Rendering;

View File

@ -3,7 +3,6 @@
// paul schneider <paul@pschneider.fr> 19/06/2018 15:58 20182018 6 19
// */
using System;
using System.IO;
using System.Diagnostics;
using System.Threading.Tasks;

View File

@ -2,10 +2,10 @@ using System;
using System.Linq;
using System.Collections.Generic;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication;
using Yavsc.ViewModels.Account;
namespace Yavsc.Helpers {
namespace Yavsc.Helpers
{
public static class HttpContextExtensions {
public static IEnumerable<YaAuthenticationDescription> GetExternalProviders(this HttpContext context) {
if (context == null) {

View File

@ -7,6 +7,7 @@ namespace Yavsc.Helpers
using Yavsc.Models.Haircut;
using Yavsc.Models;
using Yavsc.Models.Billing;
using Yavsc.Abstract.Identity;
public static class EventHelpers
{

View File

@ -13,7 +13,6 @@ using Yavsc.Exceptions;
using Yavsc.Models;
using Yavsc.Models.FileSystem;
using Yavsc.ViewModels;
using Yavsc.ViewModels.UserFiles;
namespace Yavsc.Helpers
{

View File

@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Mvc;
using Microsoft.Data.Entity;
namespace Yavsc.Server.Helpers
{

View File

@ -5,7 +5,6 @@ namespace Yavsc.Helpers
using System.Collections.Generic;
using System.Linq;
using Microsoft.Data.Entity;
using Models.Workflow;
using Yavsc.Models;
using Yavsc.Services;
using Yavsc.ViewModels.FrontOffice;

View File

@ -1,7 +1,6 @@
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Migrations;
using Yavsc.Models;

View File

@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using Microsoft.Data.Entity.Migrations;
namespace Yavsc.Migrations

View File

@ -1,7 +1,6 @@
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Migrations;
using Yavsc.Models;

View File

@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using Microsoft.Data.Entity.Migrations;
namespace Yavsc.Migrations

View File

@ -1,7 +1,6 @@
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Migrations;
using Yavsc.Models;

View File

@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using Microsoft.Data.Entity.Migrations;
using Yavsc.Models.Relationship;
namespace Yavsc.Migrations
{

View File

@ -1,7 +1,6 @@
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Migrations;
using Yavsc.Models;

View File

@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using Microsoft.Data.Entity.Migrations;
namespace Yavsc.Migrations

View File

@ -1,7 +1,6 @@
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Migrations;
using Yavsc.Models;

View File

@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using Microsoft.Data.Entity.Migrations;
namespace Yavsc.Migrations

View File

@ -1,8 +1,6 @@
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Migrations;
using Yavsc.Models;
namespace Yavsc.Migrations

View File

@ -35,8 +35,8 @@ namespace Yavsc.Models
using Payment;
using Yavsc.Models.Calendar;
using Blog;
using Yavsc.Server.Helpers;
using Newtonsoft.Json.Linq;
using Yavsc.Abstract.Identity;
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{

View File

@ -4,7 +4,6 @@ using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Yavsc.Abstract.Workflow;
using Yavsc.Models;
using Microsoft.Data.Entity;

View File

@ -8,21 +8,16 @@ using Yavsc.Templates;
using Microsoft.CodeAnalysis;
using Microsoft.Extensions.Localization;
using Microsoft.Extensions.Logging;
using Microsoft.CSharp;
using Microsoft.AspNet.Identity.EntityFramework;
using Newtonsoft.Json;
using Microsoft.AspNet.Razor.Parser;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Emit;
using Yavsc.Models;
using Yavsc.Models.Identity;
using Yavsc.Services;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Reflection;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Emit;
using Microsoft.Extensions.Logging.Console;
using Yavsc.Abstract.Templates;
namespace Yavsc.Lib

View File

@ -2,10 +2,8 @@
// /*
// paul 21/06/2018 11:27 20182018 6 21
// */
using System;
using Yavsc.Server.Models.IT.SourceCode;
using Yavsc.Server.Models.IT;
using System.Threading.Tasks;
using System.Diagnostics;
using System.IO;

View File

@ -62,7 +62,7 @@ namespace Yavsc.Services
smtpSettings.Host,
smtpSettings.Port,
SecureSocketOptions.None);
sc.Send(msg);
await sc.SendAsync(msg);
model.MessageId = msg.MessageId;
}
}

View File

@ -1,27 +0,0 @@
using System.Threading.Tasks;
using MailKit.Net.Smtp;
using MimeKit;
using MailKit.Security;
using System;
using Yavsc.Models.Messaging;
using Yavsc.Models;
using Yavsc.Models.Google.Messaging;
using System.Collections.Generic;
using Yavsc.Models.Haircut;
using Yavsc.Interfaces.Workflow;
using System.Linq;
using Newtonsoft.Json;
using Yavsc.Server.Helpers;
using Yavsc.Abstract.Manage;
using Microsoft.AspNet.Identity;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.OptionsModel;
namespace Yavsc.Services
{
// This class is used by the application to send Email and SMS
// when you turn on two-factor authentication in ASP.NET Identity.
// For more details see this link http://go.microsoft.com/fwlink/?LinkID=532713
}

View File

@ -9,8 +9,6 @@ using Microsoft.AspNet.Authorization;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Diagnostics;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Localization;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Filters;
@ -35,7 +33,6 @@ namespace Yavsc
using Services;
using ViewModels.Auth.Handlers;
using Yavsc.Abstract.FileSystem;
using Yavsc.Server.Helpers;
using static System.Environment;
public partial class Startup

View File

@ -7,6 +7,8 @@ namespace Yavsc.ViewComponents
using Models;
using ViewModels.Controls;
using ViewModels.Relationship;
using Yavsc.Abstract.Identity.Security;
public class CirclesControlViewComponent : ViewComponent
{
ApplicationDbContext dbContext;

View File

@ -1,6 +1,4 @@
using System;
using System.Linq;
using Yavsc.Models;
using Yavsc.Models.Workflow;
namespace Yavsc.ViewModels.FrontOffice

View File

@ -44,15 +44,15 @@
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta4",
"Newtonsoft.Json": "9.0.1",
"Yavsc": {
"version": "1.0.5-rc21-beta8",
"version": "1.0.5-rc21-beta9",
"target": "package"
},
"Yavsc.Abstract": {
"version": "1.0.5-rc21-beta8",
"version": "1.0.5-rc21-beta9",
"target": "package"
},
"Yavsc.Server": {
"version": "1.0.5-rc21-beta8",
"version": "1.0.5-rc21-beta9",
"target": "package"
},
"Yavsc.Lib.Portable": "1.0.2"

View File

@ -1 +1 @@
21-beta8
21-beta9