Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
siegrainwong committed Jun 17, 2019
1 parent 42405da commit 88956f4
Show file tree
Hide file tree
Showing 235 changed files with 232 additions and 289 deletions.
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public/
.nuxt/
dist/
*.pubxml
/Blog.API/Properties/PublishProfiles
/Ancorazor.API/Properties/PublishProfiles
SmartSqlMapConfig.Development.xml
/Blog.API/SmartSqlMapConfig.Production.xml
/Blog.API/SmartSqlMapConfig.Release.xml
/Blog.EF.Entity/appsettings.json
/Blog.API/Upload
/Blog.API/Logs
/Ancorazor.API/SmartSqlMapConfig.Production.xml
/Ancorazor.API/SmartSqlMapConfig.Release.xml
/Ancorazor.EF.Entity/appsettings.json
/Ancorazor.API/Upload
/Ancorazor.API/Logs
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Blog.API.Common.Constants
namespace Ancorazor.API.Common.Constants
{
/// <summary>
/// AppSettings.SEOConfiguration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Blog.API.Common.Constants
namespace Ancorazor.API.Common.Constants
{
public static class Constants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Blog.API.Common.Constants;
using Ancorazor.API.Common.Constants;
using Microsoft.Extensions.Options;
using Siegrain.Common;
using System;
using System.Net;
using System.Text.RegularExpressions;

namespace Blog.API.Common
namespace Ancorazor.API.Common
{
public class UrlHelper
{
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Xunit;

namespace Blog.API.Tests
namespace Ancorazor.API.Tests
{
public class UnitTest1
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Blog.API.Common\Blog.API.Common.csproj" />
<ProjectReference Include="..\Blog.Entity\Blog.Entity.csproj" />
<ProjectReference Include="..\Blog.Messages\Blog.API.Messages.csproj" />
<ProjectReference Include="..\Blog.Service\Blog.Service.csproj" />
<ProjectReference Include="..\Ancorazor.API.Common\Ancorazor.API.Common.csproj" />
<ProjectReference Include="..\Ancorazor.Entity\Ancorazor.Entity.csproj" />
<ProjectReference Include="..\Ancorazor.Messages\Ancorazor.API.Messages.csproj" />
<ProjectReference Include="..\Ancorazor.Service\Ancorazor.Service.csproj" />
<ProjectReference Include="..\Siegrain.Common\Siegrain.Common.csproj" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Blog.Entity;
using Blog.Service;
using Ancorazor.Entity;
using Ancorazor.Service;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;
using System;
Expand All @@ -8,7 +8,7 @@
using System.Security.Claims;
using System.Threading.Tasks;

namespace Blog.API.Authentication
namespace Ancorazor.API.Authentication
{
public class SGCookieAuthenticationEvents : CookieAuthenticationEvents
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using AutoMapper;
using Blog.API.Messages;
using Blog.API.Messages.Article;
using Blog.Entity;
using Ancorazor.API.Messages;
using Ancorazor.API.Messages.Article;
using Ancorazor.Entity;

namespace Blog.API.AutoMapper
namespace Ancorazor.API.AutoMapper
{
public class MappingProfile : Profile
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#region

using Blog.API.Controllers.Base;
using Blog.API.Messages;
using Blog.API.Messages.Article;
using Blog.Service;
using Ancorazor.API.Controllers.Base;
using Ancorazor.API.Messages;
using Ancorazor.API.Messages.Article;
using Ancorazor.Service;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;

#endregion

namespace Blog.API.Controllers
namespace Ancorazor.API.Controllers
{
[ApiController]
[Route("api/[controller]")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Blog.API.Messages;
using Blog.Entity;
using Blog.Service;
using Ancorazor.API.Messages;
using Ancorazor.Entity;
using Ancorazor.Service;
using Microsoft.AspNetCore.Mvc;
using System.Security.Claims;
using System.Threading.Tasks;

namespace Blog.API.Controllers.Base
namespace Ancorazor.API.Controllers.Base
{
public abstract class SGControllerBase : ControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Blog.API.Common.Constants;
using Blog.API.Controllers.Base;
using Blog.API.Messages.Exceptions;
using Blog.Entity;
using Blog.Service;
using Ancorazor.API.Common.Constants;
using Ancorazor.API.Controllers.Base;
using Ancorazor.API.Messages.Exceptions;
using Ancorazor.Entity;
using Ancorazor.Service;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
Expand All @@ -13,7 +13,7 @@
using System.Net;
using System.Threading.Tasks;

namespace Blog.API.Controllers
namespace Ancorazor.API.Controllers
{
[ApiController]
[Route("api/[controller]")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#region

using Blog.API.Messages.Users;
using Blog.Entity;
using Ancorazor.API.Messages.Users;
using Ancorazor.Entity;
using Microsoft.AspNetCore.Antiforgery;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;
Expand All @@ -14,12 +14,12 @@
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Blog.API.Controllers.Base;
using Blog.Service;
using Ancorazor.API.Controllers.Base;
using Ancorazor.Service;

#endregion

namespace Blog.API.Controllers
namespace Ancorazor.API.Controllers
{
[ValidateAntiForgeryToken]
[ApiController]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#region

using Blog.API.Common.Constants;
using Blog.API.Messages;
using Blog.API.Messages.Exceptions;
using Ancorazor.API.Common.Constants;
using Ancorazor.API.Messages;
using Ancorazor.API.Messages.Exceptions;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Logging;
using System.Net;
using Siegrain.Common;
using Blog.API.Messages.Exceptions.Attributes;
using Ancorazor.API.Messages.Exceptions.Attributes;
using AspectCore.Extensions.Reflection;
using AspectCore.DynamicProxy;

#endregion

namespace Blog.API.Filters
namespace Ancorazor.API.Filters
{
public class GlobalExceptionFilter : IExceptionFilter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#region

using Blog.API.Messages;
using Ancorazor.API.Messages;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
Expand All @@ -11,7 +11,7 @@

#endregion

namespace Blog.API.Filters
namespace Ancorazor.API.Filters
{
public class GlobalValidateModelFilter : IActionFilter
{
Expand Down
2 changes: 1 addition & 1 deletion Blog.API/Program.cs → Ancorazor.API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#endregion

namespace Blog.API
namespace Ancorazor.API
{
public class Program
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"profiles": {
"Blog.API": {
"Ancorazor.API": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "swagger",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Linq;
using System.Threading.Tasks;

namespace Blog.API.Services
namespace Ancorazor.API.Services
{
public static class SpaPrerenderingServiceLocator
{
Expand Down
20 changes: 10 additions & 10 deletions Blog.API/Startup.cs → Ancorazor.API/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using AspectCore.Extensions.DependencyInjection;
using AspectCore.Injector;
using AutoMapper;
using Blog.API.Authentication;
using Blog.API.AutoMapper;
using Blog.API.Common;
using Blog.API.Common.Constants;
using Blog.API.Filters;
using Blog.Entity;
using Ancorazor.API.Authentication;
using Ancorazor.API.AutoMapper;
using Ancorazor.API.Common;
using Ancorazor.API.Common.Constants;
using Ancorazor.API.Filters;
using Ancorazor.Entity;
using EasyCaching.Core;
using EasyCaching.InMemory;
using EasyCaching.Interceptor.AspectCore;
Expand Down Expand Up @@ -39,16 +39,16 @@
using SkyWalking.AspNetCore;
using SkyWalking.Diagnostics.HttpClient;
using SkyWalking.Diagnostics.SqlClient;
using Blog.API.Services;
using Ancorazor.API.Services;
using Serilog.Core;

#endregion

namespace Blog.API
namespace Ancorazor.API
{
public class Startup
{
private const string _ServiceName = "Blog.API";
private const string _ServiceName = "Ancorazor.API";
private const string _CacheProviderName = "default";

private readonly IConfiguration _configuration;
Expand Down Expand Up @@ -251,7 +251,7 @@ private void RegisterAuthentication(IServiceCollection services)

private void RegisterService(IServiceCollection services)
{
var assembly = Assembly.Load("Blog.Service");
var assembly = Assembly.Load("Ancorazor.Service");
var allTypes = assembly.GetTypes();
foreach (var type in allTypes) services.AddScoped(type);
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Blog.Entity</AssemblyName>
<RootNamespace>Blog.Entity</RootNamespace>
<AssemblyName>Ancorazor.Entity</AssemblyName>
<RootNamespace>Ancorazor.Entity</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand All @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Blog.API.Common\Blog.API.Common.csproj" />
<ProjectReference Include="..\Ancorazor.API.Common\Ancorazor.API.Common.csproj" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions Blog.Entity/Article.cs → Ancorazor.Entity/Article.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Blog.Entity.Base;
using Ancorazor.Entity.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Blog.Entity
namespace Ancorazor.Entity
{
public partial class Article: BaseEntity
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Blog.Entity.Base;
using Ancorazor.Entity.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Blog.Entity
namespace Ancorazor.Entity
{
public partial class ArticleTags: BaseEntity
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Blog.Entity.Base
namespace Ancorazor.Entity.Base
{
public class BaseEntity
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using Blog.API.Common;
using Blog.API.Common.Constants;
using Blog.Entity.Base;
using Ancorazor.API.Common;
using Ancorazor.API.Common.Constants;
using Ancorazor.Entity.Base;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using System;
using System.IO;
using System.Linq;

namespace Blog.Entity
namespace Ancorazor.Entity
{
public partial class BlogContext : DbContext
{
Expand Down
4 changes: 2 additions & 2 deletions Blog.Entity/Category.cs → Ancorazor.Entity/Category.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Blog.Entity.Base;
using Ancorazor.Entity.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Blog.Entity
namespace Ancorazor.Entity
{
public partial class Category: BaseEntity
{
Expand Down
Loading

0 comments on commit 88956f4

Please sign in to comment.