|
|
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
1 Articles match "Return","Sample"
|
Related DevelopMentor Courses
|
MORE
|
|
Essential Windows Communication Foundation
To facilitate the process, WCF provides various support mechanisms for managing faults and returning errors to clients. We learn how to deal with exceptions, properly return error codes, and even customize the error handling of the framework itself. We cover several samples of commonly needed functionality at the XML programming layer, working with namespaces, XPATH, and LINQ to XML. In this course, you learn to: Understand the motivation and architecture behind SOA & WCF Create clients and services with WCF Expose your services using SOAP and REST Choose between different channels, bindings, and configuration options Host a service as a Windows service or in IIS/WAS Deal with concurrency and sessions in WCF Handle errors in services Authenticate and authorize access to services Federate services using tokens and claims Span transactions across service boundaries Add reliability using transport and message mechanisms Extend WCF by writing custom behaviors and creating
DevelopMentor Courses
- Friday, June 12, 2009
|
38 Articles match "Return","Sample"
|
The Latest from DevelopMentor
|
MORE
|
|
Actors prototype in C#
It returns “true” to continue processing messages, and “false” to end the actor. can probably implement most of the Erlang samples with this class.
using namespace Concurrency.Actors
{
public interface IActor<T>
{
void Send(T message);
}
public class Actor<T> : IActor<T>
{
private BlockingCollection<T> _inbox = new BlockingCollection<T>();
private Func<T, Attached is a rough outline of actors, or message passing concurrency, for C#. It is similar in spirit to Erlang.
Handwaving
- Wednesday, March 3, 2010
Trackable DTO’s: Taking N-Tier a Step Further with EF4
In fact, the sample app I write for my article uses svcutil to generate client entities when adding a service reference in Visual Studio. The DAL can then call AcceptChanges in TrackingHelper to restore objects to an Unchanged state and return the updated object to the client with database-calculated values, such as identity and concurrency fields.
Download code for this post here .
Not long ago my friend and colleague Richard Blewett wrote a blog post on Self-Tracking Entities in EF4, in which he questioned the service-orientation of Self-Tracking Entities in EF4.
Tony and Zuzana's World
- Friday, February 19, 2010
MVVM: IUIVisualizer and event management with behaviors
some of the concepts we’ve talked about already through a new sample – a simple picture
viewer:
image application ala photoSuru, it’s really more of a sample of MVVM practices with
the Here’s some of the coding examples present in the sample:
It Download the sample from In this post, we will look at the IUIVisualizer , and bring together
some viewer:
The
Mark's Blog of Random Thoughts
- Friday, February 5, 2010
|
-
|
The Best from DevelopMentor
|
MORE
|
-
Random Sampling extension method
Had reason recently to select a random sample of data from a stream of elements. The amount of samples I needed to take was finite but what was unknown was the number of elements in the input stream. I managed to find various implementations of an IEnumerable extension method on the net, but all the ones I found would cache the entire stream before selecting the sample. This clearly isn't scalable as the input stream increases in size. After a look around I found this blog article that describes how to implement Reservoir sampling without the need to keep all the items.
.NET Mutterings
- Wednesday, October 1, 2008
-
Using Model – View – ViewModel with Silverlight
However easy as it might be is seems to confuse people as I have seen some terrible examples where people make a complete mess of things. Josh Smith did an excellent screen cast for Pixel8 on using MVVM with WPF, you can find it here . Even thought the UI technology used doesn't change the basic MVVM pattern there are some subtle differences, like not easily being able to use ICommand in Silverlight, so I decided to create a small Silverlight sample. The basic structure goes like this: The user interacts with a View, implemented as a Silverlight user control.
The Problem Solver
- Tuesday, April 7, 2009
-
Article: Avoiding 5 Common Pitfalls in Unit Testing
discovered that the hardships we remembered had not returned. public class AccountTests
{
private MockMailServer mockMailServer = new MockMailServer();
[Test]
public void WhoAreYouReceivingTheMostEmailFrom()
{
User you = User.CreateNew( "you" );
User mike = SendEmailHelper( CreateUser( "mike" ), you, 3 );
User mary = SendEmailHelper( CreateUser( "mary" ), you, 4 );
User joan = SendEmailHelper( CreateUser( "joan" ), you, 2 );
Assert.AreEqual( mary, you.GetGreatestEmailer() );
}
private User SendEmailHelper(User from, User to, int
Michael C. Kennedy's Weblog
- Thursday, August 6, 2009
-
WF4&WCF and message correlation
quot; , input.Get(env)))
};
result.Activities.Add(write2);
var reply2 = new SendReply()
{
Request = receive2,
Value = new InArgument ( "The second result" )
};
result.Activities.Add(reply2);
return result;
}
This is done in the CreateCorrelationQuery() function as follows:
private static CorrelationQuery CreateCorrelationQuery()
{
var result = new CorrelationQuery();
The Problem Solver
- Wednesday, September 2, 2009
-
Using IdentityModel: Some Samples
some authorization code from my CardSpace sample app - thanks to the unified
Equals(type)
&& includePublic == false ) continue ;
boards.AddRange(GetBoards(type));
}
return boards;
}
Here are some typical usage scenario of IdentityPrincipal in ASP.NET.
Simple IsInRole calls (checks for a status claim with a value of 'Gold'):
HttpContext .Current.User.IsInRole(
www.leastprivilege.com
- Saturday, March 22, 2008
-
Significant Advances in Unit Testing Windows Workflow
Download the library with sample test project here: Kennedy.WorkflowTesting.zip (216
KB) see it used in the sample with my library.
What untyped name/value collections as input and return values is error prone (for testing
and The Sample:
Let This post describes a unit testing library for testing Windows Workflow Foundations.
It It
Michael C. Kennedy's Weblog
- Sunday, January 18, 2009
-
Article: Building a Twitter Application in .NET
you want to download the sample application to follow along, you can get it here:
http://www.michaelckennedy.com/Samples/SampleStatusUpdater.zip
While returned as XML.
Great, the xml file we will use is returned from the user timeline.
I recently wrote an article for DevelopMentor 's
Developments Developments newsletter entitled Building a Twitter Application in .NET
|
|
|