mirror of https://github.com/abpframework/abp.git
44 changed files with 3811 additions and 58 deletions
@ -0,0 +1,27 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> |
|||
<metadata> |
|||
<id>Volo.Abp.Account.Web</id> |
|||
<version>0.2.0</version> |
|||
<authors>Volo.Abp.Account.Web</authors> |
|||
<owners>Volo.Abp.Account.Web</owners> |
|||
<requireLicenseAcceptance>false</requireLicenseAcceptance> |
|||
<licenseUrl>https://github.com/aspnetzero/abp/blob/master/LICENSE</licenseUrl> |
|||
<projectUrl>http://abp.io/</projectUrl> |
|||
<iconUrl>http://www.aspnetboilerplate.com/images/abp_nupkg.png</iconUrl> |
|||
<description>Package Description</description> |
|||
<repository type="git" url="https://github.com/aspnetzero/abp/" /> |
|||
<dependencies> |
|||
<group targetFramework=".NETStandard2.0"> |
|||
<dependency id="Volo.Abp.Account.Application.Contracts" version="0.2.0" exclude="Build,Analyzers" /> |
|||
<dependency id="Volo.Abp.AspNetCore.Mvc.UI.Bootstrap" version="0.2.0" exclude="Build,Analyzers" /> |
|||
<dependency id="Volo.Abp.Identity.Domain" version="0.2.0" exclude="Build,Analyzers" /> |
|||
</group> |
|||
</dependencies> |
|||
<contentFiles> |
|||
<files include="any/netstandard2.0/Pages/Account/Login.cshtml" buildAction="Content" /> |
|||
<files include="any/netstandard2.0/Pages/Account/Register.cshtml" buildAction="Content" /> |
|||
<files include="any/netstandard2.0/Properties/launchSettings.json" buildAction="Content" /> |
|||
</contentFiles> |
|||
</metadata> |
|||
</package> |
|||
@ -0,0 +1,10 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"> |
|||
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /> |
|||
<Default Extension="psmdcp" ContentType="application/vnd.openxmlformats-package.core-properties+xml" /> |
|||
<Default Extension="pdb" ContentType="application/octet" /> |
|||
<Default Extension="dll" ContentType="application/octet" /> |
|||
<Default Extension="cshtml" ContentType="application/octet" /> |
|||
<Default Extension="json" ContentType="application/octet" /> |
|||
<Default Extension="nuspec" ContentType="application/octet" /> |
|||
</Types> |
|||
@ -0,0 +1,5 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> |
|||
<Relationship Type="http://schemas.microsoft.com/packaging/2010/07/manifest" Target="/Volo.Abp.Account.Web.nuspec" Id="Rfdd677b0690f4393" /> |
|||
<Relationship Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="/package/services/metadata/core-properties/d0b9dbb571f046678dd82d6354463c78.psmdcp" Id="Redc92efae9c749d6" /> |
|||
</Relationships> |
|||
@ -0,0 +1,45 @@ |
|||
@page |
|||
@model Volo.Abp.Account.Web.Pages.Account.LoginModel |
|||
<div class="row"> |
|||
<div class="col-md-6"> |
|||
<div class="col-md-4"> |
|||
<form method="post"> |
|||
<div class="form-group"> |
|||
<label for="UsernameOrEmailAddress">Username or email address</label> |
|||
<input type="text" class="form-control" id="UsernameOrEmailAddress" name="UsernameOrEmailAddress"> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label for="Password">Password</label> |
|||
<input type="password" class="form-control" id="Password" name="Password"> |
|||
</div> |
|||
<div class="form-check"> |
|||
<label class="form-check-label"> |
|||
<input type="checkbox" name="RememberMe" value="true" checked="checked"> |
|||
Remember me |
|||
</label> |
|||
</div> |
|||
<button type="submit" class="btn btn-primary">Login</button> |
|||
</form> |
|||
|
|||
<div style="padding-top: 20px"> |
|||
<a href="@Url.Page("./Register", new { returnUrl = Model.ReturnUrl, returnUrlHash = Model.ReturnUrlHash })">Register</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
@if (Model.ExternalLogins.Any()) |
|||
{ |
|||
<div class="col-md-6"> |
|||
<h4>Use another service to log in.</h4> |
|||
<form asp-page="./Login" asp-page-handler="ExternalLogin" asp-route-returnUrl="@Model.ReturnUrl" asp-route-returnUrlHash="@Model.ReturnUrlHash" method="post"> |
|||
<div> |
|||
@foreach (var provider in Model.ExternalLogins) |
|||
{ |
|||
<button type="submit" class="btn btn-primary" name="provider" value="@provider.Name" title="Log in using your @provider.DisplayName account">@provider.DisplayName</button> |
|||
} |
|||
</div> |
|||
</form> |
|||
</div> |
|||
} |
|||
|
|||
</div> |
|||
@ -0,0 +1,21 @@ |
|||
@page |
|||
@model Volo.Abp.Account.Web.Pages.Account.RegisterModel |
|||
<div class="row"> |
|||
<div class="col-md-3"> |
|||
<form method="post"> |
|||
<div class="form-group"> |
|||
<label for="UserName">Username</label> |
|||
<input type="text" class="form-control" id="UserName" name="UserName" required> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label for="EmailAddress">Email address</label> |
|||
<input type="email" class="form-control" id="EmailAddress" name="EmailAddress" required> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label for="Password">Password</label> |
|||
<input type="password" class="form-control" id="Password" name="Password" required> |
|||
</div> |
|||
<button type="submit" class="btn btn-primary">Register</button> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
@ -0,0 +1,27 @@ |
|||
{ |
|||
"iisSettings": { |
|||
"windowsAuthentication": false, |
|||
"anonymousAuthentication": true, |
|||
"iisExpress": { |
|||
"applicationUrl": "http://localhost:53098/", |
|||
"sslPort": 0 |
|||
} |
|||
}, |
|||
"profiles": { |
|||
"IIS Express": { |
|||
"commandName": "IISExpress", |
|||
"launchBrowser": true, |
|||
"environmentVariables": { |
|||
"ASPNETCORE_ENVIRONMENT": "Development" |
|||
} |
|||
}, |
|||
"Volo.Abp.Account.Web": { |
|||
"commandName": "Project", |
|||
"launchBrowser": true, |
|||
"environmentVariables": { |
|||
"ASPNETCORE_ENVIRONMENT": "Development" |
|||
}, |
|||
"applicationUrl": "http://localhost:53099/" |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,45 @@ |
|||
@page |
|||
@model Volo.Abp.Account.Web.Pages.Account.LoginModel |
|||
<div class="row"> |
|||
<div class="col-md-6"> |
|||
<div class="col-md-4"> |
|||
<form method="post"> |
|||
<div class="form-group"> |
|||
<label for="UsernameOrEmailAddress">Username or email address</label> |
|||
<input type="text" class="form-control" id="UsernameOrEmailAddress" name="UsernameOrEmailAddress"> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label for="Password">Password</label> |
|||
<input type="password" class="form-control" id="Password" name="Password"> |
|||
</div> |
|||
<div class="form-check"> |
|||
<label class="form-check-label"> |
|||
<input type="checkbox" name="RememberMe" value="true" checked="checked"> |
|||
Remember me |
|||
</label> |
|||
</div> |
|||
<button type="submit" class="btn btn-primary">Login</button> |
|||
</form> |
|||
|
|||
<div style="padding-top: 20px"> |
|||
<a href="@Url.Page("./Register", new { returnUrl = Model.ReturnUrl, returnUrlHash = Model.ReturnUrlHash })">Register</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
@if (Model.ExternalLogins.Any()) |
|||
{ |
|||
<div class="col-md-6"> |
|||
<h4>Use another service to log in.</h4> |
|||
<form asp-page="./Login" asp-page-handler="ExternalLogin" asp-route-returnUrl="@Model.ReturnUrl" asp-route-returnUrlHash="@Model.ReturnUrlHash" method="post"> |
|||
<div> |
|||
@foreach (var provider in Model.ExternalLogins) |
|||
{ |
|||
<button type="submit" class="btn btn-primary" name="provider" value="@provider.Name" title="Log in using your @provider.DisplayName account">@provider.DisplayName</button> |
|||
} |
|||
</div> |
|||
</form> |
|||
</div> |
|||
} |
|||
|
|||
</div> |
|||
@ -0,0 +1,21 @@ |
|||
@page |
|||
@model Volo.Abp.Account.Web.Pages.Account.RegisterModel |
|||
<div class="row"> |
|||
<div class="col-md-3"> |
|||
<form method="post"> |
|||
<div class="form-group"> |
|||
<label for="UserName">Username</label> |
|||
<input type="text" class="form-control" id="UserName" name="UserName" required> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label for="EmailAddress">Email address</label> |
|||
<input type="email" class="form-control" id="EmailAddress" name="EmailAddress" required> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label for="Password">Password</label> |
|||
<input type="password" class="form-control" id="Password" name="Password" required> |
|||
</div> |
|||
<button type="submit" class="btn btn-primary">Register</button> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
@ -0,0 +1,27 @@ |
|||
{ |
|||
"iisSettings": { |
|||
"windowsAuthentication": false, |
|||
"anonymousAuthentication": true, |
|||
"iisExpress": { |
|||
"applicationUrl": "http://localhost:53098/", |
|||
"sslPort": 0 |
|||
} |
|||
}, |
|||
"profiles": { |
|||
"IIS Express": { |
|||
"commandName": "IISExpress", |
|||
"launchBrowser": true, |
|||
"environmentVariables": { |
|||
"ASPNETCORE_ENVIRONMENT": "Development" |
|||
} |
|||
}, |
|||
"Volo.Abp.Account.Web": { |
|||
"commandName": "Project", |
|||
"launchBrowser": true, |
|||
"environmentVariables": { |
|||
"ASPNETCORE_ENVIRONMENT": "Development" |
|||
}, |
|||
"applicationUrl": "http://localhost:53099/" |
|||
} |
|||
} |
|||
} |
|||
Binary file not shown.
@ -0,0 +1,9 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<coreProperties xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"> |
|||
<dc:creator>Volo.Abp.Account.Web</dc:creator> |
|||
<dc:description>Package Description</dc:description> |
|||
<dc:identifier>Volo.Abp.Account.Web</dc:identifier> |
|||
<version>0.2.0</version> |
|||
<keywords></keywords> |
|||
<lastModifiedBy>NuGet.Build.Tasks.Pack, Version=4.5.0.4, Culture=neutral, PublicKeyToken=31bf3856ad364e35;</lastModifiedBy> |
|||
</coreProperties> |
|||
@ -0,0 +1,13 @@ |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Volo.Abp.AspNetCore.Mvc; |
|||
|
|||
namespace Volo.Abp.Identity.HttpApi.Host.Controllers |
|||
{ |
|||
public class HomeController : AbpController |
|||
{ |
|||
public IActionResult Index() |
|||
{ |
|||
return Redirect("/swagger"); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,21 @@ |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using Volo.Abp.Permissions.EntityFrameworkCore; |
|||
|
|||
namespace MicroserviceDemo.PermissionService.Db |
|||
{ |
|||
public class MigrationDbContext : AbpDbContext<MigrationDbContext> |
|||
{ |
|||
public MigrationDbContext(DbContextOptions<MigrationDbContext> options) |
|||
: base(options) |
|||
{ |
|||
} |
|||
|
|||
protected override void OnModelCreating(ModelBuilder modelBuilder) |
|||
{ |
|||
base.OnModelCreating(modelBuilder); |
|||
|
|||
modelBuilder.ConfigureAbpPermissions(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.EntityFrameworkCore.Design; |
|||
|
|||
namespace MicroserviceDemo.PermissionService.Db |
|||
{ |
|||
/* This class is needed for EF Core command line tooling */ |
|||
|
|||
public class MigrationDbContextFactory : IDesignTimeDbContextFactory<MigrationDbContext> |
|||
{ |
|||
public MigrationDbContext CreateDbContext(string[] args) |
|||
{ |
|||
var builder = new DbContextOptionsBuilder<MigrationDbContext>(); |
|||
builder.UseSqlServer("Server=localhost;Database=MicroservicesDemo.Permissions;Trusted_Connection=True;MultipleActiveResultSets=true"); |
|||
return new MigrationDbContext(builder.Options); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,444 @@ |
|||
2018-02-26 14:20:04.138 +03:00 [Information] Loaded modules: |
|||
2018-02-26 14:20:04.190 +03:00 [Information] - Volo.Abp.Security.AbpSecurityModule |
|||
2018-02-26 14:20:04.190 +03:00 [Information] - Volo.Abp.Authorization.AbpAuthorizationModule |
|||
2018-02-26 14:20:04.190 +03:00 [Information] - Volo.Abp.Guids.AbpGuidsModule |
|||
2018-02-26 14:20:04.190 +03:00 [Information] - Volo.Abp.Data.AbpDataModule |
|||
2018-02-26 14:20:04.190 +03:00 [Information] - Volo.Abp.ObjectMapping.AbpObjectMappingModule |
|||
2018-02-26 14:20:04.190 +03:00 [Information] - Volo.Abp.Settings.AbpSettingsModule |
|||
2018-02-26 14:20:04.190 +03:00 [Information] - Volo.Abp.MultiTenancy.AbpMultiTenancyAbstractionsModule |
|||
2018-02-26 14:20:04.190 +03:00 [Information] - Volo.Abp.Threading.AbpThreadingModule |
|||
2018-02-26 14:20:04.190 +03:00 [Information] - Volo.Abp.EventBus.AbpEventBusModule |
|||
2018-02-26 14:20:04.190 +03:00 [Information] - Volo.Abp.Validation.AbpValidationModule |
|||
2018-02-26 14:20:04.190 +03:00 [Information] - Volo.Abp.Http.AbpHttpAbstractionsModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.AbpDddModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsDomainSharedModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.Serialization.AbpSerializationModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.Caching.AbpCachingModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.Timing.AbpTimingModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.Json.AbpJsonModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsDomainModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsApplicationContractsModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsApplicationModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.Localization.AbpLocalizationModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.Session.AbpSessionModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.AbpCommonModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.Permissions.EntityFrameworkCore.AbpPermissionsEntityFrameworkCoreModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.Http.AbpHttpModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.AspNetCore.AbpAspNetCoreModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.Ui.AbpUiModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule |
|||
2018-02-26 14:20:04.191 +03:00 [Information] - MicroserviceDemo.PermissionService.MicroservicesDemoPermissionServiceModule |
|||
2018-02-26 14:20:04.206 +03:00 [Information] Initialized all modules. |
|||
2018-02-26 14:20:32.540 +03:00 [Information] Loaded modules: |
|||
2018-02-26 14:20:32.582 +03:00 [Information] - Volo.Abp.Security.AbpSecurityModule |
|||
2018-02-26 14:20:32.582 +03:00 [Information] - Volo.Abp.Authorization.AbpAuthorizationModule |
|||
2018-02-26 14:20:32.582 +03:00 [Information] - Volo.Abp.Guids.AbpGuidsModule |
|||
2018-02-26 14:20:32.582 +03:00 [Information] - Volo.Abp.Data.AbpDataModule |
|||
2018-02-26 14:20:32.582 +03:00 [Information] - Volo.Abp.ObjectMapping.AbpObjectMappingModule |
|||
2018-02-26 14:20:32.582 +03:00 [Information] - Volo.Abp.Settings.AbpSettingsModule |
|||
2018-02-26 14:20:32.582 +03:00 [Information] - Volo.Abp.MultiTenancy.AbpMultiTenancyAbstractionsModule |
|||
2018-02-26 14:20:32.582 +03:00 [Information] - Volo.Abp.Threading.AbpThreadingModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.EventBus.AbpEventBusModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Validation.AbpValidationModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Http.AbpHttpAbstractionsModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.AbpDddModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsDomainSharedModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Serialization.AbpSerializationModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Caching.AbpCachingModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Timing.AbpTimingModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Json.AbpJsonModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsDomainModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsApplicationContractsModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsApplicationModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Localization.AbpLocalizationModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Session.AbpSessionModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.AbpCommonModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Permissions.EntityFrameworkCore.AbpPermissionsEntityFrameworkCoreModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Http.AbpHttpModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.AspNetCore.AbpAspNetCoreModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.Ui.AbpUiModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule |
|||
2018-02-26 14:20:32.583 +03:00 [Information] - MicroserviceDemo.PermissionService.MicroservicesDemoPermissionServiceModule |
|||
2018-02-26 14:20:32.594 +03:00 [Information] Initialized all modules. |
|||
2018-02-26 14:28:34.616 +03:00 [Information] Loaded modules: |
|||
2018-02-26 14:28:34.664 +03:00 [Information] - Volo.Abp.Security.AbpSecurityModule |
|||
2018-02-26 14:28:34.664 +03:00 [Information] - Volo.Abp.Authorization.AbpAuthorizationModule |
|||
2018-02-26 14:28:34.665 +03:00 [Information] - Volo.Abp.Guids.AbpGuidsModule |
|||
2018-02-26 14:28:34.665 +03:00 [Information] - Volo.Abp.Data.AbpDataModule |
|||
2018-02-26 14:28:34.665 +03:00 [Information] - Volo.Abp.ObjectMapping.AbpObjectMappingModule |
|||
2018-02-26 14:28:34.665 +03:00 [Information] - Volo.Abp.Settings.AbpSettingsModule |
|||
2018-02-26 14:28:34.665 +03:00 [Information] - Volo.Abp.MultiTenancy.AbpMultiTenancyAbstractionsModule |
|||
2018-02-26 14:28:34.665 +03:00 [Information] - Volo.Abp.Threading.AbpThreadingModule |
|||
2018-02-26 14:28:34.665 +03:00 [Information] - Volo.Abp.EventBus.AbpEventBusModule |
|||
2018-02-26 14:28:34.665 +03:00 [Information] - Volo.Abp.Validation.AbpValidationModule |
|||
2018-02-26 14:28:34.665 +03:00 [Information] - Volo.Abp.Http.AbpHttpAbstractionsModule |
|||
2018-02-26 14:28:34.665 +03:00 [Information] - Volo.Abp.AbpDddModule |
|||
2018-02-26 14:28:34.665 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsDomainSharedModule |
|||
2018-02-26 14:28:34.666 +03:00 [Information] - Volo.Abp.Serialization.AbpSerializationModule |
|||
2018-02-26 14:28:34.666 +03:00 [Information] - Volo.Abp.Caching.AbpCachingModule |
|||
2018-02-26 14:28:34.666 +03:00 [Information] - Volo.Abp.Timing.AbpTimingModule |
|||
2018-02-26 14:28:34.666 +03:00 [Information] - Volo.Abp.Json.AbpJsonModule |
|||
2018-02-26 14:28:34.666 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsDomainModule |
|||
2018-02-26 14:28:34.666 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsApplicationContractsModule |
|||
2018-02-26 14:28:34.666 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsApplicationModule |
|||
2018-02-26 14:28:34.666 +03:00 [Information] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule |
|||
2018-02-26 14:28:34.666 +03:00 [Information] - Volo.Abp.Localization.AbpLocalizationModule |
|||
2018-02-26 14:28:34.666 +03:00 [Information] - Volo.Abp.Session.AbpSessionModule |
|||
2018-02-26 14:28:34.666 +03:00 [Information] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule |
|||
2018-02-26 14:28:34.667 +03:00 [Information] - Volo.Abp.AbpCommonModule |
|||
2018-02-26 14:28:34.667 +03:00 [Information] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule |
|||
2018-02-26 14:28:34.667 +03:00 [Information] - Volo.Abp.Permissions.EntityFrameworkCore.AbpPermissionsEntityFrameworkCoreModule |
|||
2018-02-26 14:28:34.667 +03:00 [Information] - Volo.Abp.Http.AbpHttpModule |
|||
2018-02-26 14:28:34.667 +03:00 [Information] - Volo.Abp.AspNetCore.AbpAspNetCoreModule |
|||
2018-02-26 14:28:34.667 +03:00 [Information] - Volo.Abp.Ui.AbpUiModule |
|||
2018-02-26 14:28:34.667 +03:00 [Information] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule |
|||
2018-02-26 14:28:34.667 +03:00 [Information] - MicroserviceDemo.PermissionService.MicroservicesDemoPermissionServiceModule |
|||
2018-02-26 14:28:35.005 +03:00 [Information] Initialized all modules. |
|||
2018-02-26 14:28:35.379 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/ |
|||
2018-02-26 14:28:35.545 +03:00 [Information] Executing action method "Volo.Abp.Identity.HttpApi.Host.Controllers.HomeController.Index (MicroserviceDemo.PermissionService)" with arguments (null) - ModelState is Valid |
|||
2018-02-26 14:28:35.559 +03:00 [Information] Executing RedirectResult, redirecting to "/swagger". |
|||
2018-02-26 14:28:35.565 +03:00 [Information] Executed action "Volo.Abp.Identity.HttpApi.Host.Controllers.HomeController.Index (MicroserviceDemo.PermissionService)" in 44.6454ms |
|||
2018-02-26 14:28:35.570 +03:00 [Information] Request finished in 205.9559ms 302 |
|||
2018-02-26 14:28:35.585 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger |
|||
2018-02-26 14:28:35.586 +03:00 [Information] Request finished in 1.6656ms 301 |
|||
2018-02-26 14:28:35.594 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/ |
|||
2018-02-26 14:28:35.613 +03:00 [Information] Request finished in 18.0859ms 200 text/html |
|||
2018-02-26 14:28:35.647 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/swagger-ui.css |
|||
2018-02-26 14:28:35.650 +03:00 [Information] Sending file. Request path: '"/swagger-ui.css"'. Physical path: '"N/A"' |
|||
2018-02-26 14:28:35.650 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/swagger-ui-bundle.js |
|||
2018-02-26 14:28:35.651 +03:00 [Information] Sending file. Request path: '"/swagger-ui-bundle.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:28:35.651 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/swagger-ui-standalone-preset.js |
|||
2018-02-26 14:28:35.651 +03:00 [Information] Sending file. Request path: '"/swagger-ui-standalone-preset.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:28:35.654 +03:00 [Information] Request finished in 7.3121ms 200 text/css |
|||
2018-02-26 14:28:35.673 +03:00 [Information] Request finished in 21.8157ms 200 application/javascript |
|||
2018-02-26 14:28:35.705 +03:00 [Information] Request finished in 54.5353ms 200 application/javascript |
|||
2018-02-26 14:28:41.463 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/favicon-16x16.png |
|||
2018-02-26 14:28:41.463 +03:00 [Information] Sending file. Request path: '"/favicon-16x16.png"'. Physical path: '"N/A"' |
|||
2018-02-26 14:28:41.464 +03:00 [Information] Request finished in 1.7601ms 200 image/png |
|||
2018-02-26 14:28:41.852 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/v1/swagger.json |
|||
2018-02-26 14:28:42.018 +03:00 [Error] Connection id ""0HLBT1G9E99SA"", Request id ""0HLBT1G9E99SA:00000002"": An unhandled exception was thrown by the application. |
|||
System.NotSupportedException: Ambiguous HTTP method for action - Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc). Actions require an explicit HttpMethod binding for Swagger 2.0 |
|||
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreatePathItem(IEnumerable`1 apiDescriptions, ISchemaRegistry schemaRegistry) |
|||
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) |
|||
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath, String[] schemes) |
|||
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.<Invoke>d__6.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.<Invoke>d__11.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame`1.<ProcessRequestsAsync>d__2.MoveNext() |
|||
2018-02-26 14:28:42.022 +03:00 [Information] Request finished in 169.9037ms 500 |
|||
2018-02-26 14:29:02.649 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/v1/swagger.json |
|||
2018-02-26 14:29:02.670 +03:00 [Error] Connection id ""0HLBT1G9E99S9"", Request id ""0HLBT1G9E99S9:00000002"": An unhandled exception was thrown by the application. |
|||
System.NotSupportedException: Ambiguous HTTP method for action - Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc). Actions require an explicit HttpMethod binding for Swagger 2.0 |
|||
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreatePathItem(IEnumerable`1 apiDescriptions, ISchemaRegistry schemaRegistry) |
|||
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) |
|||
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath, String[] schemes) |
|||
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.<Invoke>d__6.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.<Invoke>d__11.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame`1.<ProcessRequestsAsync>d__2.MoveNext() |
|||
2018-02-26 14:29:02.675 +03:00 [Information] Request finished in 26.5424ms 500 |
|||
2018-02-26 14:29:02.710 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/favicon.ico |
|||
2018-02-26 14:29:02.711 +03:00 [Information] Request finished in 1.3872ms 404 |
|||
2018-02-26 14:29:21.136 +03:00 [Information] Loaded modules: |
|||
2018-02-26 14:29:21.185 +03:00 [Information] - Volo.Abp.Security.AbpSecurityModule |
|||
2018-02-26 14:29:21.185 +03:00 [Information] - Volo.Abp.Authorization.AbpAuthorizationModule |
|||
2018-02-26 14:29:21.185 +03:00 [Information] - Volo.Abp.Guids.AbpGuidsModule |
|||
2018-02-26 14:29:21.185 +03:00 [Information] - Volo.Abp.Data.AbpDataModule |
|||
2018-02-26 14:29:21.185 +03:00 [Information] - Volo.Abp.ObjectMapping.AbpObjectMappingModule |
|||
2018-02-26 14:29:21.185 +03:00 [Information] - Volo.Abp.Settings.AbpSettingsModule |
|||
2018-02-26 14:29:21.185 +03:00 [Information] - Volo.Abp.MultiTenancy.AbpMultiTenancyAbstractionsModule |
|||
2018-02-26 14:29:21.185 +03:00 [Information] - Volo.Abp.Threading.AbpThreadingModule |
|||
2018-02-26 14:29:21.186 +03:00 [Information] - Volo.Abp.EventBus.AbpEventBusModule |
|||
2018-02-26 14:29:21.186 +03:00 [Information] - Volo.Abp.Validation.AbpValidationModule |
|||
2018-02-26 14:29:21.186 +03:00 [Information] - Volo.Abp.Http.AbpHttpAbstractionsModule |
|||
2018-02-26 14:29:21.186 +03:00 [Information] - Volo.Abp.AbpDddModule |
|||
2018-02-26 14:29:21.186 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsDomainSharedModule |
|||
2018-02-26 14:29:21.186 +03:00 [Information] - Volo.Abp.Serialization.AbpSerializationModule |
|||
2018-02-26 14:29:21.186 +03:00 [Information] - Volo.Abp.Caching.AbpCachingModule |
|||
2018-02-26 14:29:21.186 +03:00 [Information] - Volo.Abp.Timing.AbpTimingModule |
|||
2018-02-26 14:29:21.186 +03:00 [Information] - Volo.Abp.Json.AbpJsonModule |
|||
2018-02-26 14:29:21.186 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsDomainModule |
|||
2018-02-26 14:29:21.186 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsApplicationContractsModule |
|||
2018-02-26 14:29:21.186 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsApplicationModule |
|||
2018-02-26 14:29:21.186 +03:00 [Information] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule |
|||
2018-02-26 14:29:21.187 +03:00 [Information] - Volo.Abp.Localization.AbpLocalizationModule |
|||
2018-02-26 14:29:21.187 +03:00 [Information] - Volo.Abp.Session.AbpSessionModule |
|||
2018-02-26 14:29:21.187 +03:00 [Information] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule |
|||
2018-02-26 14:29:21.187 +03:00 [Information] - Volo.Abp.AbpCommonModule |
|||
2018-02-26 14:29:21.187 +03:00 [Information] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule |
|||
2018-02-26 14:29:21.187 +03:00 [Information] - Volo.Abp.Permissions.EntityFrameworkCore.AbpPermissionsEntityFrameworkCoreModule |
|||
2018-02-26 14:29:21.187 +03:00 [Information] - Volo.Abp.Http.AbpHttpModule |
|||
2018-02-26 14:29:21.187 +03:00 [Information] - Volo.Abp.AspNetCore.AbpAspNetCoreModule |
|||
2018-02-26 14:29:21.187 +03:00 [Information] - Volo.Abp.Ui.AbpUiModule |
|||
2018-02-26 14:29:21.187 +03:00 [Information] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule |
|||
2018-02-26 14:29:21.187 +03:00 [Information] - MicroserviceDemo.PermissionService.MicroservicesDemoPermissionServiceModule |
|||
2018-02-26 14:29:21.530 +03:00 [Information] Initialized all modules. |
|||
2018-02-26 14:29:21.876 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/ |
|||
2018-02-26 14:29:22.084 +03:00 [Information] Executing action method "Volo.Abp.Identity.HttpApi.Host.Controllers.HomeController.Index (MicroserviceDemo.PermissionService)" with arguments (null) - ModelState is Valid |
|||
2018-02-26 14:29:22.097 +03:00 [Information] Executing RedirectResult, redirecting to "/swagger". |
|||
2018-02-26 14:29:22.102 +03:00 [Information] Executed action "Volo.Abp.Identity.HttpApi.Host.Controllers.HomeController.Index (MicroserviceDemo.PermissionService)" in 43.8705ms |
|||
2018-02-26 14:29:22.108 +03:00 [Information] Request finished in 247.6639ms 302 |
|||
2018-02-26 14:29:22.122 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/ |
|||
2018-02-26 14:29:22.141 +03:00 [Information] Request finished in 19.3294ms 200 text/html |
|||
2018-02-26 14:29:22.545 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/v1/swagger.json |
|||
2018-02-26 14:29:22.712 +03:00 [Error] Connection id ""0HLBT1GN9RAE1"", Request id ""0HLBT1GN9RAE1:00000003"": An unhandled exception was thrown by the application. |
|||
System.NotSupportedException: Ambiguous HTTP method for action - Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc). Actions require an explicit HttpMethod binding for Swagger 2.0 |
|||
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreatePathItem(IEnumerable`1 apiDescriptions, ISchemaRegistry schemaRegistry) |
|||
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) |
|||
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath, String[] schemes) |
|||
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.<Invoke>d__6.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.<Invoke>d__11.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame`1.<ProcessRequestsAsync>d__2.MoveNext() |
|||
2018-02-26 14:29:22.718 +03:00 [Information] Request finished in 172.8574ms 500 |
|||
2018-02-26 14:32:43.757 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/ |
|||
2018-02-26 14:32:43.758 +03:00 [Information] Request finished in 1.143ms 200 text/html |
|||
2018-02-26 14:32:43.798 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/swagger-ui.css |
|||
2018-02-26 14:32:43.803 +03:00 [Information] The file "/swagger-ui.css" was not modified |
|||
2018-02-26 14:32:43.804 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/swagger-ui-bundle.js |
|||
2018-02-26 14:32:43.804 +03:00 [Information] The file "/swagger-ui-bundle.js" was not modified |
|||
2018-02-26 14:32:43.805 +03:00 [Information] Request finished in 1.1682ms 304 application/javascript |
|||
2018-02-26 14:32:43.805 +03:00 [Information] Request finished in 6.9221ms 304 text/css |
|||
2018-02-26 14:32:43.805 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/swagger-ui-standalone-preset.js |
|||
2018-02-26 14:32:43.806 +03:00 [Information] The file "/swagger-ui-standalone-preset.js" was not modified |
|||
2018-02-26 14:32:43.806 +03:00 [Information] Request finished in 0.6504ms 304 application/javascript |
|||
2018-02-26 14:32:48.918 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/v1/swagger.json |
|||
2018-02-26 14:32:48.944 +03:00 [Error] Connection id ""0HLBT1GN9RAE3"", Request id ""0HLBT1GN9RAE3:00000002"": An unhandled exception was thrown by the application. |
|||
System.NotSupportedException: Ambiguous HTTP method for action - Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc). Actions require an explicit HttpMethod binding for Swagger 2.0 |
|||
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreatePathItem(IEnumerable`1 apiDescriptions, ISchemaRegistry schemaRegistry) |
|||
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) |
|||
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath, String[] schemes) |
|||
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.<Invoke>d__6.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.<Invoke>d__11.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame`1.<ProcessRequestsAsync>d__2.MoveNext() |
|||
2018-02-26 14:32:48.952 +03:00 [Information] Request finished in 33.7377ms 500 |
|||
2018-02-26 14:35:54.011 +03:00 [Information] Loaded modules: |
|||
2018-02-26 14:35:54.052 +03:00 [Information] - Volo.Abp.Security.AbpSecurityModule |
|||
2018-02-26 14:35:54.052 +03:00 [Information] - Volo.Abp.Authorization.AbpAuthorizationModule |
|||
2018-02-26 14:35:54.053 +03:00 [Information] - Volo.Abp.Guids.AbpGuidsModule |
|||
2018-02-26 14:35:54.053 +03:00 [Information] - Volo.Abp.Data.AbpDataModule |
|||
2018-02-26 14:35:54.053 +03:00 [Information] - Volo.Abp.ObjectMapping.AbpObjectMappingModule |
|||
2018-02-26 14:35:54.053 +03:00 [Information] - Volo.Abp.Settings.AbpSettingsModule |
|||
2018-02-26 14:35:54.053 +03:00 [Information] - Volo.Abp.MultiTenancy.AbpMultiTenancyAbstractionsModule |
|||
2018-02-26 14:35:54.053 +03:00 [Information] - Volo.Abp.Threading.AbpThreadingModule |
|||
2018-02-26 14:35:54.053 +03:00 [Information] - Volo.Abp.EventBus.AbpEventBusModule |
|||
2018-02-26 14:35:54.053 +03:00 [Information] - Volo.Abp.Validation.AbpValidationModule |
|||
2018-02-26 14:35:54.053 +03:00 [Information] - Volo.Abp.Http.AbpHttpAbstractionsModule |
|||
2018-02-26 14:35:54.053 +03:00 [Information] - Volo.Abp.AbpDddModule |
|||
2018-02-26 14:35:54.053 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsDomainSharedModule |
|||
2018-02-26 14:35:54.053 +03:00 [Information] - Volo.Abp.Serialization.AbpSerializationModule |
|||
2018-02-26 14:35:54.053 +03:00 [Information] - Volo.Abp.Caching.AbpCachingModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.Timing.AbpTimingModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.Json.AbpJsonModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsDomainModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsApplicationContractsModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsApplicationModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.Localization.AbpLocalizationModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.Session.AbpSessionModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.AbpCommonModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.Permissions.EntityFrameworkCore.AbpPermissionsEntityFrameworkCoreModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.Http.AbpHttpModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.AspNetCore.AbpAspNetCoreModule |
|||
2018-02-26 14:35:54.054 +03:00 [Information] - Volo.Abp.Ui.AbpUiModule |
|||
2018-02-26 14:35:54.055 +03:00 [Information] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule |
|||
2018-02-26 14:35:54.055 +03:00 [Information] - MicroserviceDemo.PermissionService.MicroservicesDemoPermissionServiceModule |
|||
2018-02-26 14:35:54.409 +03:00 [Information] Initialized all modules. |
|||
2018-02-26 14:35:54.769 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/ |
|||
2018-02-26 14:35:54.809 +03:00 [Information] Request finished in 54.9317ms 200 text/html |
|||
2018-02-26 14:35:54.846 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/swagger-ui.css |
|||
2018-02-26 14:35:54.850 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/swagger-ui-bundle.js |
|||
2018-02-26 14:35:54.851 +03:00 [Information] The file "/swagger-ui.css" was not modified |
|||
2018-02-26 14:35:54.851 +03:00 [Information] The file "/swagger-ui-bundle.js" was not modified |
|||
2018-02-26 14:35:54.854 +03:00 [Information] Request finished in 8.1588ms 304 text/css |
|||
2018-02-26 14:35:54.854 +03:00 [Information] Request finished in 3.9658ms 304 application/javascript |
|||
2018-02-26 14:35:54.856 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/swagger-ui-standalone-preset.js |
|||
2018-02-26 14:35:54.857 +03:00 [Information] The file "/swagger-ui-standalone-preset.js" was not modified |
|||
2018-02-26 14:35:54.860 +03:00 [Information] Request finished in 3.1892ms 304 application/javascript |
|||
2018-02-26 14:35:55.323 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/v1/swagger.json |
|||
2018-02-26 14:35:55.572 +03:00 [Error] Connection id ""0HLBT1KCCOV04"", Request id ""0HLBT1KCCOV04:00000003"": An unhandled exception was thrown by the application. |
|||
System.NotSupportedException: Ambiguous HTTP method for action - Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc). Actions require an explicit HttpMethod binding for Swagger 2.0 |
|||
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreatePathItem(IEnumerable`1 apiDescriptions, ISchemaRegistry schemaRegistry) |
|||
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) |
|||
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath, String[] schemes) |
|||
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.<Invoke>d__6.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.<Invoke>d__11.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame`1.<ProcessRequestsAsync>d__2.MoveNext() |
|||
2018-02-26 14:35:55.577 +03:00 [Information] Request finished in 253.6773ms 500 |
|||
2018-02-26 14:38:13.966 +03:00 [Information] Loaded modules: |
|||
2018-02-26 14:38:14.015 +03:00 [Information] - Volo.Abp.Security.AbpSecurityModule |
|||
2018-02-26 14:38:14.015 +03:00 [Information] - Volo.Abp.Authorization.AbpAuthorizationModule |
|||
2018-02-26 14:38:14.015 +03:00 [Information] - Volo.Abp.Guids.AbpGuidsModule |
|||
2018-02-26 14:38:14.016 +03:00 [Information] - Volo.Abp.Data.AbpDataModule |
|||
2018-02-26 14:38:14.016 +03:00 [Information] - Volo.Abp.ObjectMapping.AbpObjectMappingModule |
|||
2018-02-26 14:38:14.016 +03:00 [Information] - Volo.Abp.Settings.AbpSettingsModule |
|||
2018-02-26 14:38:14.016 +03:00 [Information] - Volo.Abp.MultiTenancy.AbpMultiTenancyAbstractionsModule |
|||
2018-02-26 14:38:14.016 +03:00 [Information] - Volo.Abp.Threading.AbpThreadingModule |
|||
2018-02-26 14:38:14.016 +03:00 [Information] - Volo.Abp.EventBus.AbpEventBusModule |
|||
2018-02-26 14:38:14.016 +03:00 [Information] - Volo.Abp.Validation.AbpValidationModule |
|||
2018-02-26 14:38:14.016 +03:00 [Information] - Volo.Abp.Http.AbpHttpAbstractionsModule |
|||
2018-02-26 14:38:14.016 +03:00 [Information] - Volo.Abp.AbpDddModule |
|||
2018-02-26 14:38:14.017 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsDomainSharedModule |
|||
2018-02-26 14:38:14.017 +03:00 [Information] - Volo.Abp.Serialization.AbpSerializationModule |
|||
2018-02-26 14:38:14.017 +03:00 [Information] - Volo.Abp.Caching.AbpCachingModule |
|||
2018-02-26 14:38:14.017 +03:00 [Information] - Volo.Abp.Timing.AbpTimingModule |
|||
2018-02-26 14:38:14.017 +03:00 [Information] - Volo.Abp.Json.AbpJsonModule |
|||
2018-02-26 14:38:14.017 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsDomainModule |
|||
2018-02-26 14:38:14.017 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsApplicationContractsModule |
|||
2018-02-26 14:38:14.017 +03:00 [Information] - Volo.Abp.Permissions.AbpPermissionsApplicationModule |
|||
2018-02-26 14:38:14.017 +03:00 [Information] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule |
|||
2018-02-26 14:38:14.017 +03:00 [Information] - Volo.Abp.Localization.AbpLocalizationModule |
|||
2018-02-26 14:38:14.017 +03:00 [Information] - Volo.Abp.Session.AbpSessionModule |
|||
2018-02-26 14:38:14.017 +03:00 [Information] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule |
|||
2018-02-26 14:38:14.017 +03:00 [Information] - Volo.Abp.AbpCommonModule |
|||
2018-02-26 14:38:14.018 +03:00 [Information] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule |
|||
2018-02-26 14:38:14.018 +03:00 [Information] - Volo.Abp.Permissions.EntityFrameworkCore.AbpPermissionsEntityFrameworkCoreModule |
|||
2018-02-26 14:38:14.018 +03:00 [Information] - Volo.Abp.Http.AbpHttpModule |
|||
2018-02-26 14:38:14.018 +03:00 [Information] - Volo.Abp.AspNetCore.AbpAspNetCoreModule |
|||
2018-02-26 14:38:14.018 +03:00 [Information] - Volo.Abp.Ui.AbpUiModule |
|||
2018-02-26 14:38:14.018 +03:00 [Information] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule |
|||
2018-02-26 14:38:14.018 +03:00 [Information] - MicroserviceDemo.PermissionService.MicroservicesDemoPermissionServiceModule |
|||
2018-02-26 14:38:14.368 +03:00 [Information] Initialized all modules. |
|||
2018-02-26 14:38:14.738 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/ |
|||
2018-02-26 14:38:14.910 +03:00 [Information] Executing action method "Volo.Abp.Identity.HttpApi.Host.Controllers.HomeController.Index (MicroserviceDemo.PermissionService)" with arguments (null) - ModelState is Valid |
|||
2018-02-26 14:38:14.923 +03:00 [Information] Executing RedirectResult, redirecting to "/swagger". |
|||
2018-02-26 14:38:14.929 +03:00 [Information] Executed action "Volo.Abp.Identity.HttpApi.Host.Controllers.HomeController.Index (MicroserviceDemo.PermissionService)" in 45.7042ms |
|||
2018-02-26 14:38:14.935 +03:00 [Information] Request finished in 212.7279ms 302 |
|||
2018-02-26 14:38:14.952 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/ |
|||
2018-02-26 14:38:14.958 +03:00 [Information] Sending file. Request path: '"/index.html"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:14.963 +03:00 [Information] Request finished in 10.9269ms 200 text/html |
|||
2018-02-26 14:38:14.999 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/css/typography.css |
|||
2018-02-26 14:38:15.000 +03:00 [Information] Sending file. Request path: '"/css/typography.css"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.001 +03:00 [Information] Request finished in 1.8897ms 200 text/css |
|||
2018-02-26 14:38:15.003 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/css/reset.css |
|||
2018-02-26 14:38:15.004 +03:00 [Information] Sending file. Request path: '"/css/reset.css"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.004 +03:00 [Information] Request finished in 1.5069ms 200 text/css |
|||
2018-02-26 14:38:15.005 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/css/screen.css |
|||
2018-02-26 14:38:15.005 +03:00 [Information] Sending file. Request path: '"/css/screen.css"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.006 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/css/print.css |
|||
2018-02-26 14:38:15.007 +03:00 [Information] Sending file. Request path: '"/css/print.css"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.007 +03:00 [Information] Request finished in 1.433ms 200 text/css |
|||
2018-02-26 14:38:15.008 +03:00 [Information] Request finished in 2.405ms 200 text/css |
|||
2018-02-26 14:38:15.013 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/lib/object-assign-pollyfill.js |
|||
2018-02-26 14:38:15.014 +03:00 [Information] Sending file. Request path: '"/lib/object-assign-pollyfill.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.015 +03:00 [Information] Request finished in 1.7994ms 200 application/javascript |
|||
2018-02-26 14:38:15.015 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/lib/jquery-1.8.0.min.js |
|||
2018-02-26 14:38:15.016 +03:00 [Information] Sending file. Request path: '"/lib/jquery-1.8.0.min.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.016 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/lib/jquery.slideto.min.js |
|||
2018-02-26 14:38:15.017 +03:00 [Information] Sending file. Request path: '"/lib/jquery.slideto.min.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.018 +03:00 [Information] Request finished in 1.7644ms 200 application/javascript |
|||
2018-02-26 14:38:15.029 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/lib/jquery.wiggle.min.js |
|||
2018-02-26 14:38:15.030 +03:00 [Information] Sending file. Request path: '"/lib/jquery.wiggle.min.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.030 +03:00 [Information] Request finished in 1.1712ms 200 application/javascript |
|||
2018-02-26 14:38:15.041 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/lib/jquery.ba-bbq.min.js |
|||
2018-02-26 14:38:15.041 +03:00 [Information] Sending file. Request path: '"/lib/jquery.ba-bbq.min.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.042 +03:00 [Information] Request finished in 1.232ms 200 application/javascript |
|||
2018-02-26 14:38:15.042 +03:00 [Information] Request finished in 27.2107ms 200 application/javascript |
|||
2018-02-26 14:38:15.043 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/lib/handlebars-4.0.5.js |
|||
2018-02-26 14:38:15.044 +03:00 [Information] Sending file. Request path: '"/lib/handlebars-4.0.5.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.046 +03:00 [Information] Request finished in 3.566ms 200 application/javascript |
|||
2018-02-26 14:38:15.048 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/lib/lodash.min.js |
|||
2018-02-26 14:38:15.049 +03:00 [Information] Sending file. Request path: '"/lib/lodash.min.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.050 +03:00 [Information] Request finished in 3.0631ms 200 application/javascript |
|||
2018-02-26 14:38:15.072 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/lib/backbone-min.js |
|||
2018-02-26 14:38:15.073 +03:00 [Information] Sending file. Request path: '"/lib/backbone-min.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.075 +03:00 [Information] Request finished in 1.7785ms 200 application/javascript |
|||
2018-02-26 14:38:15.078 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/swagger-ui.min.js |
|||
2018-02-26 14:38:15.078 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/lib/highlight.9.1.0.pack_extended.js |
|||
2018-02-26 14:38:15.078 +03:00 [Information] Sending file. Request path: '"/lib/highlight.9.1.0.pack_extended.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.078 +03:00 [Information] Sending file. Request path: '"/swagger-ui.min.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.078 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/lib/highlight.9.1.0.pack.js |
|||
2018-02-26 14:38:15.078 +03:00 [Information] Request finished in 0.8236ms 200 application/javascript |
|||
2018-02-26 14:38:15.079 +03:00 [Information] Sending file. Request path: '"/lib/highlight.9.1.0.pack.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.079 +03:00 [Information] Request finished in 1.14ms 200 application/javascript |
|||
2018-02-26 14:38:15.083 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/lib/jsoneditor.min.js |
|||
2018-02-26 14:38:15.083 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/lib/marked.js |
|||
2018-02-26 14:38:15.084 +03:00 [Information] Sending file. Request path: '"/lib/marked.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.084 +03:00 [Information] Sending file. Request path: '"/lib/jsoneditor.min.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.085 +03:00 [Information] Request finished in 1.5069ms 200 application/javascript |
|||
2018-02-26 14:38:15.087 +03:00 [Information] Request finished in 3.8854ms 200 application/javascript |
|||
2018-02-26 14:38:15.091 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/lib/swagger-oauth.js |
|||
2018-02-26 14:38:15.092 +03:00 [Information] Sending file. Request path: '"/lib/swagger-oauth.js"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.092 +03:00 [Information] Request finished in 15.2301ms 200 application/javascript |
|||
2018-02-26 14:38:15.093 +03:00 [Information] Request finished in 1.4766ms 200 application/javascript |
|||
2018-02-26 14:38:15.135 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/images/logo_small.png |
|||
2018-02-26 14:38:15.136 +03:00 [Information] Sending file. Request path: '"/images/logo_small.png"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.137 +03:00 [Information] Request finished in 1.8195ms 200 image/png |
|||
2018-02-26 14:38:15.287 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/images/favicon-16x16.png |
|||
2018-02-26 14:38:15.288 +03:00 [Information] Sending file. Request path: '"/images/favicon-16x16.png"'. Physical path: '"N/A"' |
|||
2018-02-26 14:38:15.288 +03:00 [Information] Request finished in 0.7333ms 200 image/png |
|||
2018-02-26 14:38:15.304 +03:00 [Information] Request starting HTTP/1.1 GET http://localhost:63908/swagger/v1/swagger.json |
|||
2018-02-26 14:38:15.468 +03:00 [Error] Connection id ""0HLBT1LM3D57G"", Request id ""0HLBT1LM3D57G:00000004"": An unhandled exception was thrown by the application. |
|||
System.NotSupportedException: Ambiguous HTTP method for action - Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc). Actions require an explicit HttpMethod binding for Swagger |
|||
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreatePathItem(IEnumerable`1 apiDescriptions, ISchemaRegistry schemaRegistry) |
|||
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) |
|||
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath, String[] schemes) |
|||
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.<Invoke>d__6.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.<Invoke>d__11.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext() |
|||
--- End of stack trace from previous location where exception was thrown --- |
|||
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() |
|||
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
|||
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame`1.<ProcessRequestsAsync>d__2.MoveNext() |
|||
2018-02-26 14:38:15.474 +03:00 [Information] Request finished in 169.958ms 500 |
|||
@ -0,0 +1,91 @@ |
|||
using Microsoft.AspNetCore.Builder; |
|||
using Microsoft.AspNetCore.Hosting; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.Extensions.Configuration; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Swashbuckle.AspNetCore.Swagger; |
|||
using Volo.Abp; |
|||
using Volo.Abp.AspNetCore.Modularity; |
|||
using Volo.Abp.AspNetCore.Mvc; |
|||
using Volo.Abp.Data; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.Permissions; |
|||
using Volo.Abp.Permissions.EntityFrameworkCore; |
|||
|
|||
namespace MicroserviceDemo.PermissionService |
|||
{ |
|||
[DependsOn(typeof(AbpPermissionsApplicationModule))] |
|||
[DependsOn(typeof(AbpPermissionsEntityFrameworkCoreModule))] |
|||
[DependsOn(typeof(AbpAspNetCoreMvcModule))] |
|||
public class MicroservicesDemoPermissionServiceModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(IServiceCollection services) |
|||
{ |
|||
var hostingEnvironment = services.GetSingletonInstance<IHostingEnvironment>(); |
|||
var configuration = BuildConfiguration(hostingEnvironment); |
|||
|
|||
services.Configure<DbConnectionOptions>(configuration); |
|||
|
|||
services.Configure<AbpDbContextOptions>(options => |
|||
{ |
|||
options.Configure(context => |
|||
{ |
|||
if (context.ExistingConnection != null) |
|||
{ |
|||
context.DbContextOptions.UseSqlServer(context.ExistingConnection); |
|||
} |
|||
else |
|||
{ |
|||
context.DbContextOptions.UseSqlServer(context.ConnectionString); |
|||
} |
|||
}); |
|||
}); |
|||
|
|||
services.Configure<AbpAspNetCoreMvcOptions>(options => //TODO: Will be moved to the AbpPermissionsHttpApiModule when it's available!
|
|||
{ |
|||
options.ConventionalControllers.Create( |
|||
typeof(AbpPermissionsApplicationModule).Assembly, |
|||
opts => |
|||
{ |
|||
opts.RootPath = "permission"; |
|||
} |
|||
); |
|||
}); |
|||
|
|||
services.AddSwaggerGen( |
|||
options => |
|||
{ |
|||
options.SwaggerDoc("v1", new Info { Title = "Permissions API", Version = "v1" }); |
|||
options.DocInclusionPredicate((docName, description) => true); |
|||
}); |
|||
|
|||
services.AddAssemblyOf<MicroservicesDemoPermissionServiceModule>(); |
|||
} |
|||
|
|||
public override void OnApplicationInitialization(ApplicationInitializationContext context) |
|||
{ |
|||
var app = context.GetApplicationBuilder(); |
|||
|
|||
app.UseStaticFiles(); |
|||
|
|||
app.UseSwagger(); |
|||
app.UseSwaggerUI(options => |
|||
{ |
|||
options.SwaggerEndpoint("/swagger/v1/swagger.json", "Permissions API"); |
|||
}); |
|||
|
|||
app.UseMvcWithDefaultRoute(); |
|||
} |
|||
|
|||
private static IConfigurationRoot BuildConfiguration(IHostingEnvironment env) |
|||
{ |
|||
var builder = new ConfigurationBuilder() |
|||
.SetBasePath(env.ContentRootPath) |
|||
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) |
|||
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true, reloadOnChange: true); |
|||
|
|||
return builder.Build(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,52 @@ |
|||
// <auto-generated />
|
|||
using MicroserviceDemo.PermissionService.Db; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.EntityFrameworkCore.Infrastructure; |
|||
using Microsoft.EntityFrameworkCore.Metadata; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
using Microsoft.EntityFrameworkCore.Storage; |
|||
using Microsoft.EntityFrameworkCore.Storage.Internal; |
|||
using System; |
|||
|
|||
namespace MicroserviceDemo.PermissionService.Migrations |
|||
{ |
|||
[DbContext(typeof(MigrationDbContext))] |
|||
[Migration("20180226112104_Installed_Permissions_Module")] |
|||
partial class Installed_Permissions_Module |
|||
{ |
|||
protected override void BuildTargetModel(ModelBuilder modelBuilder) |
|||
{ |
|||
#pragma warning disable 612, 618
|
|||
modelBuilder |
|||
.HasAnnotation("ProductVersion", "2.0.1-rtm-125") |
|||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Permissions.PermissionGrant", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<string>("Name") |
|||
.IsRequired() |
|||
.HasMaxLength(128); |
|||
|
|||
b.Property<string>("ProviderKey") |
|||
.IsRequired() |
|||
.HasMaxLength(64); |
|||
|
|||
b.Property<string>("ProviderName") |
|||
.IsRequired() |
|||
.HasMaxLength(64); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("Name", "ProviderName", "ProviderKey"); |
|||
|
|||
b.ToTable("AbpPermissionGrants"); |
|||
}); |
|||
#pragma warning restore 612, 618
|
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,38 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace MicroserviceDemo.PermissionService.Migrations |
|||
{ |
|||
public partial class Installed_Permissions_Module : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "AbpPermissionGrants", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
Name = table.Column<string>(maxLength: 128, nullable: false), |
|||
ProviderKey = table.Column<string>(maxLength: 64, nullable: false), |
|||
ProviderName = table.Column<string>(maxLength: 64, nullable: false), |
|||
TenantId = table.Column<Guid>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpPermissionGrants", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpPermissionGrants_Name_ProviderName_ProviderKey", |
|||
table: "AbpPermissionGrants", |
|||
columns: new[] { "Name", "ProviderName", "ProviderKey" }); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "AbpPermissionGrants"); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,51 @@ |
|||
// <auto-generated />
|
|||
using MicroserviceDemo.PermissionService.Db; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.EntityFrameworkCore.Infrastructure; |
|||
using Microsoft.EntityFrameworkCore.Metadata; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
using Microsoft.EntityFrameworkCore.Storage; |
|||
using Microsoft.EntityFrameworkCore.Storage.Internal; |
|||
using System; |
|||
|
|||
namespace MicroserviceDemo.PermissionService.Migrations |
|||
{ |
|||
[DbContext(typeof(MigrationDbContext))] |
|||
partial class MigrationDbContextModelSnapshot : ModelSnapshot |
|||
{ |
|||
protected override void BuildModel(ModelBuilder modelBuilder) |
|||
{ |
|||
#pragma warning disable 612, 618
|
|||
modelBuilder |
|||
.HasAnnotation("ProductVersion", "2.0.1-rtm-125") |
|||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Permissions.PermissionGrant", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<string>("Name") |
|||
.IsRequired() |
|||
.HasMaxLength(128); |
|||
|
|||
b.Property<string>("ProviderKey") |
|||
.IsRequired() |
|||
.HasMaxLength(64); |
|||
|
|||
b.Property<string>("ProviderName") |
|||
.IsRequired() |
|||
.HasMaxLength(64); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("Name", "ProviderName", "ProviderKey"); |
|||
|
|||
b.ToTable("AbpPermissionGrants"); |
|||
}); |
|||
#pragma warning restore 612, 618
|
|||
} |
|||
} |
|||
} |
|||
@ -1,22 +1,36 @@ |
|||
using Microsoft.AspNetCore.Builder; |
|||
using Microsoft.AspNetCore.Hosting; |
|||
using Microsoft.AspNetCore.Http; |
|||
using System; |
|||
using Microsoft.AspNetCore.Builder; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Microsoft.Extensions.Logging; |
|||
using Serilog; |
|||
using Volo.Abp; |
|||
|
|||
namespace MicroserviceDemo.PermissionService |
|||
{ |
|||
public class Startup |
|||
{ |
|||
public void ConfigureServices(IServiceCollection services) |
|||
public IServiceProvider ConfigureServices(IServiceCollection services) |
|||
{ |
|||
services.AddApplication<MicroservicesDemoPermissionServiceModule>(options => |
|||
{ |
|||
options.UseAutofac(); |
|||
}); |
|||
|
|||
return services.BuildServiceProviderFromFactory(); |
|||
} |
|||
|
|||
public void Configure(IApplicationBuilder app, IHostingEnvironment env) |
|||
public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) |
|||
{ |
|||
app.Run(async (context) => |
|||
{ |
|||
await context.Response.WriteAsync("Permissions microservice!"); |
|||
}); |
|||
loggerFactory |
|||
.AddConsole() |
|||
.AddDebug() |
|||
.AddSerilog(new LoggerConfiguration() |
|||
.Enrich.FromLogContext() |
|||
.WriteTo.RollingFile("Logs/logs.txt") |
|||
.CreateLogger() |
|||
); |
|||
|
|||
app.InitializeApplication(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,5 @@ |
|||
{ |
|||
"ConnectionStrings": { |
|||
"Default": "Server=localhost;Database=MicroservicesDemo.Permissions;Trusted_Connection=True;MultipleActiveResultSets=true" |
|||
} |
|||
} |
|||
@ -0,0 +1,21 @@ |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using Volo.Abp.Identity.EntityFrameworkCore; |
|||
|
|||
namespace MicroserviceDemo.Web.Db |
|||
{ |
|||
public class MigrationDbContext : AbpDbContext<MigrationDbContext> |
|||
{ |
|||
public MigrationDbContext(DbContextOptions<MigrationDbContext> options) |
|||
: base(options) |
|||
{ |
|||
} |
|||
|
|||
protected override void OnModelCreating(ModelBuilder modelBuilder) |
|||
{ |
|||
base.OnModelCreating(modelBuilder); |
|||
|
|||
modelBuilder.ConfigureAbpIdentity(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.EntityFrameworkCore.Design; |
|||
|
|||
namespace MicroserviceDemo.Web.Db |
|||
{ |
|||
/* This class is needed for EF Core command line tooling */ |
|||
|
|||
public class MigrationDbContextFactory : IDesignTimeDbContextFactory<MigrationDbContext> |
|||
{ |
|||
public MigrationDbContext CreateDbContext(string[] args) |
|||
{ |
|||
var builder = new DbContextOptionsBuilder<MigrationDbContext>(); |
|||
builder.UseSqlServer("Server=localhost;Database=MicroservicesDemo.Web;Trusted_Connection=True;MultipleActiveResultSets=true"); |
|||
return new MigrationDbContext(builder.Options); |
|||
} |
|||
} |
|||
} |
|||
@ -1,20 +0,0 @@ |
|||
FROM microsoft/aspnetcore:2.0 AS base |
|||
WORKDIR /app |
|||
EXPOSE 80 |
|||
|
|||
FROM microsoft/aspnetcore-build:2.0 AS build |
|||
WORKDIR /src |
|||
COPY *.sln ./ |
|||
COPY MicroserviceDemo.Web/MicroserviceDemo.Web.csproj MicroserviceDemo.Web/ |
|||
RUN dotnet restore |
|||
COPY . . |
|||
WORKDIR /src/MicroserviceDemo.Web |
|||
RUN dotnet build -c Release -o /app |
|||
|
|||
FROM build AS publish |
|||
RUN dotnet publish -c Release -o /app |
|||
|
|||
FROM base AS final |
|||
WORKDIR /app |
|||
COPY --from=publish /app . |
|||
ENTRYPOINT ["dotnet", "MicroserviceDemo.Web.dll"] |
|||
File diff suppressed because it is too large
@ -0,0 +1,98 @@ |
|||
using System; |
|||
using Microsoft.AspNetCore.Builder; |
|||
using Microsoft.AspNetCore.Hosting; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.Extensions.Configuration; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp; |
|||
using Volo.Abp.Account.Web; |
|||
using Volo.Abp.AspNetCore.Modularity; |
|||
using Volo.Abp.AspNetCore.Mvc.Bundling; |
|||
using Volo.Abp.Autofac; |
|||
using Volo.Abp.Data; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using Volo.Abp.Identity; |
|||
using Volo.Abp.Identity.EntityFrameworkCore; |
|||
using Volo.Abp.Identity.Web; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.Permissions.EntityFrameworkCore; |
|||
|
|||
namespace MicroserviceDemo.Web |
|||
{ |
|||
[DependsOn(typeof(AbpAutofacModule))] |
|||
[DependsOn(typeof(AbpPermissionsEntityFrameworkCoreModule))] |
|||
[DependsOn(typeof(AbpIdentityHttpApiModule))] |
|||
[DependsOn(typeof(AbpIdentityWebModule))] |
|||
[DependsOn(typeof(AbpIdentityEntityFrameworkCoreModule))] |
|||
[DependsOn(typeof(AbpAccountWebModule))] |
|||
public class MicroservicesDemoWebModule : AbpModule |
|||
{ |
|||
public override void PreConfigureServices(IServiceCollection services) |
|||
{ |
|||
services.PreConfigure<IMvcBuilder>(builder => |
|||
{ |
|||
builder.AddViewLocalization(); //TODO: To the framework!
|
|||
}); |
|||
} |
|||
|
|||
public override void ConfigureServices(IServiceCollection services) |
|||
{ |
|||
var hostingEnvironment = services.GetSingletonInstance<IHostingEnvironment>(); |
|||
var configuration = BuildConfiguration(hostingEnvironment); |
|||
|
|||
services.Configure<DbConnectionOptions>(configuration); |
|||
|
|||
services.Configure<AbpDbContextOptions>(options => |
|||
{ |
|||
options.Configure(context => |
|||
{ |
|||
if (context.ExistingConnection != null) |
|||
{ |
|||
context.DbContextOptions.UseSqlServer(context.ExistingConnection); |
|||
} |
|||
else |
|||
{ |
|||
context.DbContextOptions.UseSqlServer(context.ConnectionString); |
|||
} |
|||
}); |
|||
}); |
|||
|
|||
services.Configure<BundlingOptions>(options => |
|||
{ |
|||
//TODO: To the framework!
|
|||
options.ScriptBundles.Add("GlobalScripts", new[] |
|||
{ |
|||
"/Abp/ApplicationConfigurationScript?_v=" + DateTime.Now.Ticks, |
|||
"/Abp/ServiceProxyScript?_v=" + DateTime.Now.Ticks |
|||
}); |
|||
}); |
|||
|
|||
services.AddAssemblyOf<MicroservicesDemoWebModule>(); |
|||
} |
|||
|
|||
public override void OnApplicationInitialization(ApplicationInitializationContext context) |
|||
{ |
|||
var app = context.GetApplicationBuilder(); |
|||
|
|||
if (context.GetEnvironment().IsDevelopment()) |
|||
{ |
|||
app.UseDeveloperExceptionPage(); |
|||
} |
|||
|
|||
app.UseStaticFiles(); |
|||
app.UseVirtualFiles(); |
|||
|
|||
app.UseMvcWithDefaultRoute(); |
|||
} |
|||
|
|||
private static IConfigurationRoot BuildConfiguration(IHostingEnvironment env) |
|||
{ |
|||
var builder = new ConfigurationBuilder() |
|||
.SetBasePath(env.ContentRootPath) |
|||
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) |
|||
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true, reloadOnChange: true); |
|||
|
|||
return builder.Build(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,263 @@ |
|||
// <auto-generated />
|
|||
using MicroserviceDemo.Web.Db; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.EntityFrameworkCore.Infrastructure; |
|||
using Microsoft.EntityFrameworkCore.Metadata; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
using Microsoft.EntityFrameworkCore.Storage; |
|||
using Microsoft.EntityFrameworkCore.Storage.Internal; |
|||
using System; |
|||
|
|||
namespace MicroserviceDemo.Web.Migrations |
|||
{ |
|||
[DbContext(typeof(MigrationDbContext))] |
|||
[Migration("20180226091102_Installed_Identity_Module")] |
|||
partial class Installed_Identity_Module |
|||
{ |
|||
protected override void BuildTargetModel(ModelBuilder modelBuilder) |
|||
{ |
|||
#pragma warning disable 612, 618
|
|||
modelBuilder |
|||
.HasAnnotation("ProductVersion", "2.0.1-rtm-125") |
|||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<string>("ConcurrencyStamp"); |
|||
|
|||
b.Property<string>("Name") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("NormalizedName") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("NormalizedName"); |
|||
|
|||
b.ToTable("IdentityRoles"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<string>("ClaimType") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("ClaimValue") |
|||
.HasMaxLength(1024); |
|||
|
|||
b.Property<Guid>("RoleId"); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("RoleId"); |
|||
|
|||
b.ToTable("IdentityRoleClaims"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<int>("AccessFailedCount") |
|||
.ValueGeneratedOnAdd() |
|||
.HasDefaultValue(0); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("Email") |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<bool>("EmailConfirmed") |
|||
.ValueGeneratedOnAdd() |
|||
.HasDefaultValue(false); |
|||
|
|||
b.Property<bool>("LockoutEnabled") |
|||
.ValueGeneratedOnAdd() |
|||
.HasDefaultValue(false); |
|||
|
|||
b.Property<DateTimeOffset?>("LockoutEnd"); |
|||
|
|||
b.Property<string>("NormalizedEmail") |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("NormalizedUserName") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("PasswordHash") |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("PhoneNumber") |
|||
.HasMaxLength(16); |
|||
|
|||
b.Property<bool>("PhoneNumberConfirmed") |
|||
.ValueGeneratedOnAdd() |
|||
.HasDefaultValue(false); |
|||
|
|||
b.Property<string>("SecurityStamp") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.Property<bool>("TwoFactorEnabled") |
|||
.ValueGeneratedOnAdd() |
|||
.HasDefaultValue(false); |
|||
|
|||
b.Property<string>("UserName") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("NormalizedEmail"); |
|||
|
|||
b.HasIndex("NormalizedUserName"); |
|||
|
|||
b.ToTable("IdentityUsers"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<string>("ClaimType") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("ClaimValue") |
|||
.HasMaxLength(1024); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.Property<Guid>("UserId"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("UserId"); |
|||
|
|||
b.ToTable("IdentityUserClaims"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => |
|||
{ |
|||
b.Property<Guid>("UserId"); |
|||
|
|||
b.Property<string>("LoginProvider") |
|||
.HasMaxLength(64); |
|||
|
|||
b.Property<string>("ProviderDisplayName") |
|||
.HasMaxLength(128); |
|||
|
|||
b.Property<string>("ProviderKey") |
|||
.IsRequired() |
|||
.HasMaxLength(196); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.HasKey("UserId", "LoginProvider"); |
|||
|
|||
b.HasIndex("LoginProvider", "ProviderKey"); |
|||
|
|||
b.ToTable("IdentityUserLogins"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => |
|||
{ |
|||
b.Property<Guid>("UserId"); |
|||
|
|||
b.Property<Guid>("RoleId"); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.HasKey("UserId", "RoleId"); |
|||
|
|||
b.HasIndex("RoleId", "UserId"); |
|||
|
|||
b.ToTable("IdentityUserRoles"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => |
|||
{ |
|||
b.Property<Guid>("UserId"); |
|||
|
|||
b.Property<string>("LoginProvider") |
|||
.HasMaxLength(128); |
|||
|
|||
b.Property<string>("Name"); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.Property<string>("Value"); |
|||
|
|||
b.HasKey("UserId", "LoginProvider", "Name"); |
|||
|
|||
b.ToTable("IdentityUserTokens"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.Identity.IdentityRole") |
|||
.WithMany("Claims") |
|||
.HasForeignKey("RoleId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.Identity.IdentityUser") |
|||
.WithMany("Claims") |
|||
.HasForeignKey("UserId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.Identity.IdentityUser") |
|||
.WithMany("Logins") |
|||
.HasForeignKey("UserId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.Identity.IdentityRole") |
|||
.WithMany() |
|||
.HasForeignKey("RoleId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
|
|||
b.HasOne("Volo.Abp.Identity.IdentityUser") |
|||
.WithMany("Roles") |
|||
.HasForeignKey("UserId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.Identity.IdentityUser") |
|||
.WithMany("Tokens") |
|||
.HasForeignKey("UserId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
#pragma warning restore 612, 618
|
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,221 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace MicroserviceDemo.Web.Migrations |
|||
{ |
|||
public partial class Installed_Identity_Module : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "IdentityRoles", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
ConcurrencyStamp = table.Column<string>(nullable: true), |
|||
Name = table.Column<string>(maxLength: 256, nullable: false), |
|||
NormalizedName = table.Column<string>(maxLength: 256, nullable: false), |
|||
TenantId = table.Column<Guid>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_IdentityRoles", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "IdentityUsers", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
AccessFailedCount = table.Column<int>(nullable: false, defaultValue: 0), |
|||
ConcurrencyStamp = table.Column<string>(maxLength: 256, nullable: false), |
|||
Email = table.Column<string>(maxLength: 256, nullable: true), |
|||
EmailConfirmed = table.Column<bool>(nullable: false, defaultValue: false), |
|||
LockoutEnabled = table.Column<bool>(nullable: false, defaultValue: false), |
|||
LockoutEnd = table.Column<DateTimeOffset>(nullable: true), |
|||
NormalizedEmail = table.Column<string>(maxLength: 256, nullable: true), |
|||
NormalizedUserName = table.Column<string>(maxLength: 256, nullable: false), |
|||
PasswordHash = table.Column<string>(maxLength: 256, nullable: true), |
|||
PhoneNumber = table.Column<string>(maxLength: 16, nullable: true), |
|||
PhoneNumberConfirmed = table.Column<bool>(nullable: false, defaultValue: false), |
|||
SecurityStamp = table.Column<string>(maxLength: 256, nullable: false), |
|||
TenantId = table.Column<Guid>(nullable: true), |
|||
TwoFactorEnabled = table.Column<bool>(nullable: false, defaultValue: false), |
|||
UserName = table.Column<string>(maxLength: 256, nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_IdentityUsers", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "IdentityRoleClaims", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
ClaimType = table.Column<string>(maxLength: 256, nullable: false), |
|||
ClaimValue = table.Column<string>(maxLength: 1024, nullable: true), |
|||
RoleId = table.Column<Guid>(nullable: false), |
|||
TenantId = table.Column<Guid>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_IdentityRoleClaims", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_IdentityRoleClaims_IdentityRoles_RoleId", |
|||
column: x => x.RoleId, |
|||
principalTable: "IdentityRoles", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "IdentityUserClaims", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
ClaimType = table.Column<string>(maxLength: 256, nullable: false), |
|||
ClaimValue = table.Column<string>(maxLength: 1024, nullable: true), |
|||
TenantId = table.Column<Guid>(nullable: true), |
|||
UserId = table.Column<Guid>(nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_IdentityUserClaims", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_IdentityUserClaims_IdentityUsers_UserId", |
|||
column: x => x.UserId, |
|||
principalTable: "IdentityUsers", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "IdentityUserLogins", |
|||
columns: table => new |
|||
{ |
|||
UserId = table.Column<Guid>(nullable: false), |
|||
LoginProvider = table.Column<string>(maxLength: 64, nullable: false), |
|||
ProviderDisplayName = table.Column<string>(maxLength: 128, nullable: true), |
|||
ProviderKey = table.Column<string>(maxLength: 196, nullable: false), |
|||
TenantId = table.Column<Guid>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_IdentityUserLogins", x => new { x.UserId, x.LoginProvider }); |
|||
table.ForeignKey( |
|||
name: "FK_IdentityUserLogins_IdentityUsers_UserId", |
|||
column: x => x.UserId, |
|||
principalTable: "IdentityUsers", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "IdentityUserRoles", |
|||
columns: table => new |
|||
{ |
|||
UserId = table.Column<Guid>(nullable: false), |
|||
RoleId = table.Column<Guid>(nullable: false), |
|||
TenantId = table.Column<Guid>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_IdentityUserRoles", x => new { x.UserId, x.RoleId }); |
|||
table.ForeignKey( |
|||
name: "FK_IdentityUserRoles_IdentityRoles_RoleId", |
|||
column: x => x.RoleId, |
|||
principalTable: "IdentityRoles", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
table.ForeignKey( |
|||
name: "FK_IdentityUserRoles_IdentityUsers_UserId", |
|||
column: x => x.UserId, |
|||
principalTable: "IdentityUsers", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "IdentityUserTokens", |
|||
columns: table => new |
|||
{ |
|||
UserId = table.Column<Guid>(nullable: false), |
|||
LoginProvider = table.Column<string>(maxLength: 128, nullable: false), |
|||
Name = table.Column<string>(nullable: false), |
|||
TenantId = table.Column<Guid>(nullable: true), |
|||
Value = table.Column<string>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_IdentityUserTokens", x => new { x.UserId, x.LoginProvider, x.Name }); |
|||
table.ForeignKey( |
|||
name: "FK_IdentityUserTokens_IdentityUsers_UserId", |
|||
column: x => x.UserId, |
|||
principalTable: "IdentityUsers", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_IdentityRoleClaims_RoleId", |
|||
table: "IdentityRoleClaims", |
|||
column: "RoleId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_IdentityRoles_NormalizedName", |
|||
table: "IdentityRoles", |
|||
column: "NormalizedName"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_IdentityUserClaims_UserId", |
|||
table: "IdentityUserClaims", |
|||
column: "UserId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_IdentityUserLogins_LoginProvider_ProviderKey", |
|||
table: "IdentityUserLogins", |
|||
columns: new[] { "LoginProvider", "ProviderKey" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_IdentityUserRoles_RoleId_UserId", |
|||
table: "IdentityUserRoles", |
|||
columns: new[] { "RoleId", "UserId" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_IdentityUsers_NormalizedEmail", |
|||
table: "IdentityUsers", |
|||
column: "NormalizedEmail"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_IdentityUsers_NormalizedUserName", |
|||
table: "IdentityUsers", |
|||
column: "NormalizedUserName"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "IdentityRoleClaims"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "IdentityUserClaims"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "IdentityUserLogins"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "IdentityUserRoles"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "IdentityUserTokens"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "IdentityRoles"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "IdentityUsers"); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,260 @@ |
|||
// <auto-generated />
|
|||
using MicroserviceDemo.Web.Db; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.EntityFrameworkCore.Infrastructure; |
|||
using Microsoft.EntityFrameworkCore.Metadata; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
using System; |
|||
|
|||
namespace MicroserviceDemo.Web.Migrations |
|||
{ |
|||
[DbContext(typeof(MigrationDbContext))] |
|||
partial class MigrationDbContextModelSnapshot : ModelSnapshot |
|||
{ |
|||
protected override void BuildModel(ModelBuilder modelBuilder) |
|||
{ |
|||
#pragma warning disable 612, 618
|
|||
modelBuilder |
|||
.HasAnnotation("ProductVersion", "2.0.1-rtm-125") |
|||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<string>("ConcurrencyStamp"); |
|||
|
|||
b.Property<string>("Name") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("NormalizedName") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("NormalizedName"); |
|||
|
|||
b.ToTable("IdentityRoles"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<string>("ClaimType") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("ClaimValue") |
|||
.HasMaxLength(1024); |
|||
|
|||
b.Property<Guid>("RoleId"); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("RoleId"); |
|||
|
|||
b.ToTable("IdentityRoleClaims"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<int>("AccessFailedCount") |
|||
.ValueGeneratedOnAdd() |
|||
.HasDefaultValue(0); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("Email") |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<bool>("EmailConfirmed") |
|||
.ValueGeneratedOnAdd() |
|||
.HasDefaultValue(false); |
|||
|
|||
b.Property<bool>("LockoutEnabled") |
|||
.ValueGeneratedOnAdd() |
|||
.HasDefaultValue(false); |
|||
|
|||
b.Property<DateTimeOffset?>("LockoutEnd"); |
|||
|
|||
b.Property<string>("NormalizedEmail") |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("NormalizedUserName") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("PasswordHash") |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("PhoneNumber") |
|||
.HasMaxLength(16); |
|||
|
|||
b.Property<bool>("PhoneNumberConfirmed") |
|||
.ValueGeneratedOnAdd() |
|||
.HasDefaultValue(false); |
|||
|
|||
b.Property<string>("SecurityStamp") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.Property<bool>("TwoFactorEnabled") |
|||
.ValueGeneratedOnAdd() |
|||
.HasDefaultValue(false); |
|||
|
|||
b.Property<string>("UserName") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("NormalizedEmail"); |
|||
|
|||
b.HasIndex("NormalizedUserName"); |
|||
|
|||
b.ToTable("IdentityUsers"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<string>("ClaimType") |
|||
.IsRequired() |
|||
.HasMaxLength(256); |
|||
|
|||
b.Property<string>("ClaimValue") |
|||
.HasMaxLength(1024); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.Property<Guid>("UserId"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("UserId"); |
|||
|
|||
b.ToTable("IdentityUserClaims"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => |
|||
{ |
|||
b.Property<Guid>("UserId"); |
|||
|
|||
b.Property<string>("LoginProvider") |
|||
.HasMaxLength(64); |
|||
|
|||
b.Property<string>("ProviderDisplayName") |
|||
.HasMaxLength(128); |
|||
|
|||
b.Property<string>("ProviderKey") |
|||
.IsRequired() |
|||
.HasMaxLength(196); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.HasKey("UserId", "LoginProvider"); |
|||
|
|||
b.HasIndex("LoginProvider", "ProviderKey"); |
|||
|
|||
b.ToTable("IdentityUserLogins"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => |
|||
{ |
|||
b.Property<Guid>("UserId"); |
|||
|
|||
b.Property<Guid>("RoleId"); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.HasKey("UserId", "RoleId"); |
|||
|
|||
b.HasIndex("RoleId", "UserId"); |
|||
|
|||
b.ToTable("IdentityUserRoles"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => |
|||
{ |
|||
b.Property<Guid>("UserId"); |
|||
|
|||
b.Property<string>("LoginProvider") |
|||
.HasMaxLength(128); |
|||
|
|||
b.Property<string>("Name"); |
|||
|
|||
b.Property<Guid?>("TenantId"); |
|||
|
|||
b.Property<string>("Value"); |
|||
|
|||
b.HasKey("UserId", "LoginProvider", "Name"); |
|||
|
|||
b.ToTable("IdentityUserTokens"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.Identity.IdentityRole") |
|||
.WithMany("Claims") |
|||
.HasForeignKey("RoleId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.Identity.IdentityUser") |
|||
.WithMany("Claims") |
|||
.HasForeignKey("UserId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.Identity.IdentityUser") |
|||
.WithMany("Logins") |
|||
.HasForeignKey("UserId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.Identity.IdentityRole") |
|||
.WithMany() |
|||
.HasForeignKey("RoleId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
|
|||
b.HasOne("Volo.Abp.Identity.IdentityUser") |
|||
.WithMany("Roles") |
|||
.HasForeignKey("UserId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.Identity.IdentityUser") |
|||
.WithMany("Tokens") |
|||
.HasForeignKey("UserId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
#pragma warning restore 612, 618
|
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
@page |
|||
@model MicroserviceDemo.Web.Pages.IndexModel |
|||
<p> |
|||
<abp-card> |
|||
<abp-card-header></abp-card-header> |
|||
<abp-card-body> |
|||
<a href="~/Account/Login">Login</a> |
|||
</abp-card-body> |
|||
</abp-card> |
|||
</p> |
|||
@ -0,0 +1,17 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Microsoft.AspNetCore.Mvc.RazorPages; |
|||
|
|||
namespace MicroserviceDemo.Web.Pages |
|||
{ |
|||
public class IndexModel : PageModel |
|||
{ |
|||
public void OnGet() |
|||
{ |
|||
|
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
|||
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI |
|||
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap |
|||
@ -0,0 +1,3 @@ |
|||
@{ |
|||
Layout = "~/Views/Shared/_AppLayout.cshtml"; |
|||
} |
|||
@ -1,27 +1,36 @@ |
|||
using Microsoft.AspNetCore.Builder; |
|||
using Microsoft.AspNetCore.Hosting; |
|||
using Microsoft.AspNetCore.Http; |
|||
using System; |
|||
using Microsoft.AspNetCore.Builder; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Microsoft.Extensions.Logging; |
|||
using Serilog; |
|||
using Volo.Abp; |
|||
|
|||
namespace MicroserviceDemo.Web |
|||
{ |
|||
public class Startup |
|||
{ |
|||
public void ConfigureServices(IServiceCollection services) |
|||
public IServiceProvider ConfigureServices(IServiceCollection services) |
|||
{ |
|||
services.AddApplication<MicroservicesDemoWebModule>(options => |
|||
{ |
|||
options.UseAutofac(); |
|||
}); |
|||
|
|||
return services.BuildServiceProviderFromFactory(); |
|||
} |
|||
|
|||
public void Configure(IApplicationBuilder app, IHostingEnvironment env) |
|||
public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) |
|||
{ |
|||
if (env.IsDevelopment()) |
|||
{ |
|||
app.UseDeveloperExceptionPage(); |
|||
} |
|||
loggerFactory |
|||
.AddConsole() |
|||
.AddDebug() |
|||
.AddSerilog(new LoggerConfiguration() |
|||
.Enrich.FromLogContext() |
|||
.WriteTo.RollingFile("Logs/logs.txt") |
|||
.CreateLogger() |
|||
); |
|||
|
|||
app.Run(async (context) => |
|||
{ |
|||
await context.Response.WriteAsync("Hello microservices!"); |
|||
}); |
|||
app.InitializeApplication(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,3 @@ |
|||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
|||
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI |
|||
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap |
|||
@ -0,0 +1,3 @@ |
|||
@{ |
|||
Layout = "~/Views/Shared/_AppLayout.cshtml"; |
|||
} |
|||
@ -0,0 +1,6 @@ |
|||
{ |
|||
"ConnectionStrings": { |
|||
"Default": "Server=localhost;Database=MicroservicesDemo.Web;Trusted_Connection=True;MultipleActiveResultSets=true", |
|||
"AbpPermissions": "Server=localhost;Database=MicroservicesDemo.Permissions;Trusted_Connection=True;MultipleActiveResultSets=true" |
|||
} |
|||
} |
|||
Loading…
Reference in new issue