Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // this class can be used to instantiate a unidirectional proxy (one that doesn't require callbacks from the server)
- public class UniDirectionalServiceProxy<T> : System.ServiceModel.ClientBase<T> where T : class
- {
- public UniDirectionalServiceProxy()
- {
- }
- public UniDirectionalServiceProxy(string endpointConfigurationName) :
- base(endpointConfigurationName)
- {
- }
- public UniDirectionalServiceProxy(string endpointConfigurationName, string remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
- public UniDirectionalServiceProxy(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
- base(endpointConfigurationName, remoteAddress)
- {
- }
- public UniDirectionalServiceProxy(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
- base(binding, remoteAddress)
- {
- }
- // new keyword allows us to supercede the inherited protected member and make it public.
- public new T Channel
- {
- get
- {
- return base.Channel;
- }
- }
- }
Add Comment
Please, Sign In to add comment