This file contains 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 SeedTestDataTestBaseModule : AbpModule | |
{ | |
private static readonly SemaphoreSlim Semaphore = new SemaphoreSlim(1, 1); | |
public override void OnApplicationInitialization(ApplicationInitializationContext context) | |
{ | |
SeedTestData(context); | |
} | |
private static void SeedTestData(ApplicationInitializationContext context) |
This file contains 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.Text; | |
using System.Text.RegularExpressions; | |
using System.Xml.Linq; | |
var abpPackages = new Dictionary<string, string>(); | |
var csprojFiles = Directory.GetFiles("C:\\Github\\Volosoft\\abp", "*.csproj", SearchOption.AllDirectories); | |
foreach (var csprojFile in csprojFiles) | |
{ | |
var csproj = XDocument.Load(csprojFile); |
This file contains 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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net7.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
<ItemGroup> |
This file contains 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
var i = 1; | |
var timer = new AsyncTimer(1000, false) | |
{ | |
Callback = async (timer, token) => | |
{ | |
Console.WriteLine(i++); | |
if (i > 5) | |
{ |
This file contains 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 Abp.Application.Services; | |
using Abp.AspNetCore.Configuration; | |
using Abp.Extensions; | |
using Castle.Windsor.MsDependencyInjection; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.ApplicationModels; | |
using Microsoft.Extensions.DependencyInjection; | |
using System.Linq; |
This file contains 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.Globalization; | |
using System.Text; | |
using Microsoft.IdentityModel.Tokens; | |
using Volo.Abp.Text.Formatting; | |
using LogHelper = Microsoft.IdentityModel.Logging.LogHelper; | |
namespace MyCompanyName.MyProjectName | |
{ |
This file contains 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 Microsoft.AspNetCore.Mvc; | |
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo | |
{ | |
[Area("Test")] | |
[Route("Test/[action]")] | |
public class TestController : AbpController, IRemoteService | |
{ | |
[HttpGet] |
This file contains 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
// module test | |
(function(){ | |
// controller volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test | |
(function(){ | |
abp.utils.createNamespace(window, 'volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test'); |
This file contains 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.Reflection; | |
using System.Text; | |
using JetBrains.Annotations; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.Abstractions; | |
using Microsoft.AspNetCore.Mvc.ApiExplorer; | |
using Microsoft.AspNetCore.Mvc.ModelBinding; |
NewerOlder