From e52f9cfaf19db3a52b377115e35a10487622ab7a Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月20日 22:17:14 +0300 Subject: [PATCH 01/36] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d897f73..ab090bf 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary?color=blue)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) From 0bc36e7d3bd805218cc97a336a4c5aee43d65618 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月20日 22:19:02 +0300 Subject: [PATCH 02/36] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ab090bf..9ee040f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary?color=blue)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) -[![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) +[![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary?color=yellow)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) # SimpleStateMachineLibrary A C# library for realization simple state-machine on .Net From 784caa17f041efef9732fda8c24bd4da0f43dfb5 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月20日 22:19:57 +0300 Subject: [PATCH 03/36] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9ee040f..ad68684 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -[![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary?color=blue)](https://www.nuget.org/packages/SimpleStateMachineLibrary) +[![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) -[![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary?color=yellow)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) +[![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) # SimpleStateMachineLibrary A C# library for realization simple state-machine on .Net From c361493fdfbf3376710942a80a0c80adc68c13a0 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 12:30:21 +0300 Subject: [PATCH 04/36] ignore for icon --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e16bdbd..f03b9e4 100644 --- a/.gitignore +++ b/.gitignore @@ -339,4 +339,6 @@ ASALocalRun/ # BeatPulse healthcheck temp database healthchecksdb -CodeMap1.dgml \ No newline at end of file +CodeMap1.dgml + +SimpleStateMachine.png \ No newline at end of file From 0ed8d14162e60b3ec7c76a4b2e4ac8b56d372b93 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 12:56:13 +0300 Subject: [PATCH 05/36] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ad68684..cd5754e 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) # SimpleStateMachineLibrary A C# library for realization simple state-machine on .Net + +Documentation: https://github.com/SimpleStateMachine/SimpleStateMachineLibrary # Why SimpleStateMachine? Create state machine in **two steps** : 1. Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) ♦️ From fd8145f3109be8e891c7bd6a9573a66834a23405 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 12:56:41 +0300 Subject: [PATCH 06/36] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cd5754e..1130b90 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ # SimpleStateMachineLibrary A C# library for realization simple state-machine on .Net -Documentation: https://github.com/SimpleStateMachine/SimpleStateMachineLibrary +Documentation: https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki # Why SimpleStateMachine? Create state machine in **two steps** : 1. Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) ♦️ From ae7626b6bb027015a479bf0f82f8e9fea36dc2b6 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 12:58:11 +0300 Subject: [PATCH 07/36] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1130b90..3feaade 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ # SimpleStateMachineLibrary A C# library for realization simple state-machine on .Net -Documentation: https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki +[📄Documentation](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki) # Why SimpleStateMachine? Create state machine in **two steps** : 1. Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) ♦️ From 0e4147775078b30179ad6abacf9c5c143893d4fb Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 13:25:29 +0300 Subject: [PATCH 08/36] Update README.md --- README.md | 127 ++++++++---------------------------------------------- 1 file changed, 19 insertions(+), 108 deletions(-) diff --git a/README.md b/README.md index 3feaade..2601eb5 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,24 @@ -[![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) -[![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) -[![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) -[![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) -# SimpleStateMachineLibrary -A C# library for realization simple state-machine on .Net -[📄Documentation](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki) -# Why SimpleStateMachine? - Create state machine in **two steps** : -1. Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) ♦️ -2. Load scheme in your project using [library](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary)📑 - - Just describe your app logic and run the state machine🚀 - +# SimpleStateMachineLibrary [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) +A C# library for realization simple state-machine on .Net +Create state machine in three steps : +1. Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load scheme in your project using [library](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) +```C# +StateMachine stateMachine = new StateMachine("scheme.xml"); +``` +2. Describe your app logic on events + ```C# +stateMachine.GetState("State1").OnExit(Action1); +stateMachine.GetState("State2").OnEntry(Action2); +stateMachine.GetTransition("Transition1").OnInvoke(Action3); +stateMachine.OnChangeState(Action4); +``` +3. Run the state machine + ```C# +stateMachine.Start(parametersForStart); +``` ## Give a Star! :star: If you like or are using this project please give it a star. Thanks! -## Сontent -1. [Features](#Features) -2. [Examples](#Examples) -4. [Documentation](#Documentation) -4. [License](#License) ## Features @@ -37,96 +36,8 @@ Useful extensions for work: * Export/Import to/from XML * Logging - -## Examples: - -### Structure ### -```C# - StateMachine stateMachine = new StateMachine(); - - //Add states - State state1 = stateMachine.AddState("State1"); - State state2 = stateMachine.AddState("State2"); - State state3 = stateMachine.AddState("State3"); - State state4 = stateMachine.AddState("State4"); - - //Add transitions three ways: - - //Standart way - Transition transition1 = stateMachine.AddTransition("Transition1", state1, state2); - - //From state - Transition transition2 = state2.AddTransitionFromThis("Transition2", state3); - - //To state - Transition transition3 = state4.AddTransitionToThis("Transition3", state3); - - //Add action on entry or/and exit - state1.OnExit(Action1); - state2.OnEntry(Action2); - state3.OnExit(Action3); - state4.OnExit(Action4); - - //Set start state - state1.SetAsStartState(); - - //Start work - stateMachine.Start(); -``` -### Actions Syntax ### -##### Action on entry/exit ##### -```C# - void ActionOnEtnry(State state, Dictionary parameters) - { - //you need invoke transition in entry or exit action, differently work state machine will be end - state.StateMachine.InvokeTransition("Transition1"); - } - -``` -##### Action on change state ##### -```C# - void ActionOnChangeState(State stateFrom, State stateTo) - { - - } -``` -##### Action on transition invoke ##### -```C# - void ActionOnTransitionInvoke(Transition transition, Dictionary parameters) - { - - } -``` ## Documentation -* StateMachine - * [Create](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/StateMachine#Create) - * [Import](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/StateMachine#Import) - * [Export](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/StateMachine#Export) - * [Logging](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/StateMachine#Logging) - * [OnChangeState](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/StateMachine#OnChangeState) - * [CurrentState](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/StateMachine#CurrentState) - * [PreviousState](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/StateMachine#PreviousState) - * [CurrentTransition](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/StateMachine#CurrentTransition) -* State - * [Create](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/State#Create) - * [Get](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/State#Get) - * [Exists](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/State#Exists) - * [Delete](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/State#Delete) - * [Entry](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/State#Entry) - * [Exit](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/State#Exit) -* Transition - * [Create](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/Transition#Create) - * [Get](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/Transition#Get) - * [Exists](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/Transition#Exists) - * [Delete](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/Transition#Delete) - * [Invoke](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/Transition#Invoke) - * [Parameters](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/Transition#Parameters) -* Data - * [Create](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/Data#Create) - * [Get](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/Data#Get) - * [Exists](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/Data#Exists) - * [Delete](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/Data#Delete) - * [Change](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki/Data#Change) + ## License Copyright (c) SimpleStateMachine From 348a2360a19d46b5a1dcc892832e688a9bb1ec65 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 13:30:46 +0300 Subject: [PATCH 09/36] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2601eb5..d08fb67 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,20 @@ # SimpleStateMachineLibrary [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) A C# library for realization simple state-machine on .Net -Create state machine in three steps : -1. Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load scheme in your project using [library](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) + +Create state machine in **three** steps : +**1.** Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load scheme in your project using [library](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) ```C# StateMachine stateMachine = new StateMachine("scheme.xml"); ``` -2. Describe your app logic on events +**2.** Describe your app logic on events ```C# stateMachine.GetState("State1").OnExit(Action1); stateMachine.GetState("State2").OnEntry(Action2); stateMachine.GetTransition("Transition1").OnInvoke(Action3); stateMachine.OnChangeState(Action4); ``` -3. Run the state machine +**3.** Run the state machine ```C# stateMachine.Start(parametersForStart); ``` From bb71c2df7f99c1029b4b3fea26b953d002732311 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 13:31:04 +0300 Subject: [PATCH 10/36] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d08fb67..db7915e 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ A C# library for realization simple state-machine on .Net Create state machine in **three** steps : + **1.** Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load scheme in your project using [library](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) ```C# StateMachine stateMachine = new StateMachine("scheme.xml"); From b0b8a53053a5cca6012c73b56b7b5bbc9c77c88f Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 13:31:47 +0300 Subject: [PATCH 11/36] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index db7915e..a0be99b 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ Useful extensions for work: * Logging ## Documentation +Documentation here: https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki ## License From ceef98b5c2be41e5429bc66cb404ee43101ff911 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 13:32:14 +0300 Subject: [PATCH 12/36] Update README.md --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index a0be99b..aeb96cc 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,6 @@ stateMachine.OnChangeState(Action4); ```C# stateMachine.Start(parametersForStart); ``` -## Give a Star! :star: -If you like or are using this project please give it a star. Thanks! - ## Features State machine properties: From 5e3c7393bd242ed6551f9c17154ab16ab9693e5f Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 13:33:10 +0300 Subject: [PATCH 13/36] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aeb96cc..20f53d2 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ stateMachine.OnChangeState(Action4); ``` **3.** Run the state machine ```C# -stateMachine.Start(parametersForStart); +stateMachine.Start(); ``` ## Features From 5d9557661c1a318414a3cc0116809c825b7f8fa5 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 13:41:12 +0300 Subject: [PATCH 14/36] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 20f53d2..7a27e96 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ # SimpleStateMachineLibrary [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) A C# library for realization simple state-machine on .Net + # Why SimpleStateMachine? Create state machine in **three** steps : **1.** Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load scheme in your project using [library](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) From ff56b5e56b8b1ce91551cf3a2eb737c0e7131683 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 13:41:35 +0300 Subject: [PATCH 15/36] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a27e96..c18648c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A C# library for realization simple state-machine on .Net # Why SimpleStateMachine? Create state machine in **three** steps : -**1.** Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load scheme in your project using [library](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) +**1.** Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load it in your project using [library](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) ```C# StateMachine stateMachine = new StateMachine("scheme.xml"); ``` From 445fafcaa642ad0c45bd7697e95e127fd1b89c7b Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 14:06:25 +0300 Subject: [PATCH 16/36] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c18648c..cc82b01 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A C# library for realization simple state-machine on .Net # Why SimpleStateMachine? Create state machine in **three** steps : -**1.** Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load it in your project using [library](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) +**1.** Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load it in your project using [📚library](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) ```C# StateMachine stateMachine = new StateMachine("scheme.xml"); ``` From f53cf3daab89ff19b8affec87a38e9a930bbe4eb Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 14:06:47 +0300 Subject: [PATCH 17/36] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cc82b01..0abdb3b 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A C# library for realization simple state-machine on .Net # Why SimpleStateMachine? Create state machine in **three** steps : -**1.** Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load it in your project using [📚library](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) +**1.** Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load it in your project using [this library 📚](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) ```C# StateMachine stateMachine = new StateMachine("scheme.xml"); ``` From 69d72b5d5766223d53b6159705ca61f6449157d0 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 14:09:19 +0300 Subject: [PATCH 18/36] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0abdb3b..c1e565b 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A C# library for realization simple state-machine on .Net # Why SimpleStateMachine? Create state machine in **three** steps : -**1.** Create scheme in [node editor](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load it in your project using [this library 📚](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) +**1.** Create scheme in [node editor🔗](https://github.com/SimpleStateMachine/SimpleStateMachineNodeEditor) and load it in your project using [this library📚](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) ```C# StateMachine stateMachine = new StateMachine("scheme.xml"); ``` From 52c07a06a97aec996a489d1b46d7733736677f9f Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 14:15:00 +0300 Subject: [PATCH 19/36] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c1e565b..d0c429a 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,14 @@ Create state machine in **three** steps : ```C# StateMachine stateMachine = new StateMachine("scheme.xml"); ``` -**2.** Describe your app logic on events +**2.** Describe your app logic on events⚡ ```C# stateMachine.GetState("State1").OnExit(Action1); stateMachine.GetState("State2").OnEntry(Action2); stateMachine.GetTransition("Transition1").OnInvoke(Action3); stateMachine.OnChangeState(Action4); ``` -**3.** Run the state machine +**3.** Run the state machine🚘 ```C# stateMachine.Start(); ``` From 31eab8a3e73afef35d58fde4973f334aace4575e Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 14:18:08 +0300 Subject: [PATCH 20/36] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d0c429a..c79a7da 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ stateMachine.OnChangeState(Action4); ```C# stateMachine.Start(); ``` -## Features +## Features↗️ State machine properties: * Start state @@ -36,7 +36,7 @@ Useful extensions for work: * Export/Import to/from XML * Logging -## Documentation +## Documentation📄 Documentation here: https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki ## License From 1fc15d0b8213af9c5e58d844bbe0cc9cab31ba17 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 14:22:32 +0300 Subject: [PATCH 21/36] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c79a7da..f7687c6 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ stateMachine.OnChangeState(Action4); ```C# stateMachine.Start(); ``` -## Features↗️ +## Features💡 State machine properties: * Start state @@ -39,7 +39,7 @@ Useful extensions for work: ## Documentation📄 Documentation here: https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki -## License +## License📑 Copyright (c) SimpleStateMachine From 1cabed3e1f7c74f095c5615644265e14fa803f04 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 15:13:11 +0300 Subject: [PATCH 22/36] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index f7687c6..eb0d3f5 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,11 @@ Useful extensions for work: * Export/Import to/from XML * Logging +## Getting Started +Install from Nuget: +```sh + Install-Package SimpleStateMachineLibrary +``` ## Documentation📄 Documentation here: https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki From 33770e6e8b49a1f3491932f4a8f5ae593b3564d7 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 15:45:50 +0300 Subject: [PATCH 23/36] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index eb0d3f5..318c753 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ stateMachine.OnChangeState(Action4); ```C# stateMachine.Start(); ``` + ## Give a Star! :star: +If you like or are using this project please give it a star. Thanks! + ## Features💡 State machine properties: From c54c1ccc85dd73d5cadd5c6ff0c9afb001f4d563 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 15:46:10 +0300 Subject: [PATCH 24/36] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 318c753..28404fb 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ # SimpleStateMachineLibrary [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) A C# library for realization simple state-machine on .Net + ## Give a Star! :star: +If you like or are using this project please give it a star. Thanks! + # Why SimpleStateMachine? Create state machine in **three** steps : @@ -20,9 +23,6 @@ stateMachine.OnChangeState(Action4); ```C# stateMachine.Start(); ``` - ## Give a Star! :star: -If you like or are using this project please give it a star. Thanks! - ## Features💡 State machine properties: From 2a5d4d1afe7eb29c22b3b6c0d0e59a5d997afc08 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年6月21日 19:12:03 +0300 Subject: [PATCH 25/36] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 28404fb..c482d53 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Useful extensions for work: * Export/Import to/from XML * Logging -## Getting Started +## Getting Started📂 Install from Nuget: ```sh Install-Package SimpleStateMachineLibrary From 62c22cd634115540f3b4700e0e61def3bd7e3414 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年7月10日 14:48:00 +0300 Subject: [PATCH 26/36] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c482d53..a348cc0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# SimpleStateMachineLibrary [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) +# SimpleStateMachineLibrary [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/badge/chat-slack-blueviolet.svg)](https://join.slack.com/t/simplestatemachine/shared_invite/zt-fnfhvvsx-fTejcpPn~PPb2ojdG_MQBg) [![](https://img.shields.io/badge/chat-telegram-blue.svg)](https://t.me/joinchat/HMLJFkv9do6aDV188rhd0w) A C# library for realization simple state-machine on .Net ## Give a Star! :star: @@ -47,6 +47,14 @@ Install from Nuget: ## Documentation📄 Documentation here: https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/wiki + ## FAQ❔ + If you think you have found a bug, create a github [issue](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary/issues). + + But if you just have questions about how to use: + +- [Slack channel](https://join.slack.com/t/simplestatemachine/shared_invite/zt-fnfhvvsx-fTejcpPn~PPb2ojdG_MQBg) +- [Telegram channel](https://t.me/joinchat/HMLJFkv9do6aDV188rhd0w) + ## License📑 Copyright (c) SimpleStateMachine From f1a7f74d1444bceb78352cd5882efc019d058fea Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年7月11日 01:33:53 +0300 Subject: [PATCH 27/36] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a348cc0..4e49be3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ -# SimpleStateMachineLibrary [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/badge/chat-slack-blueviolet.svg)](https://join.slack.com/t/simplestatemachine/shared_invite/zt-fnfhvvsx-fTejcpPn~PPb2ojdG_MQBg) [![](https://img.shields.io/badge/chat-telegram-blue.svg)](https://t.me/joinchat/HMLJFkv9do6aDV188rhd0w) + [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/languages/code-size/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) + [![]( https://img.shields.io/github/last-commit/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) + + [![](https://img.shields.io/badge/chat-slack-blueviolet.svg)](https://join.slack.com/t/simplestatemachine/shared_invite/zt-fnfhvvsx-fTejcpPn~PPb2ojdG_MQBg) [![](https://img.shields.io/badge/chat-telegram-blue.svg)](https://t.me/joinchat/HMLJFkv9do6aDV188rhd0w) + # SimpleStateMachineLibrary A C# library for realization simple state-machine on .Net ## Give a Star! :star: From 1e103f418e220236407b9ad03c453468e53c7137 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年7月11日 02:10:38 +0300 Subject: [PATCH 28/36] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 4e49be3..66d8a6f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/languages/code-size/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) - [![]( https://img.shields.io/github/last-commit/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) - - [![](https://img.shields.io/badge/chat-slack-blueviolet.svg)](https://join.slack.com/t/simplestatemachine/shared_invite/zt-fnfhvvsx-fTejcpPn~PPb2ojdG_MQBg) [![](https://img.shields.io/badge/chat-telegram-blue.svg)](https://t.me/joinchat/HMLJFkv9do6aDV188rhd0w) + [![]( https://img.shields.io/github/last-commit/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/badge/chat-slack-blueviolet.svg)](https://join.slack.com/t/simplestatemachine/shared_invite/zt-fnfhvvsx-fTejcpPn~PPb2ojdG_MQBg) [![](https://img.shields.io/badge/chat-telegram-blue.svg)](https://t.me/joinchat/HMLJFkv9do6aDV188rhd0w) # SimpleStateMachineLibrary A C# library for realization simple state-machine on .Net From f1eb45beaf6f86b99929b92ff58192f3b27b6a41 Mon Sep 17 00:00:00 2001 From: GMIKE Date: 2020年7月11日 02:13:13 +0300 Subject: [PATCH 29/36] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 66d8a6f..95965e8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ - [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/languages/code-size/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) +[![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/languages/code-size/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![]( https://img.shields.io/github/last-commit/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/badge/chat-slack-blueviolet.svg)](https://join.slack.com/t/simplestatemachine/shared_invite/zt-fnfhvvsx-fTejcpPn~PPb2ojdG_MQBg) [![](https://img.shields.io/badge/chat-telegram-blue.svg)](https://t.me/joinchat/HMLJFkv9do6aDV188rhd0w) # SimpleStateMachineLibrary A C# library for realization simple state-machine on .Net From 1800994fdfbcbac0a23d2ae7289d7bf421524862 Mon Sep 17 00:00:00 2001 From: GMIKE Date: Sat, 3 Oct 2020 17:48:18 +0300 Subject: [PATCH 30/36] update packages --- Examples/Examples.csproj | 6 +++--- .../SimpleStateMachineLibrary.csproj | 2 +- Tests/Tests.csproj | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Examples/Examples.csproj b/Examples/Examples.csproj index 84c2aed..afd8aea 100644 --- a/Examples/Examples.csproj +++ b/Examples/Examples.csproj @@ -6,9 +6,9 @@ - - - + + + diff --git a/SimpleStateMachineLibrary/SimpleStateMachineLibrary.csproj b/SimpleStateMachineLibrary/SimpleStateMachineLibrary.csproj index c023c1c..927afb1 100644 --- a/SimpleStateMachineLibrary/SimpleStateMachineLibrary.csproj +++ b/SimpleStateMachineLibrary/SimpleStateMachineLibrary.csproj @@ -20,7 +20,7 @@ Microsoft.Extensions.Logging.Abstractions 3.1.5 - + diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index a324721..9f2b0a0 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -7,12 +7,12 @@ - - - - - - + + + + + + From 242312d435fd4c9dc7c578121687eea23f418f1d Mon Sep 17 00:00:00 2001 From: GMIKE Date: Mon, 7 Jun 2021 17:44:51 +0300 Subject: [PATCH 31/36] Create azure-pipelines.yml --- azure-pipelines.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..523cd18 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,33 @@ +jobs: +jobs: +- job: Linux + pool: + vmImage: 'ubuntu-18.04' + variables: + buildConfiguration: 'Release' + steps: + - script: cd $(Build.SourcesDirectory) && bash ./build.sh + displayName: 'Linux Build and Tests' + - task: PublishCodeCoverageResults@1 + + +- job: Windows + pool: + vmImage: 'windows-2021' + variables: + buildConfiguration: 'Release' + steps: + - task: DotNetCoreInstaller@0 + inputs: + version: '3.1.302' + - script: cd $(Build.SourcesDirectory) && dotnet build + displayName: 'Windows Full Build and Tests' + - task: PublishTestResults@2 + inputs: + testRunner: VSTest + testResultsFiles: '**/*.trx' + - task: PublishCodeCoverageResults@1 + inputs: + summaryFileLocation: $(Build.SourcesDirectory)\artifacts\coverage.cobertura.xml + reportDirectory: $(Build.SourcesDirectory)\artifacts + codecoverageTool: cobertura From 1393f27bf859492aa187a71fce12074974dbcbcd Mon Sep 17 00:00:00 2001 From: GMIKE Date: Mon, 7 Jun 2021 17:52:05 +0300 Subject: [PATCH 32/36] Update azure-pipelines.yml --- azure-pipelines.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 523cd18..adb8695 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,7 +9,10 @@ jobs: - script: cd $(Build.SourcesDirectory) && bash ./build.sh displayName: 'Linux Build and Tests' - task: PublishCodeCoverageResults@1 - + inputs: + summaryFileLocation: $(Build.SourcesDirectory)\artifacts\coverage.cobertura.xml + reportDirectory: $(Build.SourcesDirectory)\artifacts + codecoverageTool: cobertura - job: Windows pool: @@ -26,7 +29,7 @@ jobs: inputs: testRunner: VSTest testResultsFiles: '**/*.trx' - - task: PublishCodeCoverageResults@1 + - task: PublishCodeCoverageResults@2 inputs: summaryFileLocation: $(Build.SourcesDirectory)\artifacts\coverage.cobertura.xml reportDirectory: $(Build.SourcesDirectory)\artifacts From 2dd96324aa2f10c2bd507e5a2477d61a47f2fda4 Mon Sep 17 00:00:00 2001 From: GMIKE Date: Mon, 7 Jun 2021 17:53:53 +0300 Subject: [PATCH 33/36] Update azure-pipelines.yml --- azure-pipelines.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index adb8695..b8c632e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,5 +1,4 @@ jobs: -jobs: - job: Linux pool: vmImage: 'ubuntu-18.04' From d74232dc210df67175fa8f68e97e57e230cf1b7f Mon Sep 17 00:00:00 2001 From: GMIKE Date: Mon, 7 Jun 2021 17:55:20 +0300 Subject: [PATCH 34/36] Update azure-pipelines.yml --- azure-pipelines.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b8c632e..0a31702 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,4 +1,4 @@ -jobs: + jobs: - job: Linux pool: vmImage: 'ubuntu-18.04' @@ -7,28 +7,24 @@ jobs: steps: - script: cd $(Build.SourcesDirectory) && bash ./build.sh displayName: 'Linux Build and Tests' - - task: PublishCodeCoverageResults@1 + - task: PublishTestResults@2 inputs: - summaryFileLocation: $(Build.SourcesDirectory)\artifacts\coverage.cobertura.xml - reportDirectory: $(Build.SourcesDirectory)\artifacts - codecoverageTool: cobertura - + testRunner: VSTest + testResultsFiles: '**/*.trx' + - job: Windows pool: - vmImage: 'windows-2021' + vmImage: 'windows-2019' variables: buildConfiguration: 'Release' steps: - - task: DotNetCoreInstaller@0 - inputs: - version: '3.1.302' - - script: cd $(Build.SourcesDirectory) && dotnet build + - script: cd $(Build.SourcesDirectory) && powershell -ExecutionPolicy Unrestricted ./build.ps1 --full displayName: 'Windows Full Build and Tests' - task: PublishTestResults@2 inputs: testRunner: VSTest testResultsFiles: '**/*.trx' - - task: PublishCodeCoverageResults@2 + - task: PublishCodeCoverageResults@1 inputs: summaryFileLocation: $(Build.SourcesDirectory)\artifacts\coverage.cobertura.xml reportDirectory: $(Build.SourcesDirectory)\artifacts From cb668516f4cf191f408d301c6694568487aa1857 Mon Sep 17 00:00:00 2001 From: GMIKE Date: Mon, 7 Jun 2021 17:58:01 +0300 Subject: [PATCH 35/36] Update azure-pipelines.yml --- azure-pipelines.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0a31702..8c739b4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,11 +1,11 @@ - jobs: +jobs: - job: Linux pool: vmImage: 'ubuntu-18.04' variables: buildConfiguration: 'Release' steps: - - script: cd $(Build.SourcesDirectory) && bash ./build.sh + - script: cd $(Build.SourcesDirectory) && dotnet build displayName: 'Linux Build and Tests' - task: PublishTestResults@2 inputs: @@ -18,7 +18,10 @@ variables: buildConfiguration: 'Release' steps: - - script: cd $(Build.SourcesDirectory) && powershell -ExecutionPolicy Unrestricted ./build.ps1 --full + - task: DotNetCoreInstaller@0 + inputs: + version: '3.1.302' + - script: cd $(Build.SourcesDirectory) && dotnet build displayName: 'Windows Full Build and Tests' - task: PublishTestResults@2 inputs: From 6835851296cadce0473f755be6c6a78138ad6a6f Mon Sep 17 00:00:00 2001 From: GMIKE Date: Mon, 7 Jun 2021 18:00:34 +0300 Subject: [PATCH 36/36] azure-pipelines build badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 95965e8..47d57e2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ [![NuGet Pre Release](https://img.shields.io/nuget/vpre/SimpleStateMachineLibrary.svg)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/stars/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleStateMachineLibrary)](https://www.nuget.org/packages/SimpleStateMachineLibrary) [![](https://img.shields.io/github/license/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/github/languages/code-size/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![]( https://img.shields.io/github/last-commit/SimpleStateMachine/SimpleStateMachineLibrary)](https://github.com/SimpleStateMachine/SimpleStateMachineLibrary) [![](https://img.shields.io/badge/chat-slack-blueviolet.svg)](https://join.slack.com/t/simplestatemachine/shared_invite/zt-fnfhvvsx-fTejcpPn~PPb2ojdG_MQBg) [![](https://img.shields.io/badge/chat-telegram-blue.svg)](https://t.me/joinchat/HMLJFkv9do6aDV188rhd0w) + [![Build Status](https://dev.azure.com/GMIKE/SimpleStateMachineLibrary/_apis/build/status/SimpleStateMachine.SimpleStateMachineLibrary?branchName=master)](https://dev.azure.com/GMIKE/SimpleStateMachineLibrary/_build/latest?definitionId=2&branchName=master) # SimpleStateMachineLibrary A C# library for realization simple state-machine on .Net

AltStyle によって変換されたページ (->オリジナル) /