Skip to content

Instantly share code, notes, and snippets.

Created January 4, 2013 08:02
Show Gist options
  • Select an option

  • Save anonymous/4450784 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/4450784 to your computer and use it in GitHub Desktop.
private void UpdateRequestsList()
{
//為了確認舊的Request是否有部屬過了,避免記憶體濫用
if (transferRequests != null)
{
foreach (var request in transferRequests)
{
request.Dispose();
}
}
//沒被部屬過才啟用Service
transferRequests = BackgroundTransferService.Requests;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment