This file contains hidden or 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 BenchmarkDotNet.Running; | |
using System; | |
namespace BenchNET | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
var summary = BenchmarkRunner.Run<Iterate>(); |
This file contains hidden or 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 BenchmarkDotNet.Attributes; | |
using System.Collections.Generic; | |
namespace BenchNET | |
{ | |
public class Iterate | |
{ | |
private List<string> lstStr; | |
private int Counter; |
This file contains hidden or 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
<ItemGroup> | |
<PackageReference Include="Contoso.Utility.UsefulStuff" Version="3.6.0" /> | |
</ItemGroup> |
This file contains hidden or 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
<ItemGroup> | |
<PackageReference Include="Contoso.Utility.UsefulStuff" Version="3.6.*" /> | |
</ItemGroup> |
This file contains hidden or 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.Threading.Tasks; | |
using Orleans; | |
namespace ConverterContracts | |
{ | |
/// <summary> | |
/// Grain interface IConverter | |
/// </summary> | |
public interface IConverter : IGrainWithGuidKey | |
{ |
This file contains hidden or 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 Orleans; | |
using ConverterContracts; | |
using System.Threading.Tasks; | |
namespace ConverterGrain | |
{ | |
/// <summary> | |
/// Grain implementation class ConverterGrain. | |
/// </summary> | |
public class ConverterGrain : Grain, IConverter |
This file contains hidden or 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 Orleans; | |
using Orleans.Runtime.Configuration; | |
using Orleans.Runtime.Host; | |
using System; | |
namespace SiloHostTutorial | |
{ | |
/// <summary> | |
/// Orleans test silo host | |
/// </summary> |
This file contains hidden or 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
[Produces("application/json")] | |
[Route("api/Sample")] | |
public class SampleController : Controller | |
{ | |
private readonly IHystrixCommand _hystrixCommand; | |
public SampleController(IHystrixCommandFactory hystrixCommandFactory) | |
{ | |
_hystrixCommand = hystrixCommandFactory.GetHystrixCommand("GrupoTeste", "ComandoTeste"); | |
} |
This file contains hidden or 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 void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddMvc(); | |
services.AddHystrix(); | |
services.Configure<HystrixOptions>(options => Configuration.GetSection("Hystrix").Bind(options)); | |
} | |
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. | |
public void Configure(IApplicationBuilder app, IHostingEnvironment env) | |
{ |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8" ?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title type="text">Component Title</title> | |
<id>591c105e-bd42-4008-bcef-d822c1bd7607</id> | |
<updated>2018-03-20T00:00:00Z</updated> | |
<entry> | |
<id>22496D52-F1E2-48DD-970F-93FA3D84F793</id> | |
<title type="text">Component Name</title> | |
<summary type="text">Description...</summary> | |
<published>2018-03-21T00:00:00Z</published> |