This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/sdk:5.0-focal AS builder | |
WORKDIR /app | |
COPY . . | |
RUN dotnet publish -c Release src/YourProject.Blazor -o /app/publish | |
FROM nginx:alpine | |
COPY --from=builder /app/publish/wwwroot /usr/share/nginx/html/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AppUser : FullAuditedAggregateRoot<Guid>, IUser | |
{ | |
#region Base properties | |
/* These properties are shared with the IdentityUser entity of the Identity module. | |
* Do not change these properties through this class. Instead, use Identity module | |
* services (like IdentityUserManager) to change them. | |
* So, this properties are designed as read only! | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#FROM mcr.microsoft.com/dotnet/sdk:5.0-focal | |
#ENV DOTNET_USE_POLLING_FILE_WATCHER 1 | |
#WORKDIR /app/src/product-service/Volosoft.MyMicroserviceSystem.ProductService.HttpApi.Host | |
#RUN dotnet tool install -g dotnet-serve | |
#ENV PATH="${PATH}:/root/.dotnet/tools" | |
#RUN dotnet tool install --global Volo.Abp.Cli | |
#RUN abp login "[email protected]" -p "12345" | |
#ENTRYPOINT [ "dotnet", "watch", "run", "--urls", "https://0.0.0.0:6001/" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.DependencyInjection; | |
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; | |
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared; | |
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling; | |
using Volo.Abp.Modularity; | |
using Volo.Abp.VirtualFileSystem; | |
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Commercial | |
{ | |
[DependsOn( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading.Tasks; | |
public interface INotificationClient | |
{ | |
Task ReceiveNotificationMessage(string message); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-PSDebug -Trace 0 | |
$packageName = "volo.abp.cli" | |
$output = dotnet tool search $packageName --prerelease --take 1 | |
$outputString = ("" + $output) | |
$indexOfVersionLine = $outputString.IndexOf($packageName) | |
$latestVersion = $outputString.substring($indexOfVersionLine + $packageName.length).trim().split(" ")[0].trim() | |
Write-Host "Updating "$packageName" to" $latestVersion |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.Logging; | |
using Volo.Abp.Data; | |
using Volo.Abp.DependencyInjection; | |
using Volo.Abp.EventBus.Distributed; | |
using Volo.Abp.Identity; | |
using Volo.Abp.MultiTenancy; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Microsoft.Extensions.Localization | |
@using Microsoft.Extensions.Options | |
@using Volo.Abp.AspNetCore.MultiTenancy | |
@using Volo.Abp.AspNetCore.Mvc.AntiForgery | |
@using Volo.Abp.AspNetCore.Mvc.UI.Components.LayoutHook | |
@using Volo.Abp.AspNetCore.Mvc.UI.Layout | |
@using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.Localization | |
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton.Bundling | |
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton.Themes.Lepton.Components.Content.Alerts | |
@using Volo.Abp.Ui.Branding |
This is a GitHub changeset that shows how to add a new microservice to your ABP Commercial microservice solution.
I'll add a new microservice called OrderService
to a new microservice solution.
https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice
Create a new microservice project in your solution: