internal TraceParamsBuilder(TraceParams source)
 {
     this.sampler = source.Sampler;
     this.maxNumberOfAttributes    = source.MaxNumberOfAttributes;
     this.maxNumberOfAnnotations   = source.MaxNumberOfAnnotations;
     this.maxNumberOfMessageEvents = source.MaxNumberOfMessageEvents;
     this.maxNumberOfLinks         = source.MaxNumberOfLinks;
 }
Exemplo n.º 2
0
 public override bool Equals(object o)
 {
     if (o == this)
     {
         return(true);
     }
     if (o is TraceParams)
     {
         TraceParams that = (TraceParams)o;
         return((this.Sampler.Equals(that.Sampler)) &&
                (this.MaxNumberOfAttributes == that.MaxNumberOfAttributes) &&
                (this.MaxNumberOfAnnotations == that.MaxNumberOfAnnotations) &&
                (this.MaxNumberOfMessageEvents == that.MaxNumberOfMessageEvents) &&
                (this.MaxNumberOfLinks == that.MaxNumberOfLinks));
     }
     return(false);
 }