public void sendEvent(final String name,final Map<String,String> properties){
  final String eventName=String.format(TfsTelemetryConstants.PLUGIN_ACTION_EVENT_NAME_FORMAT,name);
  final PropertyMapBuilder builder=new PropertyMapBuilder(properties);
  logger.debug(String.format("sendEvent(%s, %s)",name,builder.toString()));
  if (telemetryClient != null) {
    telemetryClient.trackEvent(eventName,builder.build(),null);
  }
}

public void sendEvent ( final String name , final Map < String , String > properties ) { final String eventName = String . format ( TfsTelemetryConstants . PLUGIN_ACTION_EVENT_NAME_FORMAT , name ) ; final PropertyMapBuilder builder = new PropertyMapBuilder ( properties ) ; logger . debug ( String . format ( "sendEvent(%s, %s)" , name , builder . toString ( ) ) ) ; if ( telemetryClient != null ) { telemetryClient . trackEvent ( eventName , builder . build ( ) , null ) ; } }
call sendevent to track an occurrence of a named event .
