-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Worked on a bunch of scrips to prepare for action
- Loading branch information
1 parent
cbf9857
commit 629ce37
Showing
15 changed files
with
162 additions
and
45 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,7 @@ | ||
<Project> | ||
<!-- See https://aka.ms/dotnet/msbuild/customize for more details on customizing your build --> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
|
||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<NoWarn>$(NoWarn);1591</NoWarn> | ||
|
||
<Authors>Frank R. Haugen</Authors> | ||
<PublisherName>Frank R. Haugen</PublisherName> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>portable</DebugType> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<PackageId>Frank.PulseFlow</PackageId> | ||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageProjectUrl>www.github.com/frankhaugen/Frank.PulseFlow</PackageProjectUrl> | ||
<PackageTags>Frank.PulseFlow</PackageTags> | ||
<RepositoryUrl>www.github.com/frankhaugen/Frank.PulseFlow</RepositoryUrl> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/> | ||
</ItemGroup> | ||
</Project> |
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
6 changes: 6 additions & 0 deletions
6
Frank.PulseFlow.Tests.Benchmarks/Shared/PersistenceService.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Frank.PulseFlow.Tests.Benchmarks.Shared; | ||
|
||
public class PersistenceService | ||
{ | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
Frank.PulseFlow.Tests.Benchmarks/Traditional/MyTraditionalService.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Frank.PulseFlow.Tests.Benchmarks.Traditional; | ||
|
||
public class MyTraditionalService | ||
{ | ||
|
||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,35 @@ | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.Hosting; | ||
|
||
namespace Frank.PulseFlow.Tests; | ||
|
||
public class UnitTest1 | ||
public class PulseFlowTests | ||
{ | ||
[Fact] | ||
public void Test1() | ||
{ | ||
var host = CreateHostBuilder().Build(); | ||
var pulseFlow = host.Services.GetRequiredService<IConduit>(); | ||
|
||
|
||
|
||
} | ||
|
||
private class MyClass : BasePulse | ||
{ | ||
public string Text { get; set; } | ||
} | ||
|
||
private IHostBuilder CreateHostBuilder() | ||
{ | ||
return Host.CreateDefaultBuilder() | ||
.ConfigureServices((context, services) => | ||
{ | ||
services.AddPulseFlow(builder => | ||
{ | ||
// builder.AddFlow<Flow1>(); | ||
// builder.AddFlow<Flow2>(); | ||
}); | ||
}); | ||
} | ||
} |
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
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
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
param ( | ||
[Parameter(Mandatory=$false)] | ||
[string]$version = (Get-Date -Format 'yyyy.MM.dd') | ||
) | ||
|
||
# Get directory of the script | ||
$scriptDirectory = Split-Path -Parent $MyInvocation.MyCommand.Definition | ||
|
||
# Get path to the project file | ||
$projectFile = "$scriptDirectory/Frank.PulseFlow/Frank.PulseFlow.csproj" | ||
|
||
# Build the solution in the specified mode | ||
Write-Host "Building solution in Release mode..." -ForegroundColor DarkCyan | ||
dotnet build $projectFile --configuration Release --no-restore /p:Version=$version | Out-Null | ||
|
||
# Exit with a success code | ||
exit 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
param ( | ||
[Parameter(Mandatory=$false)] | ||
[string]$version = (Get-Date -Format 'yyyy.MM.dd') | ||
) | ||
|
||
# Get directory of the script | ||
$scriptDirectory = Split-Path -Parent $MyInvocation.MyCommand.Definition | ||
|
||
# Get path to the output directory | ||
$outputDirectory = "$scriptDirectory/.artifacts" | ||
|
||
# Get path to the publish directory | ||
$publishDirectory = "$outputDirectory/publish" | ||
|
||
# Get path to the package directory | ||
$packageDirectory = "$outputDirectory/packages" | ||
|
||
# Get path to the project file | ||
$projectFile = "$scriptDirectory/Frank.PulseFlow/Frank.PulseFlow.csproj" | ||
|
||
# Clean output directories | ||
if (Test-Path $publishDirectory) { Remove-Item "$publishDirectory/*" -Recurse } | ||
if (Test-Path $packageDirectory) { Remove-Item "$packageDirectory/*" -Recurse } | ||
|
||
# Pack NuGet packages | ||
Write-Host "Packing NuGet packages..." -ForegroundColor DarkCyan | ||
dotnet pack $projectFile --configuration Release --output $packageDirectory --no-build /p:Version=$version /p:PackageVersion=$version | Out-Null | ||
|
||
# Exit with a success code | ||
exit 0 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Get directory of the script | ||
$scriptDirectory = Split-Path -Parent $MyInvocation.MyCommand.Definition | ||
|
||
# Get path to the project file | ||
$projectFile = "$scriptDirectory/Frank.PulseFlow/Frank.PulseFlow.csproj" | ||
|
||
# Restore NuGet packages | ||
Write-Host "Restoring NuGet packages..." -ForegroundColor Cyan | ||
dotnet restore $projectFile | Out-Null | ||
|
||
# Exit with a success code | ||
exit 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Get the script directory | ||
$scriptDirectory = Split-Path -Parent $MyInvocation.MyCommand.Definition | ||
|
||
# Get the project file for the test project | ||
$projectFile = "$scriptDirectory/Frank.PulseFlow.Tests/Frank.PulseFlow.Tests.csproj" | ||
|
||
# Test the project | ||
Write-Host "Running unit tests..." -ForegroundColor DarkCyan | ||
dotnet test $projectFile --configuration Release | ||
|
||
# Exit with a success code | ||
exit 0 |