저는 WCF 서비스에서 작동하는 Silverlight 응용 프로그램을 만들고 있습니다. 브라우저에서 서비스 메타 데이터를로드하는 동안, 내가 다음 코드를 제공하는 것으로 나타났습니다 :Silverlight - 서비스 닫기
class Test
{
static void Main()
{
myServiceClient client = new myServiceClient();
// Use the 'client' variable to call operations on the service.
// Always close the client.
client.Close();
}
}
마지막 줄은 "항상 고객을 닫습니다"라고. 제 질문은, 언제 Silverlight 응용 프로그램에서 클라이언트를 닫아야합니까? "[MyServiceOperation] Async"호출 후 닫아야합니까, 아니면 "[MyServiceOperation] Completed"이벤트 핸들러에서 닫아야합니까? 비동기 시나리오에서 사용하는 경우
는