Ejemplo n.º 1
0
 // creates service definition that can be registered with a server
 public static ServerServiceDefinition BindService(IPlaygroundService serviceImpl)
 {
     return(ServerServiceDefinition.CreateBuilder(__ServiceName)
            .AddMethod(__Method_GetPersonById, serviceImpl.GetPersonById)
            .AddMethod(__Method_GetPersonList, serviceImpl.GetPersonList)
            .AddMethod(__Method_CreatePeople, serviceImpl.CreatePeople)
            .AddMethod(__Method_ListenForNewPeople, serviceImpl.ListenForNewPeople).Build());
 }
 public PlaygroundConfigurationLoader(IPlaygroundService playgroundService, ICompanyService companyService, CalculatorFactory calculatorFactory)
 {
     _playgroundService = playgroundService;
     _companyService    = companyService;
     CalculatorFactory  = calculatorFactory;
 }
 // creates service definition that can be registered with a server
 public static ServerServiceDefinition BindService(IPlaygroundService serviceImpl)
 {
     return ServerServiceDefinition.CreateBuilder(__ServiceName)
       .AddMethod(__Method_GetPersonById, serviceImpl.GetPersonById)
       .AddMethod(__Method_GetPersonList, serviceImpl.GetPersonList)
       .AddMethod(__Method_CreatePeople, serviceImpl.CreatePeople)
       .AddMethod(__Method_ListenForNewPeople, serviceImpl.ListenForNewPeople).Build();
 }
Ejemplo n.º 4
0
 public PlaygroundApiController(IPlaygroundService playgroundService)
 {
     _playgroundService = playgroundService;
 }
Ejemplo n.º 5
0
 public HomeController(IPlaygroundService playgroundService)
 {
     this.playgroundService = playgroundService;
 }