// 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(); }
public PlaygroundApiController(IPlaygroundService playgroundService) { _playgroundService = playgroundService; }
public HomeController(IPlaygroundService playgroundService) { this.playgroundService = playgroundService; }