Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initializes a new instance of the ServerSyncProviderProxy class by using a service proxy parameter.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)
Syntax
'Declaration
Public Sub New ( _
serviceProxy As Object _
)
public ServerSyncProviderProxy (
Object serviceProxy
)
public:
ServerSyncProviderProxy (
Object^ serviceProxy
)
public ServerSyncProviderProxy (
Object serviceProxy
)
public function ServerSyncProviderProxy (
serviceProxy : Object
)
Parameters
- serviceProxy
A reference to the service that communicates with the ServerSyncProvider.
Remarks
The ServerSyncProviderProxy class is used in N-tier scenarios: The proxy class is used on the client, and the server synchronization provider class is used on the server or on a middle-tier. The proxy communicates with a service on the server or middle-tier, and the service in turn communicates with the server synchronization provider.
Example
The following code example is from a class that derives from SyncAgent. For two-tier synchronization, the client provider and server provider are both referenced directly in the synchronization agent as local and remote providers.
this.LocalProvider = new SampleClientSyncProvider();
this.RemoteProvider = new SampleServerSyncProvider();
Me.LocalProvider = New SampleClientSyncProvider()
Me.RemoteProvider = New SampleServerSyncProvider()
The following code example references the client provider directly, as in the two-tier example. However, the remote provider now references a proxy instead of directly referencing the server provider. The proxy is created by passing a reference to a WCF service. For more information, see How to: Configure N-Tier Synchronization and the samples at this Microsoft Web site.
this.LocalProvider = new SampleClientSyncProvider();
ServiceReference.ServiceForSyncClient serviceProxy = new ServiceReference.ServiceForSyncClient();
this.RemoteProvider = new ServerSyncProviderProxy(serviceProxy);
Me.LocalProvider = New SampleClientSyncProvider()
Dim serviceProxy As New ServiceReference.ServiceForSyncClient()
Me.RemoteProvider = New ServerSyncProviderProxy(serviceProxy)
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements (Synchronization Services).
Target Platforms
See Also
Reference
ServerSyncProviderProxy Class
ServerSyncProviderProxy Members
Microsoft.Synchronization.Data Namespace