archive-be.com » BE » B » BENNYMICHIELSEN.BE

Total: 348

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • channel – Benny Michielsen
    object type WCFChannelManager AutoSizePoolFactory Perponcher WCFChannelManager constructor arg object property object property object The same approach can be used to configure the channelfactory for i e passing credentials object id MyService type WCFChannelManager ChannelManagerFactoryObject Perponcher WCFChannelManager property name ChannelType expression T Server IService1 Common property name EndpointConfigurationName value MyEndpoint property name ChannelManagementMode value VariablePool property name ProductTemplate object property name ChannelManager ChannelFactory Credentials UserName UserName value username property name ChannelManager ChannelFactory Credentials UserName Password value password object property object That s it for now Future additions will include setting the pool size of a fixed sized pool via the FactoryObject for now the default of 5 is used extend or add a new pool based on the SimplePool At the moment closed or faulted channels are not removed from that implementation meaning that when your 5 channels are closed the pool will raise an exception WCFChannelManager drop3 zip 1 16 mb Series Migrating from asmx webservices to WCF with Spring Net Configuring the ChannelManager First Drop Second Drop Third Drop Author BennyM Posted on 22 03 2009 Categories Software Development Spring NET Tags channel pool wcf Leave a comment on WCF ChannelManagement drop 3 WCF ChannelManagement drop 2 Updated version is now available no channel pooling yet but I changed the way default values and the ProductTemplate were being handled I ve already used the library successfully at work in a very heavy WCF application I found some issues with it like when you wanted to configure the ChannelFactory in your configuration file but these are now fixed Next up pooling WCFChannelManager drop2 zip 1 14 mb Series Migrating from asmx webservices to WCF with Spring Net Configuring the ChannelManager First Drop Second Drop Third Drop Author BennyM Posted on 14 03 2009 Categories Software Development Spring NET Tags channel wcf Leave a comment on WCF ChannelManagement drop 2 First drop of ChannelManagement available First drop available of the ChannelManagement library Currently only support single action channels meaning that after executing the operation the channel is closed I hope to add pooling the coming week The zip contains the source code and an example project Not much changes in the end user code static void Main string args var myService ContextRegistry GetContext GetObject MyService as IService1 string value myService GetData 5 var returnValue myService GetDataUsingDataContract new CompositeType BoolValue false StringValue Perponcher Console ReadLine spring context resource uri config spring objects context objects xmlns http www springframework net object id MyService type WCFChannelManager ChannelManagerFactoryObject Perponcher WCFChannelManager property name ChannelType expression T Server IService1 Common property name EndpointConfigurationName value MyEndpoint object objects spring system serviceModel client endpoint name MyEndpoint address http localhost 8731 Design Time Addresses Server Service1 contract Server IService1 binding wsHttpBinding client system serviceModel Out and ref parameters are not yet supported WCFChannelManager zip 1 17 mb Series Migrating from asmx webservices to WCF with Spring Net Configuring the ChannelManager First Drop Second Drop Third Drop Author BennyM Posted on 08 03 2009 Categories Software Development Spring NET Tags channel

    Original URL path: http://blog.bennymichielsen.be/tag/channel/ (2016-04-29)
    Open archived version from archive


  • Memory profiling from the trenches – Benny Michielsen
    s a good practice that whenever you subscribe to an event you also unsubscribe when you no longer need to know about it Every needs its In some places its easy to spot When you got one presenter let s see an OrderPresenter with one view OrdersView you quickly see the mistake that was made But in more complex situations let s say that OrdersPresenter was also talking to an CustomerPresenter and OrderDetailPresenter which in turn talked to other presenters you ll be switching between Visual Studio and ANTS to try to understand what s going on in the system Never the less I was able to get all the forms disposed properly when they were closed or no longer needed Except in one specific situation The application has a multiple document interface MDI When it starts it loads the OrdersOverview form and shows some global information in this example all current orders When I closed this overview screen and looked at the output from Ants the form was still in memory No matter what I tried for some reason the MDI parent kept referring to the MDI child which was closed After hours of walking through the code to find the culprit I launched one Google query which found a page on Microsoft Connect It s a bug in the NET framework sigh what a waste of time Another thing that was new to me was that whenever you show a form as modal and you close it It will be kept active as well you need to explicitly call Dispose to get rid of it Four years of WinForm development and I still learn so much new stuff Author BennyM Posted on 23 07 2009 Categories Software Development Tags garbage gc memory winforms Leave a Reply Cancel reply

    Original URL path: http://blog.bennymichielsen.be/2009/07/23/memory-profiling-from-the-trenches/ (2016-04-29)
    Open archived version from archive

  • garbage – Benny Michielsen
    or presenters we use MVC to create our UI hence the memory footprint It s a good practice that whenever you subscribe to an event you also unsubscribe when you no longer need to know about it Every needs its In some places its easy to spot When you got one presenter let s see an OrderPresenter with one view OrdersView you quickly see the mistake that was made But in more complex situations let s say that OrdersPresenter was also talking to an CustomerPresenter and OrderDetailPresenter which in turn talked to other presenters you ll be switching between Visual Studio and ANTS to try to understand what s going on in the system Never the less I was able to get all the forms disposed properly when they were closed or no longer needed Except in one specific situation The application has a multiple document interface MDI When it starts it loads the OrdersOverview form and shows some global information in this example all current orders When I closed this overview screen and looked at the output from Ants the form was still in memory No matter what I tried for some reason the MDI parent kept referring to the MDI child which was closed After hours of walking through the code to find the culprit I launched one Google query which found a page on Microsoft Connect It s a bug in the NET framework sigh what a waste of time Another thing that was new to me was that whenever you show a form as modal and you close it It will be kept active as well you need to explicitly call Dispose to get rid of it Four years of WinForm development and I still learn so much new stuff Author BennyM Posted on 23 07

    Original URL path: http://blog.bennymichielsen.be/tag/garbage/ (2016-04-29)
    Open archived version from archive

  • memory – Benny Michielsen
    other presenters you ll be switching between Visual Studio and ANTS to try to understand what s going on in the system Never the less I was able to get all the forms disposed properly when they were closed or no longer needed Except in one specific situation The application has a multiple document interface MDI When it starts it loads the OrdersOverview form and shows some global information in this example all current orders When I closed this overview screen and looked at the output from Ants the form was still in memory No matter what I tried for some reason the MDI parent kept referring to the MDI child which was closed After hours of walking through the code to find the culprit I launched one Google query which found a page on Microsoft Connect It s a bug in the NET framework sigh what a waste of time Another thing that was new to me was that whenever you show a form as modal and you close it It will be kept active as well you need to explicitly call Dispose to get rid of it Four years of WinForm development and I still learn so much new stuff Author BennyM Posted on 23 07 2009 Categories Software Development Tags garbage gc memory winforms Leave a comment on Memory profiling from the trenches Replace MacBook memory Today I upgraded my MacBook early 2008 from 2 512 MB RAM to 2 2 GB RAM The entire process took me 5 minutes including the time to search for a fitting screw driver It was far easier than expected First turn over your MacBook so the top is facing the table Make sure you have a clean and soft surface to avoid any scratches Use a 10 cent piece to

    Original URL path: http://blog.bennymichielsen.be/tag/memory/ (2016-04-29)
    Open archived version from archive

  • SVN Repository available – Benny Michielsen
    illustrated on this blog I ll look into that later today I ll also be patching the channel library with a bug fix which someone on the Spring Net forum was kind enough to provide Had hoped to do that yesterday but the machine on which I was working did not have NUnit installed and Sourceforge was down So stay tuned this blog will get some more action in August Repository is located at Edit Moved code to github https github com BennyM SpringWCFChannelManager Author BennyM Posted on 23 07 2009 10 12 2011 Categories Software Development Spring NET Tags fluent nhibernate wcf Leave a Reply Cancel reply Your email address will not be published Required fields are marked Comment Name Email Website Post navigation Previous Previous post This week on my screen 10 Next Next post Memory profiling from the trenches Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data Factory pipeline BennyM on WCF HTTPS And Request Entity Too Large Justin on WCF HTTPS And Request Entity Too Large The Morning Brew Chris Alcock The Morning Brew 2052 on Getting up and running with Mono and Raspberry Pi 3 bhldev

    Original URL path: http://blog.bennymichielsen.be/2009/07/23/svn-repository-available/ (2016-04-29)
    Open archived version from archive

  • fluent nhibernate – Benny Michielsen
    2 Comments on This week on my screen 1 Mapping a list of components with Fluent NHibernate This took me some time to figure out since documentation for Fluent NHibernate is still a little scarce Let s say we have an entity ActivityType which has an icon and a name but the name is stored for each language so we have a one to many relationship This relationship is not only modelled in the entity ActivityType but also in several others The translation is modelled in the LocalizedEntity class As illustrated in the class diagram below The DB is illustrated in the next diagram to make it easy the tables have a different name compared to the entity diagram p The mapping for the Language entity is pretty straightforward The mapping for the ActivityType and its localizations was a bigger challenge since I got lost in all the delegates after the Component method public class LanuageMapping ClassMap Language public LanuageMapping Id x x Id Map x x Name WithTable 7de Languages public class ActivityTypeMapping ClassMap ActivityType public ActivityTypeMapping WithTable 7de EventTypes Id activityType activityType Id Map activityType activityType IconName HasMany LocalizedEntity activityType activityType Descriptions WithTableName 7de LocalizedEventTypes Component description description References Language desc desc Language CanNotBeNull description Map desc desc Localization CanNotBeNull Author BennyM Posted on 05 01 2009 Categories Software Development Tags fluent nhibernate nhibernate 3 Comments on Mapping a list of components with Fluent NHibernate Using Fluent NHibernate in Spring Net In order to load the mappings you ve written using Fluent NHibernate you need to call the extension method AddMappingsFromAssembly on the configuration The LocalSessionFactoryObject defined in Spring Net supports out of the box the loading of hbm files from an assembly or a location in the file system Luckily this class can be extended with ease

    Original URL path: http://blog.bennymichielsen.be/tag/fluent-nhibernate/ (2016-04-29)
    Open archived version from archive

  • This week on my screen #10 – Benny Michielsen
    will not be published Required fields are marked Comment Name Email Website Post navigation Previous Previous post This week on my screen 9 Next Next post SVN Repository available Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data Factory pipeline BennyM on WCF HTTPS And Request Entity Too Large Justin on WCF HTTPS And Request Entity Too Large The Morning Brew Chris

    Original URL path: http://blog.bennymichielsen.be/2009/06/14/this-week-on-my-screen-10/ (2016-04-29)
    Open archived version from archive

  • architecture – Benny Michielsen
    Categories Software Development Tags architecture nhibernate tdd Leave a comment on This week on my screen 10 Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data Factory pipeline BennyM on WCF HTTPS And Request Entity Too Large Justin on WCF HTTPS And Request Entity Too Large The Morning Brew Chris Alcock The Morning Brew 2052 on Getting up and running with Mono

    Original URL path: http://blog.bennymichielsen.be/tag/architecture/ (2016-04-29)
    Open archived version from archive