Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using DataContractAttribute.Name or ProtoContractAttribute.Name as DataContract's name #346

Open
DosangGu opened this issue Nov 6, 2024 · 1 comment

Comments

@DosangGu
Copy link

DosangGu commented Nov 6, 2024

To avoid duplicate data contract name when using DataContract classes with same name, but different namespaces, I think it needs some mechanism for renaming data contract's name.

Found some referencable operation in ServiceBinder class that renames operation contract's name by using OperationAttribute.Name and OperationContractAttribute.Name

else if (attribs.IsDefined("System.ServiceModel.OperationContractAttribute"))
{
attribs.TryGetAnyNonWhitespaceString("System.ServiceModel.OperationContractAttribute", "Name", out opName);
}

@mgravell
Copy link
Member

mgravell commented Nov 6, 2024

services and data types have quite a few differences; can you perhaps give a minimal but complete example of the scenario that is causing you a problem, and what you're seeing, so we don't talk past each-other?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants