0
난 당신이 응용 프로그램을실버 종료 호출
public App()
{
this.Startup += this.Application_Startup;
this.Exit += this.Application_Exit;
this.UnhandledException += this.Application_UnhandledException;
InitializeComponent();
}
private void Application_Exit(object sender, EventArgs e)
{
ClientReverse.UserExitGameAsync((Guid)Login);
}
서버를 닫을 때 서버에 데이터를 전송하려는 웹 서비스 :
public void UserExitGame(Guid UserGuid)
{
Games.Games.ExitUserGames(UserGuid);
}
하지만 서버 측을 만족하지 않습니다.
silverlight가 WCF를 호출하고 있기 때문에 HTML에서 onbeforunload를 호출하고 실버 라이트가 아닌 AJax와 통화해야하는 이유는 무엇입니까? – Rumplin
@Rumplin : 그럴 수도 있지만, 모든 브라우저에서 제대로 작동하지 않는 onbeforeunload에 대한 많은 이야기를 보았습니다. 오페라는 분명히 그것을 전혀 발사하지 않습니다. –
IE와 Silverlight를 사용하여 주로 닫힌 환경 (인트라넷)에서 작업하기 때문에 잘 알지 못했습니다. 팁 고마워. – Rumplin