Message in Polish (Polski)
Synchroniczna metoda klasy OperationContract „<var>Method name</var>” w typie „<var>Type Name</var>” została dopasowana do opartej na zadaniach asynchronicznej metody klasy OperationContract „<var>X</var>”, ponieważ zawierają one operację o takiej samej nazwie „X”. Gdy synchroniczna metoda klasy OperationContract jest dopasowywana do opartej na zadaniach asynchronicznej metody klasy OperationContract, obie klasy OperationContract muszą definiować taki sam zwracany typ. W tym przypadku zwracane typy są różne. Aby rozwiązać ten problem, upewnij się, że metoda „<var>Method name</var>” i metoda „<var>X</var>” mają taki sam zwracany typ. Możesz też zmienić nazwę jednej z metod, co zapobiegnie dopasowywaniu.
Unlocalized message
The synchronous OperationContract method '<var>Method name</var>' in type '<var>Type Name</var>' was matched with the task-based asynchronous OperationContract method '<var>X</var>' because they have the same operation name 'X'. When a synchronous OperationContract method is matched to a task-based asynchronous OperationContract method, the two OperationContracts must define the same return type. In this case, the return types are different. To fix it, ensure that method '<var>Method name</var>' and method '<var>X</var>' have the same return type. Alternatively, changing the name of one of the methods will prevent matching.
Search by Google