background preloader

Samples for Parallel Programming with the .NET Framework

Samples for Parallel Programming with the .NET Framework

AreaProg Blog de Thomas Lebrun Nouvelle URL, nouveau blog ! Bonjour à tous, J'y pensais depuis un moment, c'est maintenant chose faîte ! J'ai décidé de changer de plateforme de blog pour me lancer dans ma "propre" aventure: Les activités prévues au programme seront les mêmes que sur mon précédent blog à savoir WPF, Silverlight, Windows Phone, etc. mais en essayant de varier les plaisirs de temps en temps et surtout, en essayant de retrouver une activité un peu plus dense. Je tiens à remercier la communauté de CodeS-SourceS, et notamment Nix et Cyril, pour m'avoir hébergé durant toutes ces années ! Vous remarqerez que le design de ce blog n'est, pour le moment, pas tout à fait abouti: j'espère que cela changera rapidement (si d'ailleurs vous souhaitez me filer un coup de main sur la partie design/logo, n'hésitez pas à me le faire savoir, je risque d'en avoir besoin !) A bientôt pour la suite ! [Silverlight 5] Récupérer le nom de l'utilisateur courant 1: public string GetLoginName() Have fun !

A Tour of ParallelExtensionsExtras - Parallel Programming with .NET Thanks a lot Stephen for your feedback! Hopefully I'm not rambling too much here... First of all, I can't make use of .NET 4.5 for the time being, but would like this code to be easily portable once .NET 4.5 is released. I'll take a look into the CTP; I have not used it before. As for your question: "are you saying you want to run an action repeatedly in a loop with delays in between, and then once cancellation is requested and the loop stops, run a continuation?" - Actually, I would like the optional continuation action to run every time the period elapses, not once the parent 'task' is cancelled and the loop stops. Basically I would like to extend the current capabilities of Tasks to periodic actions, ideally making use of the TPL and not having to control all of the thread creation and management myself. To clarify my requirements a bit more... - We will have potentially hundreds/thousands of these 'data points' actively requested by a single client at any given time.

Introduction to Algorithms - Download free content from MIT C# Tutorial - Serialize Objects to a File While storing information in memory is great, there comes a time your users will have to shut your application down. This means (probably) that you will need to write information to a file at some point, because you will want to store whatever data was in memory. Today, we are going to take a look at a feature built into .NET called Serialization that makes writing and reading data structures to and from a file extremely easy. For this example, let's say I want to create a program that keeps track of all the cars my friends own. I'm going to create two objects to achieve this: Car and Owner. //information about the carpublic class Car{ private string make; private string model; private int year; private Owner owner; public Car() { }} //information about the car's ownerpublic class Owner{ private string firstName; private string lastName; public Owner() { }} Since most of us have more than one friend, we're going to need to create a List of Car objects. List<Car> cars = new List<Car>();

.NET Framework 4 The .NET Framework is a development platform for building apps for Windows, Windows Phone, Windows Server, and Microsoft Azure. It consists of the common language runtime (CLR) and the .NET Framework class library, which includes classes, interfaces, and value types that support an extensive range of technologies. The .NET Framework provides a managed execution environment, simplified development and deployment, and integration with a variety of programming languages, including Visual Basic and Visual C#. The documentation for the .NET Framework includes an extensive class library reference, conceptual overviews, step-by-step procedures, and information about samples, compilers, and command-line tools. To locate the information that interests you, see the following list of main topic areas. Provides a comprehensive overview of the .NET Framework and links to additional resources. Describes key new features and changes in the latest versions of the .NET Framework.

Web Service Software Factory 2010 Sign in to write a review Sort by: Does not install on Windows7 with VS 2010 Premium (SDK and GAX already installed). The installer just show VS 2010 Ultimate as option to install the extension. Not used yet, I am trying it Hi - After installation, i can't find the the template where it will create multiple projects like business layer, model, host, and etc. Perfect choice in a large development environment. Well I installed well, thanks to the reviews, ofcourse if I didn't read them, I couldn't possibly know otherwise... SDK and GAX as well. I agree with Roly67: VS 2010 SDK is a prerequisite to successfully install. The overview is incorrect. Visual Studio 2010 Professional is NOT supported and fails on installation. Please fix the installer or change the overview. UPDATEThe installation does install but requires VS 2010 SDK as a prerequisite. Good migration job!

DSPL Developer Guide - DSPL: Dataset Publishing Language - Google Code DSPL stands for Dataset Publishing Language. It is a representation format for both the metadata (information about the dataset, such as its name and provider, as well as the concepts it contains and displays) and actual data of datasets. Datasets described in this format can be imported into the Google Public Data Explorer, a tool that allows for rich, visual exploration of the data. Note: To upload data to Google Public Data using the Public Data upload tool, you must have a Google Account. This document is intended for data owners who want their content to be available in the Public Data Explorer. It goes beyond the Tutorial by diving deeper into the details of the DSPL schema and supported features. Although not a requirement, we suggest reading through the Tutorial, which is shorter and easier to digest, before looking at this document. Contents Overview A DSPL dataset is a .zip file that contains an XML file and a set of CSV files. Process Create your DSPL XML file. XML Structure <? ...

Serialize List Tutorial A List can be serialized to the disk. We want to serialize (to a file) a List of objects. The next time the program runs, we get this List straight from the disk. List Example This is the first part of the code example. Program that describes serializable type: C# using System; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization.Formatters.Binary; [Serializable()] public class Lizard { public string Type { get; set; } // String property for Lizard object public int Number { get; set; } // Number of lizards public bool Healthy { get; set; } // Whether lizard is healthy public Lizard(string t, int n, bool h) { Type = t; Number = n; Healthy = h; } } We see a class called Lizard, and it has three automatic properties. The Serializable attribute is specified right before the class definition. Example 2 The second part of this tutorial is the Main method in your C# console program. When you press "s", a new List of Lizard objects is created. File.Open Examples

A Guide to Claims–based Identity and Access Control patterns & practices Developer Center September 2011 Imagine a world where you don't have to worry about authentication. Imagine instead that all requests to your application already include the information you need to make access control decisions and to personalize the application for the user. In this world, your applications can trust another system component to securely provide user information, such as the user's name or email address, a manager's email address, or even a purchasing authorization limit. This is the second edition of this popular guide. This edition also has a set of associated Hands-on-Labs that will help you to better understand the way that the example application works, how you can extend it with additional functionality, and how you can implement some of the advanced scenarios described in the guide. Overview Community Future Plans Feedback and Support Authors and Contributors Related Titles Contents of the Guide Audience Requirements System Requirements Active Directory

Related: