public void KeyPressed( System.ConsoleKey key) { Sample.Current.KeyPressed( _processId, _machineName, _actorId, key ); System.Diagnostics.Debug.WriteLine($"[ConsoleRunner] ERR: KeyPressed"); System.Diagnostics.Debug.WriteLine($"\t_processId:\t{_processId}"); System.Diagnostics.Debug.WriteLine($"\tEnvironment.MachineName:\t{Environment.MachineName}"); System.Diagnostics.Debug.WriteLine($"\t_actorId.ToString():\t{_actorId.ToString()}"); System.Diagnostics.Debug.WriteLine($"\t_actorId.Kind.ToString():\t{_actorId.Kind.ToString()}"); System.Diagnostics.Debug.WriteLine($"\tkey.ToString():\t{key.ToString()}"); _telemetryClient.TrackEvent( nameof(KeyPressed), new System.Collections.Generic.Dictionary <string, string>() { { "ProcessId", _processId.ToString() }, { "MachineName", Environment.MachineName }, { "ActorId", _actorId.ToString() }, { "ActorIdType", _actorId.Kind.ToString() }, { "Key", key.ToString() } }); }
public void KeyPressed( System.ConsoleKey key) { Sample.Current.KeyPressed( key ); System.Diagnostics.Debug.WriteLine($"[ConsoleRunner] ERR: KeyPressed"); System.Diagnostics.Debug.WriteLine($"\tkey.ToString():\t{key.ToString()}"); _telemetryClient.TrackEvent( nameof(KeyPressed), new System.Collections.Generic.Dictionary <string, string>() { { "Key", key.ToString() } }); }
public void KeyPressed( System.ConsoleKey key) { if (this.IsEnabled()) { KeyPressed( key.ToString()); } }
public void KeyPressed( bool autogenerated, string machineName, System.ConsoleKey key) { if (this.IsEnabled()) { KeyPressed( autogenerated, Environment.MachineName, key.ToString()); } }
public void KeyPressed( System.ConsoleKey key) { FGDiagnosticsAutoLoggerSamplesConsoleApplication1EventSource.Current.KeyPressed( _autogenerated, _machineName, key ); System.Diagnostics.Debug.WriteLine($"[ConsoleRunner] ERR: KeyPressed"); System.Diagnostics.Debug.WriteLine($"\t_autogenerated:\t{_autogenerated}"); System.Diagnostics.Debug.WriteLine($"\tEnvironment.MachineName:\t{Environment.MachineName}"); System.Diagnostics.Debug.WriteLine($"\tkey.ToString():\t{key.ToString()}"); _telemetryClient.TrackEvent( nameof(KeyPressed), new System.Collections.Generic.Dictionary <string, string>() { { "Autogenerated", _autogenerated.ToString() }, { "MachineName", Environment.MachineName }, { "Key", key.ToString() } }); }
public void KeyPressed( int processId, string machineName, Microsoft.ServiceFabric.Actors.ActorId actorId, System.ConsoleKey key) { if (this.IsEnabled()) { KeyPressed( processId, Environment.MachineName, actorId.ToString(), key.ToString()); } }
public void KeyPressed( System.ConsoleKey key) { DefaultEventSource.Current.KeyPressed( _processId, _machineName, _actorId, key ); _telemetryClient.TrackEvent( nameof(KeyPressed), new System.Collections.Generic.Dictionary <string, string>() { { "ProcessId", _processId.ToString() }, { "MachineName", Environment.MachineName }, { "Actor", _actorId.ToString() }, { "Key", key.ToString() } }); }