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

A Http transport implementation for processing a CachedRequest.
Inheritance: CacheRequestHandler
Afficher le fichier Open project: rafek/SyncFx

Méthodes publiques

Свойство Type Description
TempIdToEntityMapping IOfflineEntity>.Dictionary

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

FirePreRequestHandler() public méthode

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

HttpCacheRequestHandler() public méthode

public HttpCacheRequestHandler ( Uri serviceUri, CacheControllerBehavior behaviors ) : System
serviceUri System.Uri
behaviors CacheControllerBehavior
Résultat System

ProcessCacheRequest() public méthode

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

Property Details

TempIdToEntityMapping public_oe property

public Dictionary TempIdToEntityMapping
Résultat IOfflineEntity>.Dictionary