Sage.SData.Client.Core.AsyncRequest.Refresh C# (CSharp) Method

Refresh() public method

Makes a progress update request and refreshes the various progress properties. If the process has completed on the server then a ISyndicationResource result will be returned. Otherwise a null reference is returned.
public Refresh ( ) : ISyndicationResource
return ISyndicationResource
        public ISyndicationResource Refresh()
        {
            var content = Service.Read(_trackingUrl);
            var tracking = content as Tracking;

            if (tracking != null)
            {
                _tracking = tracking;
                return null;
            }

            Service.Delete(_trackingUrl);

            return (ISyndicationResource) content;
        }