c# - wcf callback interface - implement third party interface -



c# - wcf callback interface - implement third party interface -

i have interface definition want share other assemblies in solution placed in separate project;

public interface iname { string name { get; } }

however want utilize in project defines wcf callback interface:

public interface icallback : iname { }

so added [operationcontract] attribute iname interface so:

public interface iname { string name { [operationcontract(isoneway=false)] get; } }

but when utilize svcutil, output class doesn't contain inherited property. i've tried using /r flag reference assembly containing iname still ignores property.

i've tried adding [serviceknowntype] attribute callback interface still no luck:

[serviceknowntype(typeof(iname))] public interface icallback : iname { }

is possible implement external interface in wcf callback?

yes, interface inheriting works wcf.

try create interfaces public (to accessible in other assemblies, in case internal).

i not sure if wcf supports properties on public interfaces. seek testing method instead of property on callback interfaces. wcf interface not work in same way c# interface. wcf not back upwards overloading, example. seek way:

public interface iname { [operationcontract(isoneway=false)] string getname(); }

c# .net wcf

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -