/// <summary>Creates service definition that can be registered with a server</summary>
 public static ServerServiceDefinition BindService(GuestSvcBase serviceImpl)
 {
     return(ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_All, serviceImpl.All)
            .AddMethod(__Method_GetById, serviceImpl.GetById)
            .AddMethod(__Method_GetSeveralById, serviceImpl.GetSeveralById)
            .AddMethod(__Method_SearchByNamePrefix, serviceImpl.SearchByNamePrefix)
            .AddMethod(__Method_SearchByEmailAddress, serviceImpl.SearchByEmailAddress)
            .AddMethod(__Method_Create, serviceImpl.Create)
            .AddMethod(__Method_Update, serviceImpl.Update).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(GuestSvcBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_All, serviceImpl.All)
            .AddMethod(__Method_GetById, serviceImpl.GetById)
            .AddMethod(__Method_GetSeveralById, serviceImpl.GetSeveralById)
            .AddMethod(__Method_SearchByNamePrefix, serviceImpl.SearchByNamePrefix)
            .AddMethod(__Method_SearchByEmailAddress, serviceImpl.SearchByEmailAddress)
            .AddMethod(__Method_Create, serviceImpl.Create)
            .AddMethod(__Method_Update, serviceImpl.Update)
            .AddMethod(__Method_AddNoteTemplateToGuest, serviceImpl.AddNoteTemplateToGuest)
            .AddMethod(__Method_AmendNoteTemplate, serviceImpl.AmendNoteTemplate)
            .AddMethod(__Method_RemoveNoteTemplateFromGuest, serviceImpl.RemoveNoteTemplateFromGuest)
            .AddMethod(__Method_GetNoteTemplatesForGuest, serviceImpl.GetNoteTemplatesForGuest)
            .AddMethod(__Method_MergeGuests, serviceImpl.MergeGuests)
            .AddMethod(__Method_GetByPage, serviceImpl.GetByPage)
            .AddMethod(__Method_GetGuestCount, serviceImpl.GetGuestCount)
            .AddMethod(__Method_AllGuestLite, serviceImpl.AllGuestLite).Build());
 }