Skip to content
Discussion options

You must be logged in to vote

For whatever reason two contracts have the same name but in different namespaces

namespace Standard
{
    [ServiceContract]
    public interface ICalculator { }
}

namespace Scientific
{
    [ServiceContract]
    public interface ICalculator { }
}

The client, option 1

namespace Client;

[ImportGrpcService(typeof(Standard.ICalculator))]
public static partial class StandardClients
{
   // generated code
   static AddCalculatorClient(this IClientFactory clientFactory)
}

[ImportGrpcService(typeof(Scientific.ICalculator))]
public static partial class ScientificClients
{
   // generated code
   static AddCalculatorClient(this IClientFactory clientFactory)
}

IClientFactory clientFactory = ...

/…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by EunjeongChoi414
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants