Would appreciate is someone could please respond to my question below.
Thanks, Mo
Pasting the code again as there were few typos in the first one.
------------------------------------------------------------------------------
public interface ISomething
{
void SendData(string xmlData);
}
class SomeInputFilter: SoapFilter, ISomething
{
// Implement the ISomething interface
void ISomething.SendData(string xmlData)
{
......
}
...
public override T GetBehavior<T>()
{
return (ISomething)this; // This gives a syntax error
????? // What should be the implementation here to return instance of
ISomething interface from the current instance of SomeInputFilter???
}
}
------------------------------------------------------------------------
Code on Service Client:
ISomething something = (ISomething)Proxy.
PipeLine.GetInputBehavior<ISomething> ();
----------------------------------------------------------------------------------
> I am looking for a sample code on using GetInputBehavior or
> GetOutputBehavior method on Pipeline class.
[quoted text clipped - 49 lines]
> Thanks,
> Mo
Mo - 21 Feb 2006 17:16 GMT
Got it my self.
It should be
return (T)((ISomething)this);
> Would appreciate is someone could please respond to my question below.
> Thanks, Mo
[quoted text clipped - 90 lines]
> > Thanks,
> > Mo