From 62069d3cd779e693064b0e37d4d022c8ed98da7a Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Thu, 7 Jul 2016 15:45:21 +0200 Subject: [PATCH] unsed refs --- Yavsc.Api/Model/Identity/MobileAppDeclaration.cs | 10 ++++++---- Yavsc/Migrations/20160702195348_GCMinfos.Designer.cs | 1 - Yavsc/Migrations/20160702195348_GCMinfos.cs | 2 -- Yavsc/Startup/Startup.cs | 4 +++- Yavsc/ViewModels/Auth/AuthorisationHandlers.cs | 1 - Yavsc/ViewModels/Auth/AuthorisationView.cs | 3 +-- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Yavsc.Api/Model/Identity/MobileAppDeclaration.cs b/Yavsc.Api/Model/Identity/MobileAppDeclaration.cs index e53db50c..debd894a 100644 --- a/Yavsc.Api/Model/Identity/MobileAppDeclaration.cs +++ b/Yavsc.Api/Model/Identity/MobileAppDeclaration.cs @@ -1,9 +1,11 @@ using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using Yavsc.Models; public class GoogleCloudMobileDeclaration { + public GoogleCloudMobileDeclaration() { + + } + public string GCMRegistrationId { get; set; } public string DeviceOwnerId { get; set; } @@ -14,7 +16,7 @@ public class GoogleCloudMobileDeclaration { public string Model { get; set; } public string Platform { get; set; } public string Version { get; set; } - + /* [ForeignKeyAttribute("DeviceOwnerId")] - public virtual ApplicationUser DeviceOwner { get; set; } + public virtual ApplicationUser DeviceOwner { get; set; } */ } diff --git a/Yavsc/Migrations/20160702195348_GCMinfos.Designer.cs b/Yavsc/Migrations/20160702195348_GCMinfos.Designer.cs index 6c64e2cb..a95d5393 100644 --- a/Yavsc/Migrations/20160702195348_GCMinfos.Designer.cs +++ b/Yavsc/Migrations/20160702195348_GCMinfos.Designer.cs @@ -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; diff --git a/Yavsc/Migrations/20160702195348_GCMinfos.cs b/Yavsc/Migrations/20160702195348_GCMinfos.cs index 59d82760..d980bd80 100644 --- a/Yavsc/Migrations/20160702195348_GCMinfos.cs +++ b/Yavsc/Migrations/20160702195348_GCMinfos.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using Microsoft.Data.Entity.Migrations; namespace Yavsc.Migrations diff --git a/Yavsc/Startup/Startup.cs b/Yavsc/Startup/Startup.cs index e7e9a0cf..a8c53a48 100755 --- a/Yavsc/Startup/Startup.cs +++ b/Yavsc/Startup/Startup.cs @@ -198,6 +198,8 @@ namespace Yavsc options.ResourcesPath = "Resources"; }).AddDataAnnotationsLocalization(); + + services.AddScoped(); // Inject ticket formatting @@ -277,7 +279,7 @@ namespace Yavsc options.AuthenticationDescriptions.Clear(); options.AutomaticAuthentication = false; }); - + Authority = siteSettings.Value.Authority; Audience = siteSettings.Value.Audience; diff --git a/Yavsc/ViewModels/Auth/AuthorisationHandlers.cs b/Yavsc/ViewModels/Auth/AuthorisationHandlers.cs index 951f49ab..b45ef507 100644 --- a/Yavsc/ViewModels/Auth/AuthorisationHandlers.cs +++ b/Yavsc/ViewModels/Auth/AuthorisationHandlers.cs @@ -3,7 +3,6 @@ using System.IO; using System.Security.Claims; using Microsoft.AspNet.Authorization; using Yavsc.Models; -using Yavsc.Models.Billing; using Yavsc.Models.Booking; namespace Yavsc { diff --git a/Yavsc/ViewModels/Auth/AuthorisationView.cs b/Yavsc/ViewModels/Auth/AuthorisationView.cs index 0342e083..d559b2cc 100644 --- a/Yavsc/ViewModels/Auth/AuthorisationView.cs +++ b/Yavsc/ViewModels/Auth/AuthorisationView.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using Microsoft.Extensions.Primitives; + namespace Yavsc.Models.Auth {