/// <summary>Creates service definition that can be registered with a server</summary>
 public static ServerServiceDefinition BindService(TraceServiceBase serviceImpl)
 {
     return(ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_ListTraces, serviceImpl.ListTraces)
            .AddMethod(__Method_GetTrace, serviceImpl.GetTrace)
            .AddMethod(__Method_PatchTraces, serviceImpl.PatchTraces).Build());
 }
Example #2
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, TraceServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_StreamTraces, serviceImpl == null ? null : new grpc::ClientStreamingServerMethod <global::Envoy.Service.Trace.V2.StreamTracesMessage, global::Envoy.Service.Trace.V2.StreamTracesResponse>(serviceImpl.StreamTraces));
 }
Example #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, TraceServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_ListTraces, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Trace.V1.ListTracesRequest, global::Google.Cloud.Trace.V1.ListTracesResponse>(serviceImpl.ListTraces));
     serviceBinder.AddMethod(__Method_GetTrace, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Trace.V1.GetTraceRequest, global::Google.Cloud.Trace.V1.Trace>(serviceImpl.GetTrace));
     serviceBinder.AddMethod(__Method_PatchTraces, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Trace.V1.PatchTracesRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.PatchTraces));
 }
Example #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(TraceServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_StreamTraces, serviceImpl.StreamTraces).Build());
 }
Example #5
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(TraceServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_BatchWriteSpans, serviceImpl.BatchWriteSpans)
            .AddMethod(__Method_CreateSpan, serviceImpl.CreateSpan).Build());
 }
Example #6
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(TraceServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_Config, serviceImpl.Config)
            .AddMethod(__Method_Export, serviceImpl.Export).Build());
 }
Example #7
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, TraceServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_BatchWriteSpans, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Trace.V2.BatchWriteSpansRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.BatchWriteSpans));
     serviceBinder.AddMethod(__Method_CreateSpan, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Trace.V2.Span, global::Google.Cloud.Trace.V2.Span>(serviceImpl.CreateSpan));
 }
Example #8
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, TraceServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_Config, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::Opencensus.Proto.Agent.Trace.V1.CurrentLibraryConfig, global::Opencensus.Proto.Agent.Trace.V1.UpdatedLibraryConfig>(serviceImpl.Config));
     serviceBinder.AddMethod(__Method_Export, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::Opencensus.Proto.Agent.Trace.V1.ExportTraceServiceRequest, global::Opencensus.Proto.Agent.Trace.V1.ExportTraceServiceResponse>(serviceImpl.Export));
 }