Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mustaddon committed Nov 13, 2021
1 parent 56d5aca commit f31d88d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using FluentStateMachine;
using System;
using System.Threading;
using System.Threading.Tasks;

namespace ConsoleApp
Expand Down
17 changes: 6 additions & 11 deletions FluentStateMachine.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ VisualStudioVersion = 17.0.31717.71
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentStateMachine", "FluentStateMachine\FluentStateMachine.csproj", "{D6D3C3E9-73EF-48E9-9D82-017BA0123C24}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleApp", "Examples\ConsoleApp\ConsoleApp.csproj", "{EA950F42-CB53-4119-8AB9-D9305AE8A32A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{4C1BDDED-BF17-4F95-B295-4AC93351993A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{35BB4148-B10F-4F43-833D-8FD5169DDA63}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Example.ConsoleApp", "Examples\Example.ConsoleApp\Example.ConsoleApp.csproj", "{C5F5E949-3F64-44B3-82CA-A1CE2FB64253}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -26,17 +24,14 @@ Global
{D6D3C3E9-73EF-48E9-9D82-017BA0123C24}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D6D3C3E9-73EF-48E9-9D82-017BA0123C24}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D6D3C3E9-73EF-48E9-9D82-017BA0123C24}.Release|Any CPU.Build.0 = Release|Any CPU
{EA950F42-CB53-4119-8AB9-D9305AE8A32A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EA950F42-CB53-4119-8AB9-D9305AE8A32A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EA950F42-CB53-4119-8AB9-D9305AE8A32A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EA950F42-CB53-4119-8AB9-D9305AE8A32A}.Release|Any CPU.Build.0 = Release|Any CPU
{C5F5E949-3F64-44B3-82CA-A1CE2FB64253}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C5F5E949-3F64-44B3-82CA-A1CE2FB64253}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C5F5E949-3F64-44B3-82CA-A1CE2FB64253}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C5F5E949-3F64-44B3-82CA-A1CE2FB64253}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{EA950F42-CB53-4119-8AB9-D9305AE8A32A} = {4C1BDDED-BF17-4F95-B295-4AC93351993A}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {DACFBC98-29C9-4EB3-911D-D6D08B83C3ED}
EndGlobalSection
Expand Down
15 changes: 5 additions & 10 deletions FluentStateMachine/FluentStateMachine.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net45;netstandard2.0;netstandard2.1;</TargetFrameworks>
<AssemblyName>FluentStateMachine</AssemblyName>
<RootNamespace>FluentStateMachine</RootNamespace>
<TargetFrameworks>net45;netstandard2.0;netstandard2.1;net6.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\FluentStateMachine.snk</AssemblyOriginatorKeyFile>
<AssemblyVersion>1.0.0</AssemblyVersion>
<FileVersion>1.0.0</FileVersion>
<Version>1.0.0</Version>
<AssemblyVersion>1.0.1</AssemblyVersion>
<FileVersion>1.0.1</FileVersion>
<Version>1.0.1</Version>

<Company></Company>
<Authors>Leonid Salavatov</Authors>
Expand All @@ -27,9 +26,5 @@
<NeutralLanguage />
<PackageReleaseNotes></PackageReleaseNotes>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net45'">
<DefineConstants>NET45</DefineConstants>
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion FluentStateMachine/FsmExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace FluentStateMachine
public static class FsmExtensions
{

#if NETSTANDARD2_1_OR_GREATER
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
private static async Task<List<T>> ToListAsync<T>(this IAsyncEnumerable<T> items, CancellationToken cancellationToken = default)
{
var result = new List<T>();
Expand Down
2 changes: 1 addition & 1 deletion FluentStateMachine/IStateMachine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public interface IStateMachine<TState, TEvent> : IStateMachine
Task<bool> JumpToAsync(TState state, object data = null, CancellationToken cancellationToken = default);
Task ResetToAsync(TState state, CancellationToken cancellationToken = default);

#if NETSTANDARD2_1_OR_GREATER
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
IAsyncEnumerable<TState> GetStatesAsync(object data = null, CancellationToken cancellationToken = default);
IAsyncEnumerable<TEvent> GetEventsAsync(object data = null, CancellationToken cancellationToken = default);
#else
Expand Down
2 changes: 1 addition & 1 deletion FluentStateMachine/StateMachine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public StateMachine(FsmModel<TState, TEvent> model)

public TState Current { get; private set; }

#if NETSTANDARD2_1_OR_GREATER
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public async IAsyncEnumerable<TState> GetStatesAsync(object data = null,
[System.Runtime.CompilerServices.EnumeratorCancellation] CancellationToken cancellationToken = default)
{
Expand Down

0 comments on commit f31d88d

Please sign in to comment.