Re: wcf client picking up old endpoint - config cached somewhere?

2011-09-16 Thread Raghu Rana
Have you tried disposing the Service (ClientBase) class to see if it
makes any differences. I just checked that ClientBase of T is IDisposable.
Might be worthwhile enclosing that in a using statement and reading the
config value just before the start of the using block. Hope that helps.
Cheers.


On Fri, Sep 16, 2011 at 4:52 PM, Wallace Turner wrote:

> One more thing... the WCF client only starts doing this after you have
> called it once (ie you can change the config as many times as you like
> before using it for the first time and it picks up the correct one)
>
> Wcf.**StopBeingLazyAndFetchMyNewConf**igNowNow=tru;
>
>
>
>
>
>
> calling wcf gurus...
>
> Does something in wcf cache the service.model section?
>
> I've modified the config file, specifically the endpoint address in
>
> 
> 
> 
> 
>  viaUri="https://192.168.10.1:**443/ServiceName<https://192.168.10.1:443/ServiceName>
> "/>
> 
>
> and then...
> cfg.Save();
> ConfigurationManager.**RefreshSection("system.**serviceModel/behaviors");
> ..and tried all other variants of RefreshSection.
>
> RefreshSection *works*... when I inspect the config (via
> ConfigurationManager) its updated, but when I declare my Binding again, eg
>
> var client = new Service("serviceName");
>
> this picks up the previously saved URI in the clientVia element.
>
> Where is it getting it from because the ConfigurationManager certainly
> returns the correct value.
>
>
>
>


-- 
Raghu Rana
Mobile: +61 432 139 301
Email: raghur...@gmail.com


Re: Detect whether asp.net or winform

2011-09-13 Thread Raghu Rana
I suppose you can check in your class library if HttpContext.Current is null
?

On Wed, Sep 14, 2011 at 12:52 PM, Anthony Mayan  wrote:

> Is it possible to detect whether the code is runing on asp.net or winforms
> from a class library?
>
> Anthony
>



-- 
Raghu Rana
Mobile: +61 432 139 301
Email: raghur...@gmail.com


Re: Window Management software

2011-09-07 Thread Raghu Rana
You could also look at http://www.displayfusion.com/

On Thu, Sep 8, 2011 at 8:56 AM, Joseph Clark  wrote:
> I've been using Ultramon for years for just one single feature - it extends
> the Windows taskbar onto secondary monitors. Can't live without it, now.
>
>
> On Wed, Sep 7, 2011 at 10:38 PM, Wallace Turner 
> wrote:
>>
>> Does anyone use any window management software, free or otherwise, that
>> they swear by ?
>>
>> I'm looking at Divvy right now...
>
>



-- 
Raghu Rana
Mobile: +61 432 139 301
Email: raghur...@gmail.com