コード例 #1
0
        public void StopGetAll(
            )
        {
            WebApiServiceEventSource.Current.StopGetAll(
                _context
                );
            var getAllOperationHolder = OperationHolder.StopOperation();

            _telemetryClient.StopOperation(getAllOperationHolder);
            getAllOperationHolder.Dispose();
        }
        public void StopRequestContext(
            System.Collections.Generic.IEnumerable <CodeEffect.ServiceFabric.Services.Remoting.FabricTransport.ServiceRequestHeader> headers)
        {
            WebApiServiceEventSource.Current.StopRequestContext(
                _context,
                headers
                );
            var requestContextOperationHolder = OperationHolder.StopOperation();

            _telemetryClient.StopOperation(requestContextOperationHolder);
            requestContextOperationHolder.Dispose();
        }
コード例 #3
0
ファイル: ActorLogger.cs プロジェクト: darivuki/FG.AutoLogger
        public void StopActorActive(
            )
        {
            PersonActorServiceEventSource.Current.StopActorActive(
                _actor
                );

            var actorActiveOperationHolder = OperationHolder.StopOperation();

            _telemetryClient.StopOperation(actorActiveOperationHolder);
            actorActiveOperationHolder.Dispose();
        }
コード例 #4
0
        public void StopLoop(
            )
        {
            DefaultEventSource.Current.StopLoop(
                _processId,
                _machineName,
                _actorId
                );
            var loopOperationHolder = OperationHolder.StopOperation();

            _telemetryClient.StopOperation(loopOperationHolder);
            loopOperationHolder.Dispose();
        }
        public void StopActorMessageRecieved(
            string methodName,
            CodeEffect.ServiceFabric.Services.Remoting.FabricTransport.CustomServiceRequestHeader headers)
        {
            WebApiServiceEventSource.Current.StopActorMessageRecieved(
                _context,
                methodName,
                headers
                );
            var actorMessageRecievedOperationHolder = OperationHolder.StopOperation();

            _telemetryClient.StopOperation(actorMessageRecievedOperationHolder);
            actorMessageRecievedOperationHolder.Dispose();
        }
        public void StopMessageSend(
            System.Uri requestUri,
            CodeEffect.ServiceFabric.Services.Remoting.FabricTransport.CustomServiceRequestHeader headers)
        {
            WebApiServiceEventSource.Current.StopMessageSend(
                _context,
                requestUri,
                headers
                );
            var messageSendOperationHolder = OperationHolder.StopOperation();

            _telemetryClient.StopOperation(messageSendOperationHolder);
            messageSendOperationHolder.Dispose();
        }
コード例 #7
0
        public void StopHello(
            )
        {
            Sample.Current.StopHello(

                );

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

            _helloStopwatch.Stop();
            var helloOperationHolder = OperationHolder.StopOperation();

            _telemetryClient.StopOperation(helloOperationHolder);
            helloOperationHolder.Dispose();
        }
コード例 #8
0
        public void StopLoop(
            )
        {
            Sample.Current.StopLoop(

                );

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

            _loopStopwatch.Stop();
            var loopOperationHolder = OperationHolder.StopOperation();

            _telemetryClient.StopOperation(loopOperationHolder);
            loopOperationHolder.Dispose();
        }
コード例 #9
0
        public void StopLoop(
            )
        {
            FGDiagnosticsAutoLoggerSamplesConsoleApplication1EventSource.Current.StopLoop(
                _autogenerated,
                _machineName
                );

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

            System.Diagnostics.Debug.WriteLine($"\t_autogenerated:\t{_autogenerated}");
            System.Diagnostics.Debug.WriteLine($"\tEnvironment.MachineName:\t{Environment.MachineName}");
            _loopStopwatch.Stop();

            var loopOperationHolder = OperationHolder.StopOperation();

            _telemetryClient.StopOperation(loopOperationHolder);
            loopOperationHolder.Dispose();
        }
        public void StopHello(
            )
        {
            Sample.Current.StopHello(
                _actorId,
                _processId,
                _machineName
                );

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

            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}");
            _helloStopwatch.Stop();
            var helloOperationHolder = OperationHolder.StopOperation();

            _telemetryClient.StopOperation(helloOperationHolder);
            helloOperationHolder.Dispose();
        }
        public void StopLoop(
            )
        {
            Sample.Current.StopLoop(
                _processId,
                _machineName,
                _actorId
                );

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

            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()}");
            _loopStopwatch.Stop();
            var loopOperationHolder = OperationHolder.StopOperation();

            _telemetryClient.StopOperation(loopOperationHolder);
            loopOperationHolder.Dispose();
        }