WCFServiceProxy
Service proxy for interacting with WCF services.
Install / Use
/learn @azzlack/WCFServiceProxyREADME
WCF/SOAP Service Proxy
Service proxy for consuming WCF/SOAP services.
This proxy solves some common problems when dealing with SOAP-based Windows Communication Foundation services.
Features:
- Auto-closing of client
- Automatic client and channel disposing
- Handles all types of exceptions
- Error tracing
This library works with the "Add Service Reference" functionality, as well as using a custom interface.
How to use the factory
// The simplest way to use it
ServiceProxyFactory.Create<IMyServiceClientInterface>().Use(
async (client) => {
await client.GetDataAsync(); // Do your magic here
});
// Custom error callback
ServiceProxyFactory.Create<IMyServiceClientInterface>().Use(
async (client) => {
await client.GetDataAsync(); // Call the service endpoints here
}, (exception) => {
throw exception; // Do something if an error occurs
});
Dependency Injection support
// Using SimpleInjector
// ErFrChannel is the interface for the service. Usually the same as the name attribute in your config file.
container.RegisterWebApiRequest<IServiceProxyWrapper<ErFrChannel>>(ServiceProxyFactory.Create<ErFrChannel>);
Related Skills
node-connect
340.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.1kCommit, push, and open a PR
