Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum

CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • How to Split CSLA 4 DataPortal between two different remote servers

    rated by 0 users
    Answered (Not Verified) This post has 0 verified answers | 1 Reply | 2 Followers

    Top 100 Contributor
    80 Posts
    JonStonecash posted on Thu, Jun 3 2010 11:48 AM

    I am working on an application that needs to access data locally as well as remotely.  I have built a class that implements IDataPortalProxyFactory and loads up the WcfProxy class if remote access is needed and LocalProxy otherwise.  I have not gotten it work yet, but it seems simple enough.

    I may also have a situation coming up in which I need to pick between two different remote servers, that is, the same service but running on different machines.  My brief look at the CSLA code suggests that there is a single WCF URL value for the application.  That, iin turns, suggests that there is no way to use two different versions of the WcfProxy.

    Is this correct?  Any suggestions about how to have the application talk to more than one remote server?

    Jon Stonecash


    All Replies

    Top 10 Contributor
    9,475 Posts

    You need to create a subclass of WcfProxy - you can then override the URL, or even the methods that create the proxy and/or proxy factory.


    Page 1 of 1 (2 items) | RSS

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems