예제 #1
0
 public void Register(IRegistrationHelper registrationHelper)
 {
     registrationHelper
     .RegisterEndPoints(EndPoints)
     .Register <InProcessClient1, IDummyAPI1>(EndPointType.InProcess, APINames.DummyAPI1, ProviderName.MSSQL)
     .Register <InProcessClient1, IDummyAPI1>(EndPointType.InProcess, APINames.DummyAPI1)
     .Register <InProcessClient3, IDummyAPI1>(EndPointType.InProcess, APINames.DummyAPI1, ProviderName.MySQL)
     .Register <WebAPIClient1, IDummyAPI1>(EndPointType.HTTP, APINames.DummyAPI1)
     .Register <InProcessClient2, IDummyAPI2>(EndPointType.InProcess, APINames.DummyAPI2)
     .Register <WebAPIClient2, IDummyAPI2>(EndPointType.HTTP, APINames.DummyAPI1)
     .RegisterEndPointValidator <InProcessEndPointValidator>(EndPointType.InProcess, ProviderName.MSSQL)
     .RegisterEndPointValidator <InProcessEndPointValidator>(EndPointType.InProcess, ProviderName.MySQL)
     .RegisterEndPointValidator <InProcessEndPointValidator>(EndPointType.InProcess)
     .RegisterEndPointValidator <HttpEndPointValidator>(EndPointType.WCF, null)
     .RegisterEndPointValidator <HttpEndPointValidator>(EndPointType.HTTP, null)
     .RegisterLogger(Logger);
 }