Exemple #1
0
 public void RunnerDestroyed(
     int processId,
     string machineName,
     Microsoft.ServiceFabric.Actors.ActorId actorId)
 {
     if (this.IsEnabled())
     {
         RunnerDestroyed(
             processId,
             Environment.MachineName,
             actorId.ToString());
     }
 }
Exemple #2
0
 public void WaitingForKeyPress(
     int processId,
     string machineName,
     Microsoft.ServiceFabric.Actors.ActorId actorId)
 {
     if (this.IsEnabled())
     {
         WaitingForKeyPress(
             processId,
             Environment.MachineName,
             actorId.ToString());
     }
 }
Exemple #3
0
 public void StartLoop(
     int processId,
     string machineName,
     Microsoft.ServiceFabric.Actors.ActorId actorId)
 {
     if (this.IsEnabled())
     {
         StartLoop(
             processId,
             Environment.MachineName,
             actorId.ToString());
     }
 }
Exemple #4
0
 public void StopHello(
     Microsoft.ServiceFabric.Actors.ActorId actorId,
     int processId,
     string machineName)
 {
     if (this.IsEnabled())
     {
         StopHello(
             actorId.ToString(),
             actorId.Kind.ToString(),
             processId,
             Environment.MachineName);
     }
 }
Exemple #5
0
 public void RandomIntsGenerated(
     int processId,
     string machineName,
     Microsoft.ServiceFabric.Actors.ActorId actorId,
     int[] values)
 {
     if (this.IsEnabled())
     {
         RandomIntsGenerated(
             processId,
             Environment.MachineName,
             actorId.ToString(),
             values.ToString());
     }
 }
Exemple #6
0
 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());
     }
 }
Exemple #7
0
 public void Specially(
     Microsoft.ServiceFabric.Actors.ActorId actorId,
     int processId,
     string machineName,
     ConsoleApplication1.Loggers.Special special)
 {
     if (this.IsEnabled())
     {
         Specially(
             actorId.ToString(),
             actorId.Kind.ToString(),
             processId,
             Environment.MachineName,
             special.ToString());
     }
 }
Exemple #8
0
 public void UnsupportedKeyError(
     int processId,
     string machineName,
     Microsoft.ServiceFabric.Actors.ActorId actorId,
     System.Exception ex)
 {
     if (this.IsEnabled())
     {
         UnsupportedKeyError(
             processId,
             Environment.MachineName,
             actorId.ToString(),
             ex.Message,
             ex.Source,
             ex.GetType().FullName,
             ex.AsJson());
     }
 }
Exemple #9
0
 public void SayGoodbye(
     Microsoft.ServiceFabric.Actors.ActorId actorId,
     int processId,
     string machineName,
     string goodbye,
     System.DateTime nightTime)
 {
     if (this.IsEnabled())
     {
         SayGoodbye(
             actorId.ToString(),
             actorId.Kind.ToString(),
             processId,
             Environment.MachineName,
             goodbye,
             nightTime.ToString());
     }
 }
 public void RunnerCreated(
     )
 {
     DefaultEventSource.Current.RunnerCreated(
         _processId,
         _machineName,
         _actorId
         );
     _telemetryClient.TrackEvent(
         nameof(RunnerCreated),
         new System.Collections.Generic.Dictionary <string, string>()
     {
         { "ProcessId", _processId.ToString() },
         { "MachineName", Environment.MachineName },
         { "Actor", _actorId.ToString() }
     });
 }
Exemple #11
0
 public void Error(
     Microsoft.ServiceFabric.Actors.ActorId actorId,
     int processId,
     string machineName,
     System.Exception exception)
 {
     if (this.IsEnabled())
     {
         Error(
             actorId.ToString(),
             actorId.Kind.ToString(),
             processId,
             Environment.MachineName,
             exception.Message,
             exception.Source,
             exception.GetType().FullName,
             exception.AsJson());
     }
 }
        public void SayHello(
            string message)
        {
            Sample.Current.SayHello(
                _actorId,
                _processId,
                _machineName,
                message
                );

            System.Diagnostics.Debug.WriteLine($"[Console] ERR: SayHello");

            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($"\t_processId:\t{_processId}");
            System.Diagnostics.Debug.WriteLine($"\tEnvironment.MachineName:\t{Environment.MachineName}");
            System.Diagnostics.Debug.WriteLine($"\tmessage:\t{message}");
            _telemetryClient.TrackEvent(
                nameof(SayHello),
                new System.Collections.Generic.Dictionary <string, string>()
            {
                { "ActorId", _actorId.ToString() },
                { "ActorIdType", _actorId.Kind.ToString() },
                { "ProcessId", _processId.ToString() },
                { "MachineName", Environment.MachineName },
                { "Message", message }
            });
        }
        public void RunnerCreated(
            )
        {
            Sample.Current.RunnerCreated(
                _processId,
                _machineName,
                _actorId
                );

            System.Diagnostics.Debug.WriteLine($"[ConsoleRunner] ERR: RunnerCreated");

            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()}");
            _telemetryClient.TrackEvent(
                nameof(RunnerCreated),
                new System.Collections.Generic.Dictionary <string, string>()
            {
                { "ProcessId", _processId.ToString() },
                { "MachineName", Environment.MachineName },
                { "ActorId", _actorId.ToString() },
                { "ActorIdType", _actorId.Kind.ToString() }
            });
        }