/// <summary>Creates service definition that can be registered with a server</summary> public static ServerServiceDefinition BindService(FrontDeskReportingSvcBase serviceImpl) { return(ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_GetArrivalsReport, serviceImpl.GetArrivalsReport) .AddMethod(__Method_GetCancelledReservationsReport, serviceImpl.GetCancelledReservationsReport) .AddMethod(__Method_GetDeparturesReport, serviceImpl.GetDeparturesReport) .AddMethod(__Method_GetInHouseGuestsReport, serviceImpl.GetInHouseGuestsReport) .AddMethod(__Method_GetNoShowsReport, serviceImpl.GetNoShowsReport) .AddMethod(__Method_GetVehiclesReport, serviceImpl.GetVehiclesReport) .AddMethod(__Method_GetGeneralAvailabilityReport, serviceImpl.GetGeneralAvailabilityReport) .AddMethod(__Method_GetHousekeepingAssignmentsReport, serviceImpl.GetHousekeepingAssignmentsReport) .AddMethod(__Method_GetUnoccupiedRoomsReport, serviceImpl.GetUnoccupiedRoomsReport) .AddMethod(__Method_GetFrontDeskReports, serviceImpl.GetFrontDeskReports).Build()); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(FrontDeskReportingSvcBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_GetFrontDeskReports, serviceImpl.GetFrontDeskReports) .AddMethod(__Method_GetHousekeepingAssignmentsReport, serviceImpl.GetHousekeepingAssignmentsReport).Build()); }