Skip to content

Instantly share code, notes, and snippets.

View ElemarJR's full-sized avatar
🏠
Working from home

Elemar Rodrigues Severo Junior ElemarJR

🏠
Working from home
View GitHub Profile
static void Main(string[] args)
{
Console.Title = "TPL Dataflow";
var source = new[] {
"elemarjr", "leandronet", "vquaiato",
"juanplopes", "rodrigovidal", "cleytonferrari",
"diogodamiani", "sricanesh", "rodrigokono"
};
static void Main(string[] args)
{
Console.Title = "TPL Dataflow";
var source = new[] {
"elemarjr", "leandronet", "vquaiato",
"juanplopes", "rodrigovidal", "cleytonferrari",
"diogodamiani", "sricanesh", "rodrigokono"
};
static void Main(string[] args)
{
Console.Title = "TPL Dataflow";
var source = new[] {
"elemarjr", "leandronet", "vquaiato",
"juanplopes", "rodrigovidal", "cleytonferrari",
"diogodamiani", "sricanesh", "rodrigokono"
};
ab.Post("This message will be processed");
ab.Complete();
ab.Post("This message will never be processed");
static void Main(string[] args)
{
Console.Title = "TPL Dataflow";
var source = new[] {
"elemarjr", "leandronet", "vquaiato",
"juanplopes", "rodrigovidal", "cleytonferrari",
"diogodamiani", "sricanesh", "rodrigokono"
};
static void Main(string[] args)
{
Console.Title = "TPL Dataflow";
var source = new[] {
"elemarjr", "leandronet", "vquaiato",
"juanplopes", "rodrigovidal", "cleytonferrari",
"diogodamiani", "sricanesh", "rodrigokono"
};
using System;
using Roslyn.Compilers;
using Roslyn.Scripting.CSharp;
using Roslyn.Scripting;
namespace Roslyn_CTP2012
{
static class Program
{
static void Main(string[] args)
/*******************************************************************************
* Copyright (c) 2001-2012 Mathew A. Nelson and Robocode contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://robocode.sourceforge.net/license/epl-v10.html
*
* Contributors:
* Mathew A. Nelson
* - Initial implementation
[TestMethod]
public void Ctor_PassingOutput_ShouldCallWrite()
{
var invoked = false;
var stub = new StubIOutput()
{
WriteLogEntry = (entry) =>
{
invoked = true;
public interface IOutput
{
void Write(LogEntry message);
}