-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
Hi Frank This is in the Class Csla.Rules.BusinessRules Thomas