answersLogoWhite

0


Best Answer

Assume WCF refer to the namespaces of either System.ServiceModel or System.ServiceModel.Web

A pure WPF application does not neither use nor reference to any classes in WCF, which means you should not have to.

But, if the UI (Presentation) layer refers to one of the objects from a class library, and that object (public of course) somehow depends on WCF (using one of WCF objects as arguments, return types in its public interface - methods, properties, constructors, etc, attribute declaration like [ServiceContract], or extending a class of WCF), you must have System.ServiceModel (and/or SystemServiceModel.Web) in WCF layer as well, even there is nowhere in the presentation layer directly invoke those methods that would return a WCF object, or passing WCF objects as arguments.

The design of the object in the class library being used in your WPF has introduced unneeded dependency, the WCF, to WPF layer. Time to refactor your code.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why do I have to reference the WCF Service Application within the WPF Application when there's a reference within the Class Library and the WPF never directly uses the WCF?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the name of the reference help service the the library provides?

Ask A Librarian


What is the name of the reference service that the UMUC library provides?

Ask A Librarian


What is the name of the reference help service that the umuc library provides?

Ask A Librarian


What does the acronym NILS stand for?

In Australia, NILS may reference the National Information and Library Service or the National Institute of Labour Studies at Flinders University. In the United States, it may reference the Northern Illinois Library System.


What has the author Rosemarie Riechel written?

Rosemarie Riechel has written: 'Personnel needs and changing reference service' -- subject(s): Reference services (Libraries), Reference librarians, Management, Library personnel management 'Improving telephone information and reference service in public libraries' -- subject(s): Public libraries, Telephone reference services (Libraries), Reference services


What are three structural elements of the IBM common cloud management platform reference architecture?

a) Consumer, Service provider, Application services


How can you get help in a library?

There are librarians and library staff members who can help you. You can either go in person or look at the library Web site. In the physical library there is reference desk (sometimes the signage says "reference", and sometimes it will say "Information"). Many libraries today offer assistance through some type of chat service. Look for links that say "Ask a Question" or "Ask a Librarian".


Can you read the sat vocabulary book for dummies online?

Check to see if your county library subscribes to the eBook application Overdrive. The service allows library patrons to check out books through their catalog to read online.


How can the librarian know who needs a library card?

There is a common misconception that librarians have the ability to read minds, but - unfortunately - this isn't true. Thus, a librarian needs to use other skills to determine who needs a library card. Signs that someone needs a library card may include the following situations:The user may approach the service/reference desk and/or a member of the library staff, and inquire about getting a card (because they don't have one).The user may approach the service/reference desk and/or a member of the library staff, and ask about how they can go about borrowing an item, or how to log onto the computers. Upon being asked, the user indicates they do not have a library card.


Discuss the frequency of oil change service for a light-duty engine used in a regular service application versus on in a severe service application?

Discuss the frequency of oil change service for a light-duty engine used in a regular service application versus on in a severe service application?


Who awards the caldecott award?

The Association for Library Service to Children (ALSC) awards the Caldecott Medal.


What is referral service in library?

directing service