What should you do?
You are developing a Windows Presentation Foundation (WPF) application.
You need to display HTML content from a Web page on the WPF form.
What should you do?
Which attribute should you apply to the MessageProcessor class?
You are modifying an existing Windows Communication Foundation (WCF) service that is defined as follows:
[ServiceContract]
public interface IMessageProcessor
{
[OperationContract]
void ProcessMessages();
}
public class MessageProcessor: IMessageProcessor
{
public void ProcessMessage();
SubmitOrder();
}
SubmitOrder makes a call to another service. The ProcessMessage method does not perform as expected under a heavy load.
You need to enable processing of multiple messages. New messages must only be processed when the ProcessMessage method is not processing requests,
or when it is waiting for calls to SubmitOrder to return.
Which attribute should you apply to the MessageProcessor class?
Which setting should you use in the application manifest?
You use Microsoft .NET Framework 4 to create a Windows application.
You want to use the ClickOnce technology to deploy the application on computers that run Windows Vista with User Access Control (UAC) enabled.
You need to ensure that the application can be installed in a secure manner.
Which setting should you use in the application manifest?
What should you do?
You create a Microsoft Windows Installer file for a Windows Presentation Foundation (WPF) application that requires Microsoft .NET Framework 4.
You need to ensure that the installation starts only if .NET Framework 4 is already installed on the computer.
What should you do?
What should you do?
A Windows Communication Foundation (WCF) service implements a contract with one-way and request-reply operations.
The service is exposed over a TCP transport. Clients use a router to communicate with the service.
The router is implemented as follows. (Line numbers are included for reference only.)
01 ServiceHost host = new ServiceHost(typeof(RoutingService));
02 host.AddServiceEndpoint(
03 typeof(ISimplexDatagramRouter),
04 new NetTcpBinding(), “net.tcp://localhost/Router”
05 );
06 List<ServiceEndpoint> lep = new List<ServiceEndpoint>();
07 lep.Add(
08 new ServiceEndpoint(
09 ContractDescription.GetContract(
10 typeof(ISimplexDatagramRouter)
11 ),
12 new NetTcpBinding(),
13 new EndpointAddress(“net.tcp://localhost:8080/Logger”)
14 )
15 );
16 RoutingConfiguration rc = new RoutingConfiguration();
17 rc.FilterTable.Add(new MatchAllMessageFilter(), lep);
18 host.Description.Behaviors.Add(new RoutingBehavior(rc));
Request-reply operations are failing. You need to ensure that the router can handle one-way and request-reply operations.
What should you do?
What should you do?
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application named MyApp.exe.
You use Microsoft Windows Installer to package the application.
You create an icon file named Application.ico.
You need to associate Application.ico with MyApp.exe when it is deployed.
What should you do?
Where should you store the application data?
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You use the ClickOnce deployment methodology to distribute the application.
You need to store application-specific data along with read/write permissions without requiring elevated permissions for the application.
Where should you store the application data?
Which code segment should you use?
A Windows Communication Foundation (WCF) service uses the following service contract.
[ServiceContract]
public interface IService
{
[OperationContract]
string Operation1(string s);
}
You need to ensure that the operation contract Operation1 responds to HTTP POST requests.
Which code segment should you use?
What should you do?
You have a Visual Studio Team Foundation Server 2010 environment. You are setting up Visual Studio Lab Management 2010. You need to store virtual machine templates used by the virtual lab environment.
What should you do?
What should you do when you publish the application?
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application requires frequent updates.
You want to use the ClickOnce technology to distribute the application to Internet users.
You need to ensure that the application is automatically updated without requiring user intervention.
You also need to ensure that the users execute the most recent version of the application.
What should you do when you publish the application?