コード例 #1
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, QueryServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_GetTrace, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::Jaeger.ApiV2.GetTraceRequest, global::Jaeger.ApiV2.SpansResponseChunk>(serviceImpl.GetTrace));
     serviceBinder.AddMethod(__Method_ArchiveTrace, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Jaeger.ApiV2.ArchiveTraceRequest, global::Jaeger.ApiV2.ArchiveTraceResponse>(serviceImpl.ArchiveTrace));
     serviceBinder.AddMethod(__Method_FindTraces, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::Jaeger.ApiV2.FindTracesRequest, global::Jaeger.ApiV2.SpansResponseChunk>(serviceImpl.FindTraces));
     serviceBinder.AddMethod(__Method_GetServices, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Jaeger.ApiV2.GetServicesRequest, global::Jaeger.ApiV2.GetServicesResponse>(serviceImpl.GetServices));
     serviceBinder.AddMethod(__Method_GetOperations, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Jaeger.ApiV2.GetOperationsRequest, global::Jaeger.ApiV2.GetOperationsResponse>(serviceImpl.GetOperations));
     serviceBinder.AddMethod(__Method_GetDependencies, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Jaeger.ApiV2.GetDependenciesRequest, global::Jaeger.ApiV2.GetDependenciesResponse>(serviceImpl.GetDependencies));
 }
コード例 #2
0
 /// <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(QueryServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_GetTrace, serviceImpl.GetTrace)
            .AddMethod(__Method_ArchiveTrace, serviceImpl.ArchiveTrace)
            .AddMethod(__Method_FindTraces, serviceImpl.FindTraces)
            .AddMethod(__Method_GetServices, serviceImpl.GetServices)
            .AddMethod(__Method_GetOperations, serviceImpl.GetOperations)
            .AddMethod(__Method_GetDependencies, serviceImpl.GetDependencies).Build());
 }
コード例 #3
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, QueryServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_QueryTimeSeries, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Monitoring.V3.QueryTimeSeriesRequest, global::Google.Cloud.Monitoring.V3.QueryTimeSeriesResponse>(serviceImpl.QueryTimeSeries));
 }
コード例 #4
0
 /// <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(QueryServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_QueryTimeSeries, serviceImpl.QueryTimeSeries).Build());
 }