> You don't need to create a new interface. The Offline application block
> has
[quoted text clipped - 3 lines]
>
> Luke
Hello Dima,
You may take a look at an sample in Offline Application Block Quick Start,
named "Conncection Management Quick Start". In its app.config:
<ConnectionManagerProviders>
<provider name="connectionDetectionStrategy"
enabled="true"
type="Microsoft.ApplicationBlocks.SmartClient.Offline.WinINetDetectionStrate
gy,Microsoft.ApplicationBlocks.SmartClient.Offline.Providers,Version=1.0.0.0
,Culture=neutral,PublicKeyToken=null">
<pollingInterval>2</pollingInterval>
</provider>
</ConnectionManagerProviders>
This specify a class
"Microsoft.ApplicationBlocks.SmartClient.Offline.WinINetDetectionStrategy"
to detect the connection. And here is the definition for this class:
public class WinINetDetectionStrategy : IConnectionDetectionStrategy,
IProvider
{
..
}
As you see the class implements IConnectionDetectionStrategy and
IProvider. You need customized detection strategy. you may create a class
intead of this one, which also implements IConnectionDetectionStrategy and
IProvider.
Luke
Dima Semensky - 28 Jan 2005 18:43 GMT
Great. That's what I've done. The problem that the rest of the app works via
IConnectionDetectionStrategy not class instance. So, I either have to extend
the interface or change all rest of the code to pass class instance rather
than interface. First looks much better; the problem with this one is that
other "strategies" that implement the interface will not work anymore.
This is why I'd suggest to update the block to include "connection quality"
functionality as standard feature.
> Hello Dima,
>
[quoted text clipped - 31 lines]
>
> Luke
[MSFT] - 31 Jan 2005 05:26 GMT
It is a great idea for "connection quality". Hopr it can occur in later
version.
Luke