BeginRetrieve Method

Begins an asynchronous cache response retrieval.

Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)

IAsyncResult BeginRetrieve(
	CacheRequest request,
	AsyncCallback callback,
	Object state


Type: Microsoft.Web.Media.SmoothStreaming..::..CacheRequest
A CacheRequest object that describes the request being made.
Type: System..::..AsyncCallback
A AsyncCallback delegate method to complete the operation.
Type: System..::..Object
A Object that represents state for the request.

Return Value

Type: System..::..IAsyncResult
An IAsyncResult object.

A Silverlight IIS Smooth Streaming Offline Cache Sample that demonstrates implementation of ISmoothStreamingCache is available on the IIS Website.

For documentation of the sample, see Cache Plug-in Implementation of ISmoothStreamingCache.

The following code shows an implementation of the BeginRetrieve(CacheRequest, AsyncCallback, Object) method.

    public IAsyncResult BeginRetrieve(CacheRequest request, AsyncCallback callback, object state)
        CacheResponse response = null;
        CacheAsyncResult ar = new CacheAsyncResult();
        ar.strUrl = request.CanonicalUri.ToString();
        ar.Complete(response, true);
        return ar; 


Supported in: 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.0