wcf - setting maxBufferPoolSize of basicHttpBinding programmatically -
i trying set maxbufferpoolsize along maxreceivedmessagesize , maxbuffersize. however, when try set it, got message "'maxbufferpoolsize' not member of 'system.servicemodel.basichttpbinding'." using vs 2010. ms documentation, maxbufferpoolsize member ( http://msdn.microsoft.com/en-us/library/system.servicemodel.basichttpbinding.maxbufferpoolsize). why getting error??? please help. thank you.
dim basichttpbinding basichttpbinding = new basichttpbinding() dim endpointaddress endpointaddress = new endpointaddress("/test.svc") basichttpbinding.maxreceivedmessagesize = "2147483647" basichttpbinding.maxbuffersize = "2147483647" **basichttpbinding.maxbufferpoolsize = "2147483647"** basichttpbinding.opentimeout = new timespan(0, 20, 0) basichttpbinding.closetimeout = new timespan(0, 10, 0) basichttpbinding.receivetimeout = new timespan(0, 10, 0) basichttpbinding.sendtimeout = new timespan(0, 10, 0) dim svc svc= new channelfactory(of svc)(basichttpbinding, endpointaddress).createchannel '... binding
per comments, you're using silverlight, property doesn't exist in framework. there's no buffer pooling in silverlight, why doesn't compile.
Comments
Post a Comment