Ejemplo n.º 1
0
 /// <summary>Creates service definition that can be registered with a server</summary>
 public static ServerServiceDefinition BindService(SearchServiceBase serviceImpl)
 {
     return(ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_Search, serviceImpl.Search).Build());
 }
 /// <summary>Creates service definition that can be registered with a server</summary>
 public static ServerServiceDefinition BindService(SearchServiceBase serviceImpl)
 {
     return(ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SearchVideos, serviceImpl.SearchVideos)
            .AddMethod(__Method_GetQuerySuggestions, serviceImpl.GetQuerySuggestions).Build());
 }
 public static void BindService(grpc::ServiceBinderBase serviceBinder, SearchServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_Search, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Retail.V2.SearchRequest, global::Google.Cloud.Retail.V2.SearchResponse>(serviceImpl.Search));
 }