This is a migrated thread and some comments may be shown as answers.

How to use these classes?

3 Answers 220 Views
FiddlerCore
This is a migrated thread and some comments may be shown as answers.
almod90
Top achievements
Rank 1
almod90 asked on 23 Mar 2019, 04:49 PM

Demo App says i should use other classes

FiddlerCoreStartupSettingsBuilder<FiddlerCoreStartupSettingsBuilder, FiddlerCoreStartupSettings>.RegisterAsSystemProxy()' is obsolete: 'Please use the Telerik.NetworkConnections.NetworkConnectionsManager to register the FiddlerCore Proxy as the system proxy.'

I referenced the required component, but the class is sealed so i can't create an instance of this class. Documentation covers nothing, it just says the same thing as visual studio do.

I tried to use this in the first place, because fiddler core can't set itself as a system proxy. WinHTTP service is running, still nothing. 


3 Answers, 1 is accepted

Sort by
0
Accepted
Simeon
Telerik team
answered on 27 Mar 2019, 01:55 PM
Hi Alexey,

Please, take a look at this thread https://www.telerik.com/forums/how-do-i-use-telerik-networkconnections-networkconnectionsmanager

Regards,
Simeon
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Xiacon
Top achievements
Rank 1
answered on 05 Aug 2019, 02:52 PM

Honestly, that other thread is useless. Like almod90 said, the NetworkConnectionsManager class has no public constructor, so you can't create an instance. It is not inheritable. All of the methods on it are instance methods, not static/shared. And there seems to be no method in the libraries which will create an instance of NetworkConnectitonsManager for you.

So how exactly are you supposed to use a class meant to be used as an instance, if there is no way to actually create an instance of the class?

0
Eric R | Senior Technical Support Engineer
Telerik team
answered on 08 Aug 2019, 02:31 PM
Hi Xiacon,

Apologies for the confusion. The best approach to use the NetworkConnectionManager is to extend it using the Managed Extensibility Framework (MEF). One way to do this is to create classes that inherit the interfaces and create the custom implementations as needed in these new classes. 

For additional reference, see the Simple Calculator sample code which shows how to use interfaces with the MEF and a custom class.

Please let me know if you need any additional information. Thank you.

Regards,

Eric R | Technical Support Engineer
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
FiddlerCore
Asked by
almod90
Top achievements
Rank 1
Answers by
Simeon
Telerik team
Xiacon
Top achievements
Rank 1
Eric R | Senior Technical Support Engineer
Telerik team
Share this question
or