X


[ Pobierz całość w formacie PDF ]
.B: No special directory is used for debugging.C: The SuppressUnmanagedCodeSecurityAttribute allows managed code to call into unmanaged code withouta stack walk.It can be applied to methods that want to call into native code without incurring theLeading the way in IT testing and certification tools, www.testking.com- 91 - 070 - 310performance loss of a run-time security check when doing so.It only affects performance and would notsolve the problem of this scenario.QUESTION NO: 91You have a.NET Remoting object named TestKingOrder.The TestKingOrder class allows remote clientapplications to submit orders in batches.Each TestKingOrder object holds state information that is specific to each remote client application.TheTestKingOrder class has overloaded constructors for initializing an object.You want to develop a server application to host TestKingOrder objects.What should you do?A.Create a Windows service, and register TestKingOrder as a client-activated object.B.Create a Windows service, and register TestKingOrder as a server-activated Singleton object.C.Host TestKingOrder in Internet Information Services (IIS) and create a Web.config file to registerTestKingOrder as a server-activated SingleCall object.D.Host TestKingOrder in Internet Information Services (IIS) and create a Web.config file to registerTestKingOrder as a server-activated object with an infinite lease.Answer: AExplanation: Client-activated objects are objects whose lifetimes are controlled by the calling applicationdomain.This is the appropriate solution in this scenario.Reference:.NET Framework Developer's Guide, Client Activation.NET Framework Developer's Guide, Server ActivationIncorrect AnswersB, C: Singleton types never have more than one instance at any one time.If an instance exists, all clientrequests are serviced by that instance.D: Server-activated objects with an infinite lease would not be appropriate.QUESTION NO: 92You create an XML Web service that calculates taxes.You deploy the service to a production computernamed TestKing1.The URL of the production XML Web service is http://TestKing1/WS/TaxCalc.asmx.The service does not support all international tax rates.You want to find out which unsupported taxrates are being requested by users.If a user requests a tax rate that is not supported, the service recordsthe request by using a trace message.You want to view the unsupported rates that have been requestedWhich two actions should you take? (Each correct answer presents part of the solution.Choose two)Leading the way in IT testing and certification tools, www.testking.com- 92 - 070 - 310A.Modify the trace element in the Web.config file of the service by setting the pageOutput attribute to true.B.Modify the trace element in the Web.config file of the service by setting the enabled attribute to  true.C.To the constructor of the TaxCalc class, add the following code segment:Public Sub New()InitializeComponent()Trace.AutoFlush = TrueEnd SubD.To the constructor of the TaxCalc class, ad the following code segment:Public Sub New()InitializeComponent()Trace.Flush()End SubE.View the page at http://TestKing1/WS/TaxCalc.asmx.F.View the page at http://TestKing1/WS/Trace.axd.Answer: B, FExplanation:B: You can enable tracing for an entire application in the web.config file in the application's root directory.Weshould set the trace attribute enabled to true: [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • funlifepok.htw.pl
  •  

    Drogi użytkowniku!

    W trosce o komfort korzystania z naszego serwisu chcemy dostarczać Ci coraz lepsze usługi. By móc to robić prosimy, abyś wyraził zgodę na dopasowanie treści marketingowych do Twoich zachowań w serwisie. Zgoda ta pozwoli nam częściowo finansować rozwój świadczonych usług.

    Pamiętaj, że dbamy o Twoją prywatność. Nie zwiększamy zakresu naszych uprawnień bez Twojej zgody. Zadbamy również o bezpieczeństwo Twoich danych. Wyrażoną zgodę możesz cofnąć w każdej chwili.

     Tak, zgadzam siÄ™ na nadanie mi "cookie" i korzystanie z danych przez Administratora Serwisu i jego partnerów w celu dopasowania treÅ›ci do moich potrzeb. PrzeczytaÅ‚em(am) PolitykÄ™ prywatnoÅ›ci. Rozumiem jÄ… i akceptujÄ™.

     Tak, zgadzam siÄ™ na przetwarzanie moich danych osobowych przez Administratora Serwisu i jego partnerów w celu personalizowania wyÅ›wietlanych mi reklam i dostosowania do mnie prezentowanych treÅ›ci marketingowych. PrzeczytaÅ‚em(am) PolitykÄ™ prywatnoÅ›ci. Rozumiem jÄ… i akceptujÄ™.

    Wyrażenie powyższych zgód jest dobrowolne i możesz je w dowolnym momencie wycofać poprzez opcję: "Twoje zgody", dostępnej w prawym, dolnym rogu strony lub poprzez usunięcie "cookies" w swojej przeglądarce dla powyżej strony, z tym, że wycofanie zgody nie będzie miało wpływu na zgodność z prawem przetwarzania na podstawie zgody, przed jej wycofaniem.