What is CrazyEngico.com (CE)?

CrazyEngico (CE) is a one-stop solution for interview questions and answers, domain knowledge, e-learning, tutorials, articles and many more learning material.
e-learning - Intelligent e-learning tutorials and articles
Domain Knowledge Learn about various business domains/verticals such as Banking, Financial, Insurance, Healthcare and many more...
Interview Questions and Answers - Post your questions and answers. 1000+ database of ready questions and answers available to prepare for an interview.
Tutorials - 300+ video tutorials from beginner to expert level.
Articles - 300+ technical articles to understand concepts.
Forum - A technical forum to post your queries/responses.

Search Questions

Interview Questions/Answers

Interview Q & A >> WCF >> What is one way operation?

<< Previous Question Navigator Next >>

0        0
What is one way operation? (Views: 2178)


0        0

WCF has a simple and easy way to define operations that should be made as OneWay.

We need to set IsOneWay = true in the OperationContract attribute.


    public interface IMyServiceOneWay


        [OperationContract(IsOneWay = true)]

        void DoOneWay(bool throwException);


Submitted By: Anonymous | Created On: 8/7/2009 10:30:52 PM

2        0

There may be times when client is not concerned about the success or failure of the invocation.To support this sort of fire-and-forget invocation, Windows Communication Foundation offers one-way operations. After the client issues the call, Windows Communication Foundation generates a request message, but no correlated reply message will ever return to the client. As a result, one-way operations can't return values, and any exception thrown on the service side will not make its way to the client.

Submitted By: Geeta | Created On: 4/6/2010 11:03:35 PM

Post your Answer
Your answer will be first reviewed by our administrator before it appears on the site.

Your Answer:

Display Name:

By clicking on Submit button you agree to the Terms of Service agreement.

Copyright © 2018 CrazyEngico.com. All rights reserved.
CrazyEngico.com is not responsible for the content and CrazyEngico.com does not evaluate or guarantee the accuracy of any CrazyEngico.com content.
Please read our terms of service agreement before using this site.