Dark_rider - Do 12.11.09 14:49
Titel: Frage zu Verweis hinzufügen in VS 2008
Hallo!
Ich habe eine Solution angelegt mit 2 Projekten: TestService und TestServiceContract.
In TestServiceContract liegt der Kontrakt (interface) zu dem Service. Das Interface heißt "ITestService". Nun habe ich einen Verweis auf das Projekt TestServiceContract in TestService hinzugefügt und using TestServiceContract hinzugefügt, aber er zeigt mir nicht das Interface "ITestService" an oder mit anderen Worten ich kann ITestService nicht nutzen. Der Code im TestService sieht in etwa so aus:
C#-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25:
| using System.ServiceModel; using TestServiceContract;
namespace TestService { [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)] public class TestService : ITestService { }
}
using System.ServiceModel;
namespace TestServiceContract { [ServiceContract] interface ITestService { [OperationContract] int Sum(int a, int b); } } |
Habe ich irgendwas vergessen bzw. falsch gemacht?
Danke im Voraus!