public Task Accept(ICoreImplementationTraceInterface currentTrace) { //check layer applies if (currentTrace.traceLayer.Name.CompareTo("MyCustomLayerName") == 0) { //store whatever state, etc. //start the ball rolling return currentTrace.Trace(this); } return Task.FromResult(0); }
public Task Accept(ICoreImplementationTraceInterface currentTrace) { //check layer applies if (currentTrace.traceLayer.Name.CompareTo("MyCustomLayerName") == 0) { //store whatever state, etc. //start the ball rolling return(currentTrace.Trace(this)); } return(Task.FromResult(0)); }