Duplex Communication in WCF RRS feed

  • Question

  • Hi,   I am trying to implement a two way communication using wcf callback,but if i am changing the return type from void it shows some errors and it does'nt allow return type other than void.

    my service code snippet as :

      [ServiceContract(CallbackContract = typeof(IFileDownloadServiceCallback))]
        public interface IFileDownloadService
            [OperationContract(IsOneWay =true)]
            void DoWnload();
        public interface IFileDownloadServiceCallback
            void Notification(FileDetails i);

    Marking void as return type i got notification(callback).But i need Notification and some return values from the service.How can i achieve this.

    Can anyone help me

    Latheesh K Contact No:+91-9747369936

    Tuesday, March 15, 2016 2:05 PM