c# - How to pass Interface as parameter in WCF service? -


I have the following, but I'm not sure this is the right way to do it. Namespace WCFServices {[ServiceContract (Name = "IService")] [ServiceCanTypeAitrate (typewrite)] Public Interface Eyes {(OperationContract) Zero InstantTrited Parties (string name, INMemreble & lt ; IDATIMM & gt; data, INMEMERABLE & lt; string & gt; Module, INIMERABLE & lt; string & gt; states); }}

This is the code using the interface. Namespace WCFServices {Public Class Service: IService {Public Zero InstantiateThirdParties (String Name, IEnumerable & lt; IDataItem & gt; Data, IEnumerable & lt; String & gt; Module, IEnumerable & lt; ; String & gt; States) {Process.ExecuteAll (name, data, module, state); }}}

and this time my only object type is low.

  Namespace data object {[Serialzable] [DataContract] Public class datagram: IDataItem {public data system (); [Database] Public Customer Inbound Customers {Receive; Set; } [Datamember] Public Loan Info Loan {Receive; Set; } [Datamember] Receive Public Debt Lending Processing Date { Set; } [Database] Public String Module ID {Receive; Set; } [Datamember] public string processingtate {get; Set; }}}  

Am I going in the right direction?

You need to use KnownTypeAttribute instead of the service keywords type attribute.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -