locked
How to set variables on WCF service (n-tier) that are available session-wide? RRS feed

  • Question

  • In SFx 1.0 I could store parameter values in the SyncAgent.  In SFx 2.x the SyncOrchestrator object does not allow for this.

    I used these values for other purposes during the sync (ex: running user-specific queries before the sync to determine if I wanted to let the user continue with the sync).

    How can I store values at the client that are accessible in the WCF service?

    Wednesday, June 8, 2011 7:33 PM

Answers

  • can you not just extend the relational provider proxy and the service to include the properties/operations you want to add?

    for example if you look at the RelationalProviderProxy in the n-tier samples, there are operations there for setting the batching directory and uploading/downloading files which are not really Sync Fx native functionalities but are just extensions to make Sync Fx work via WCF

    • Marked as answer by P H T Wednesday, June 15, 2011 8:48 PM
    Thursday, June 9, 2011 12:22 AM