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
  • Browse Site by Tags

    Showing related tags and posts across the entire site.
    • System.Threading.Task, Version=

      I am trying to use ProjectTracker with CSLA 4.5.700 in Visual Studio 2012.4 Everything get compiled. Wpf UI runs fine but for Silverlight UI throws following exception. What could be reason. Could not load file or assembly 'System.Threading.Tasks, Verion='
      Posted to CSLA .NET discussion by Indraneel on Sun, Mar 29 2015
    • Re: Errors From Data Portal are all generic Async Error

      Not a bug, a feature :) It turns out that when you await a method that numerous things could occur within that method - even in parallel - and so it is possible for multiple exceptions to be returned. The only correct way to return exceptions from an async method is with an async exception - which is...
      Posted to CSLA .NET discussion by RockfordLhotka on Sat, May 3 2014
    • Re: How much async is too much?

      Remember that async usually does NOT mean multiple threads. It means concurrent IO. What you get from concurrent IO on a web server is really two things. First, the web server gets to reuse your thread when you code gets blocked by IO - at least that's my understanding. This improves the overall...
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Feb 25 2014
    • Wait for object to no longer be busy?

      I feel like I'm missing something simple. If you have a BO with Async business rules, how do you wait for the object to no longer be busy before carrying on with something else, such as asking the object to save itself? I would have thought there'd be some method to await the non-busy state,...
      Posted to CSLA .NET discussion by Andy on Tue, Sep 10 2013
    • SaveAynsc and await

      We are currently saving our CSLA object with SaveAsync using the following syntax: Model = await Model.SaveAsync(); I am getting an error with Object marked busy cannot be saved. It seems to be busy with validation. Our thought is to override save async to look at isbusy if isbusy then it needs to listen...
      Posted to CSLA .NET discussion by DanielS on Thu, Aug 15 2013
    • A BindingSourceNode problem.

      hi, all. When I modify the sample ActionExtenderSample(C# ) solution. async save data. than throw DataGridView.IndexOutOfRangeException. I hope to get some help. Thank you. // field private OrderDetailCollection _details; // constructor _details = OrderDetailCollection.GetOrderDetailCollection(); //...
      Posted to CSLA .NET discussion by lanzhoulei on Fri, Aug 2 2013
    • Per-property authorization rule that depends on async, lazy-loaded property

      What is the best approach for implementing a per-property authorization rule that depends on the result of an async, lazy-loaded property? Here's my suggestion: [Serializable] public sealed class Parent : BusinessBase<Parent> { public static readonly PropertyInfo<string> NameProperty...
      Posted to CSLA .NET discussion by Chattererman on Tue, May 7 2013
    • Re: How to handle exceptions on client side (e.g. UI)

      The CSLA books cover version 4.0-4.3. The data portal has changed _significantly_ in 4.5 because we now fully support async/await. The new async/await behaviors in .NET introduce some interesting exception handing issues, and I tried to handle them in a meaningful way. Because your DP_XYZ or factory...
      Posted to CSLA .NET discussion by RockfordLhotka on Mon, Mar 4 2013
    • Re: WCF Over WebSphere MQ

      I love your avatar graphic - SPOON!! :) The data portal only really requires a synchronous binding. But I'm guessing that the MQ binding is async, so it probably won't work, at least not easily. To put it another way, the client-side data portal proxy must appear to be synchronous. So you could...
      Posted to CSLA .NET discussion by RockfordLhotka on Sun, Feb 24 2013
    • Async rule called during DataPortal_Fetch

      Hi, I am using CSLA 4.2.2 with Silverlight (love it). I have a question about the use of async rules. I have some BusinessBase objects I fetch from the database.There is the possibility the database data can be incorrect, so I want to call BusinessRules.CheckRules() from within DataPortal_Fetch. In this...
      Posted to CSLA .NET discussion by richardp.au on Thu, Feb 21 2013
    • Re: BeginFetch and FetchAsync on local DataPortal

      [quote user="ngm"] Let's say I've got Order BO. When it's on the server-side Data Portal, prior to its persistence, it has to coordinate interaction with several other BOs such as Customer, ProductList and GeneralLedger. Order simply calls factory method on each of those objects...
      Posted to CSLA .NET discussion by RockfordLhotka on Thu, Feb 7 2013
    • Re: BeginFetch and FetchAsync on local DataPortal

      Many of my design thoughts were captured in my blog as I was doing the work for .NET 4.5 last year. For example: http://www.lhotka.net/weblog/CSLADataPortalChangesInVersion45.aspx There are two basic goals. First, on the client-side data portal I want to enable the use of the await keyword when calling...
      Posted to CSLA .NET discussion by RockfordLhotka on Wed, Feb 6 2013
    • CSLA 4.5.10 - Xaml.ViewModelBase under Silverlight

      Hi Rocky Since moving over from 4.3 to 4.5 I'm experiencing a strange issue with the Xaml ViewModelBase when calling BeginSave() and the DataPortal throws an exception. BeginSave works just fine when there is no exception on the server side data portal, however what I'm observing is that if the...
      Posted to CSLA .NET discussion by Jaans on Wed, Jan 16 2013
    • CSLA 4.5 - Do I need Callback EventHandlers if targeting only .NET 4.5 vs async/await

      For new business objects and projects that will be targeted only for .NET Framework 4.5 and beyond and WinRT, do I still need to program my Factory methods (New, Get, etc.) in my business objects with Callback EventHandler options - or can I just use the async/await format Ray Klaassen
      Posted to CSLA .NET discussion by SMILEMan on Fri, Jan 11 2013
    • Version 4.5 data portal changes - async behaviors

      The behavior of the data portal has changed quite a bit from 4.3 to 4.5. This is because the data portal in Silverlight now works the same as in other platforms, and because BeginXYZ and XYZAsync now work the same. One primary area of change is when calling BeginCreate or BeginFetch and using the local...
      Posted to CSLA .NET discussion by RockfordLhotka on Thu, Dec 6 2012
    • BeginRefresh can not asynchronously excute in Csla 4.5.10

      In my WPF ViewModel populate data as below: public void PopulateData() { BeginRefresh(callback => ProductCategoryEditList.GetList(callback)); } In Csla 4.3.13 it can asynchronously excute and not block the UI thread. After update to csla 4.5.10. the UI will block until the method are excuted.
      Posted to CSLA .NET discussion by simon on Fri, Nov 16 2012
    • CSLA 4.5 Silverlight FetchAsync not returning

      Hi guys I'm having a strange problem. I have upgraded a Silverlight 5 project to use latest CSLA 4.5. This project uses the old style factories with the EventHandler<DataPortalResult<T>> callback signature. These work just fine before and after the 4.5 upgrade. However, if I create a...
      Posted to CSLA .NET discussion by Jaans on Mon, Nov 12 2012
    • Re: WinRT - call to async CSLA factory method causes delay in rendering

      I have had difficulties with initializing the model in the constructor, though in your code I'd expect it to work. But you can't mark a constructor as async, so you can't use await there. Because of this, the 4.5 ViewModelBase now includes an InitAsync method so you can do this in your UI...
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, Oct 12 2012
    • WinRT - call to async CSLA factory method causes delay in rendering

      This may not be related to CSLA, but I wanted to ask here anyway just in case. In my WinRT app, when I navigate to another page from the main page, I have the following code in the LoadState event: ViewModels.MyViewModel vm = new ViewModels.MyViewModel(); this.DataContext = vm; In the constructor of...
      Posted to CSLA .NET discussion by Tim on Thu, Oct 11 2012
    • Re: CSLA 4.5.3 hangs in synchronous Save()

      I was thinking that perhaps I can detect that the following are true: Client made a sync call "Server-side" code is in ExecutionLocation.Client Target method (DP_XYZ or factory method) returns Task In that case, the data portal could explicitly spin up a background thread on which it could...
      Posted to CSLA .NET discussion by RockfordLhotka on Wed, Oct 10 2012
    Page 1 of 2 (40 items) 1 2 Next >

    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