C# Class Microsoft.Samples.Synchronization.ClientServices.HttpCacheRequestHandler

A Http transport implementation for processing a CachedRequest.
Inheritance: CacheRequestHandler
Exibir arquivo Open project: rafek/SyncFx

Public Properties

Property Type Description
TempIdToEntityMapping IOfflineEntity>.Dictionary

Public Methods

Method Description
FirePostResponseHandler ( HttpWebResponse response ) : void

Invokes the user's AfterReceivingResponse callback.

FirePreRequestHandler ( HttpWebRequest request ) : void

Invokes the user BeforeSendingRequest callback.

HttpCacheRequestHandler ( Uri serviceUri, CacheControllerBehavior behaviors ) : System
ProcessCacheRequest ( CacheRequest request ) : object

Called by the CacheController when it wants this CacheRequest to be processed.

Private Methods

Method Description
CheckEntityServiceMetadataAndTempIds ( IOfflineEntity>.Dictionary tempIdToEntityMapping, IOfflineEntity entity, string tempId, ChangeSetResponse response ) : void
CopyStreamContent ( Stream src, Stream dst ) : void
ProcessDownloadRequest ( HttpWebRequest webRequest, CacheRequest request ) : object
ProcessUploadRequest ( HttpWebRequest webRequest, CacheRequest request ) : object

Method Details

FirePostResponseHandler() public method

Invokes the user's AfterReceivingResponse callback.
public FirePostResponseHandler ( HttpWebResponse response ) : void
response System.Net.HttpWebResponse
return void

FirePreRequestHandler() public method

Invokes the user BeforeSendingRequest callback.
public FirePreRequestHandler ( HttpWebRequest request ) : void
request System.Net.HttpWebRequest
return void

HttpCacheRequestHandler() public method

public HttpCacheRequestHandler ( Uri serviceUri, CacheControllerBehavior behaviors ) : System
serviceUri System.Uri
behaviors CacheControllerBehavior
return System

ProcessCacheRequest() public method

Called by the CacheController when it wants this CacheRequest to be processed.
public ProcessCacheRequest ( CacheRequest request ) : object
request CacheRequest CacheRequest to be processed
return object

Property Details

TempIdToEntityMapping public_oe property

public Dictionary TempIdToEntityMapping
return IOfflineEntity>.Dictionary