Ejemplo n.º 1
0
 public Span(TraceHeader traceHeader, EndPoint endpoint, ICollection <Annotation> annotations, ICollection <BinaryAnnotation> binaryAnnotations, string name)
 {
     TraceHeader               = traceHeader;
     Annotations               = annotations;
     BinaryAnnotations         = binaryAnnotations;
     Endpoint                  = endpoint;
     this.Endpoint.IPAddress   = this.Endpoint.IPAddress ?? new System.Net.IPAddress(0);
     this.Endpoint.ServiceName = endpoint.ServiceName ?? "Unknown";
     Name = name ?? "Unknown";
 }
Ejemplo n.º 2
0
 public Span(TraceHeader traceHeader, EndPoint endpoint, string name = null)
 {
     TraceHeader               = traceHeader;
     Annotations               = new List <Annotation>();
     BinaryAnnotations         = new List <BinaryAnnotation>();
     Endpoint                  = endpoint;
     this.Endpoint.IPAddress   = this.Endpoint.IPAddress ?? new System.Net.IPAddress(0);
     this.Endpoint.ServiceName = endpoint.ServiceName ?? "Unknown";
     Name = name ?? "Unknown";
 }