CSLA .NET

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

Search

  • Generate Exception on client, when WCF-Connection has aborted

    Hi I have developers who are using my BusinessLibrary on the client side. They work with several servers. Switch to one server and Create/Load/Delete and Save BusinessObjects to it. Now, I am searching for a way to throw a ServerNotAvailable Exception when the WCF-Connection has aborted (for example when the server was shutted down or the network has
    Posted to CSLA .NET discussion (Forum) by t.kehl on Tue, Jan 29 2013
  • Re: EditableRoot will not be removed from Memory

    Hi Rocky I have tested this. I think it will work - but when I Load the Child-List, it take a very long time, till the instance will be collected from the GC (about 90 Seconds). Best Regards, Thomas
    Posted to CSLA .NET discussion (Forum) by t.kehl on Tue, Nov 1 2011
  • Re: EditableRoot will not be removed from Memory

    Hi Rocky I do not use large imaged or large byte[] types on this place. I will now build in my application two small classes (Editable-Root and Child) like this two without anything and try this with this two classes. I will back with the results. Best Regards, Thomas
    Posted to CSLA .NET discussion (Forum) by t.kehl on Tue, Nov 1 2011
  • Re: EditableRoot will not be removed from Memory

    Hi Rocky The ChildProperty is declared on this way: private static readonly PropertyInfo<Child.CustomFieldValueList> GeneralCustomFieldValueListProperty = RegisterProperty(new PropertyInfo<Child.CustomFieldValueList>("GeneralCustomFieldValueList")); Best Regards, Thomas
    Posted to CSLA .NET discussion (Forum) by t.kehl on Tue, Nov 1 2011
  • Re: EditableRoot will not be removed from Memory

    Hi Rocky This is the factory-method of the child-list (Child.CustomFieldValueList.GetCustomFieldValueList()): internal static void GetCustomFieldValueListAsync(Activity activity, bool general, bool defaultValues, EventHandler<DataPortalResult<CustomFieldValueList>> callback) { DataPortal.BeginFetch(new ActivityCriteria(activity.Id, general
    Posted to CSLA .NET discussion (Forum) by t.kehl on Mon, Oct 31 2011
  • Re: EditableRoot will not be removed from Memory

    I have found out, that when I remove the FetchCompleted-Eventhandler after complete from the DataPortal, it is working and my Object will be collected from the Memory. For doing this, I have created the Helper-Method: static EventHandler<DataPortalResult<Child.CustomFieldValueList>> GetEventHandler(object classInstance, string eventName
    Posted to CSLA .NET discussion (Forum) by t.kehl on Sun, Oct 30 2011
  • EditableRoot will not be removed from Memory

    Hi. I have attached a printscreen which shows my Problem in Redgates-Memory-Profiler. I have an EditableRoot-Object called Prayon.Library.Activity. For my Tests, I load the Activity-Object like private void OnDummy() { var a = Activity.GetTypedActivity(new Guid("8A4810EB-F516-11E0-B771-040CCEE2D49D")); } After the Fetch, I call the fallowing
    Posted to CSLA .NET discussion (Forum) by t.kehl on Sun, Oct 30 2011
  • Re: Other User for new Thread

    Hi. I have now tried something. When I change GetUser() of Csla.Xaml.ApplicationContextManager to this: public IPrincipal GetUser() { IPrincipal current; if (System.Windows.Application.Current != null) { if (_principal == null) { if (ApplicationContext.AuthenticationType != "Windows") _principal = new Csla.Security.UnauthenticatedPrincipal
    Posted to CSLA .NET discussion (Forum) by t.kehl on Sat, Oct 1 2011
  • Other User for new Thread

    Hi. I have a WPF-Application. There i start a seperate Thread, when the application starts. Now, I should set a other User for this Thread then the Application has. I have seen, that this works for non-WPF-Application. But in WPF-Application, the User (principal) will be stored in the ApplicationContext for WPF and always this is used. Is there a way
    Posted to CSLA .NET discussion (Forum) by t.kehl on Sat, Oct 1 2011
  • Re: Async UniqueID Rule CSLA 4

    Hi Frank This is in the Class Csla.Rules.BusinessRules Thomas
    Posted to CSLA .NET discussion (Forum) by t.kehl on Fri, Aug 26 2011
Page 1 of 4 (35 items) 1 2 3 4 Next > | More Search Options

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