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
global: | |
scrape_timeout: 10s | |
scrape_interval: 15s | |
external_labels: | |
cluster: 'MY CLUSTER NAME' | |
# alternatively can be found via consul -- for details see | |
# https://prometheus.io/docs/prometheus/latest/migration/#alertmanager-service-discovery | |
alerting: | |
alertmanagers: |
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> | |
<TargetFrameworks>netcoreapp1.1;netcoreapp2.0;net462;net472</TargetFrameworks> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="FluentAssertions" Version="4.19.3" /> | |
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" /> | |
<PackageReference Include="xunit" Version="2.4.1" /> |
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
Executing task: __RunTests | |
Test run for /Users/aleksandrpruks/sources/oss/Polly.Contrib.CustomPolicyTemplates/ProactivePolicyTemplate/src/Polly.Contrib.ProactiveCustomPolicyTemplate.Specs/bin/Release/netcoreapp1.1/Polly.Contrib.ProactiveCustomPolicyTemplate.Specs.dll(.NETCoreApp,Version=v1.1) | |
Microsoft (R) Test Execution Command Line Tool Version 15.9.0 | |
Copyright (c) Microsoft Corporation. All rights reserved. | |
Starting test execution, please wait... | |
Total tests: 8. Passed: 8. Failed: 0. Skipped: 0. | |
Test Run Successful. | |
Test execution time: 1.6555 Seconds |
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
//Event | |
//event-sourcing style | |
//if you want reservation - call service or "build" state from previous | |
public class CheckedIn | |
{ | |
public CheckedIn(DateTime checkedInAt) {}//and whatever | |
} | |
//Dario style with new reservation state |
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
type EventOne = | |
{ Property: string } | |
static member FromJson(_: EventOne) = | |
json { | |
let! p = Json.read "property" | |
return {Property = p} | |
} | |
type EventTwo = | |
{ Property: int } |
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 Host | |
open System | |
open System.Net | |
open Orleankka | |
open Orleankka.FSharp | |
open Orleankka.FSharp.Configuration | |
open Orleankka.FSharp.Runtime |
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
open System | |
type BodyConfiguration<'a> = { | |
OnRecieve: unit->'a->unit | |
} | |
type ActorConfiguration<'a> = { | |
KeepAlive: System.TimeSpan | |
Body: BodyConfiguration<'a> | |
} |
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
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent) | |
# Load posh-git module from current directory | |
Import-Module .\posh-git | |
# If module is installed in a default location ($env:PSModulePath), | |
# use this instead (see about_Modules for more information): | |
# Import-Module posh-git | |
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
// Learn more about F# at http://fsharp.org | |
// See the 'F# Tutorial' project for more help. | |
open System | |
open System.Reflection | |
open Orleankka | |
open Orleankka.FSharp | |
open Orleankka.Playground | |
[<Serializable>] |
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
namespace Test | |
{ | |
[TestFixture] | |
public class WorkersPoolExample | |
{ | |
private IActorSystem system; | |
[TestFixtureSetUp] | |
public void Setup() | |
{ |
NewerOlder