CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of tpl
C#
class Program
{
    static void Main(string[] args)
    {
        bool isComplete = false;
        var t = Task.Factory.StartNew(() =>
        {
            bool toggle = false;
            while (!isComplete) // read the cached value
            {
by bnaya   December 14, 2011 @ 1:49am
Tags: Tpl, Parallel
44 Views
no comments
 
C#
static void Main(string[] args)
{
    var xs = Observable.Interval(TimeSpan.FromSeconds(0.5)).Publish().RefCount();
    var zs = xs.Buffer(xs.Sample(TimeSpan.FromSeconds(1.5)), x => xs.Skip(5).Take(1));
 
    zs.Subscribe(item => Console.WriteLine("{0} - {1}", item.First(), item.Last()));
    Console.ReadKey();
    Task<WebResponse>[] results = GetesourcesAsync(
        new []
        {
by bnaya   December 01, 2011 @ 9:21am
Tags: tpl, io
73 Views
no comments
 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reactive.Linq;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Threading.Tasks;
 
namespace Sela.Samples
by bnaya   October 23, 2011 @ 5:18am
Tags: rx, tpl
96 Views
no comments
 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
 
namespace TplKeepAlive
{
    class Program
by bnaya   October 17, 2011 @ 7:19am
Tags: Tpl
71 Views
no comments
 
C#
// Map content before registering areas
protected void Application_Start()
{
    Content.Map<MyPortableArea>()
        .Master("~/Views/Shared/PA.master")
        .Title("PATitle")
        .Body("PAMain");
 
    AreaRegistration.RegisterAllAreas();
by John Nelson   May 19, 2010 @ 9:33pm
278 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate