GetDeferral() public method

public GetDeferral ( ) : FileUpdateRequestDeferral
return FileUpdateRequestDeferral
 void CachedFileUpdaterUI_FileUpdateRequested(CachedFileUpdaterUI sender, FileUpdateRequestedEventArgs args)
 {
     fileUpdateRequest = args.Request;
     fileUpdateRequestDeferral = fileUpdateRequest.GetDeferral();
     switch (cachedFileUpdaterUI.UIStatus)
     {
         case UIStatus.Hidden:
             fileUpdateRequest.Status = FileUpdateStatus.UserInputNeeded;
             fileUpdateRequestDeferral.Complete();
             break;
         case UIStatus.Visible:
             break;
         case UIStatus.Unavailable:
             fileUpdateRequest.Status = FileUpdateStatus.Failed;
             fileUpdateRequestDeferral.Complete();
             break;
     }
 }
 void CachedFileUpdaterUI_FileUpdateRequested(CachedFileUpdaterUI sender, FileUpdateRequestedEventArgs args)
 {
     fileUpdateRequest = args.Request;
     fileUpdateRequestDeferral = fileUpdateRequest.GetDeferral();
     switch (cachedFileUpdaterUI.UIStatus)
     {
         case UIStatus.Hidden:
             if (fileUpdateRequest.File.Name.Contains("ConflictingFile"))
             {
                 fileUpdateRequest.Status = FileUpdateStatus.UserInputNeeded;
             }
             else
             {
                 fileUpdateRequest.Status = FileUpdateStatus.Complete;
             }
             fileUpdateRequestDeferral.Complete();
             break;
         case UIStatus.Visible:
             break;
         case UIStatus.Unavailable:
             fileUpdateRequest.Status = FileUpdateStatus.Failed;
             fileUpdateRequestDeferral.Complete();
             break;
     }
 }