C# 클래스 Microsoft.Common.Core.Logging.LoggingPermissions

Determines logging permissions depending on the current telemetry settings and registry keys.
Rules: a. Feedback and logging is permitted if telemetry is enabled. If telemetry is off, admin can selectively enable feedback and logging in registry under HKLM. b. If telemetry is on, default logging level is 'Normal'. This allows recording of all events but security and privacy related data such as cross-process traffic or commands and data in the interactive window. c. Admin can limit level of logging and disable feedback sending even if app telemetry is on.
상속: ILoggingPermissions
파일 보기 프로젝트 열기: Microsoft/RTVS 1 사용 예제들

공개 메소드들

메소드 설명
LoggingPermissions ( IApplicationConstants appConstants, ITelemetryService telemetryService, IRegistry registry ) : System

비공개 메소드들

메소드 설명
GetEffectiveFeedbackSetting ( ) : bool
GetEffectiveVerbosity ( ) : LogVerbosity
GetFeedbackFromRegistry ( ) : int?
GetLogLevelFromRegistry ( ) : LogVerbosity?
GetValueFromRegistry ( string name, int minValue, int maxValue ) : int?

메소드 상세

LoggingPermissions() 공개 메소드

public LoggingPermissions ( IApplicationConstants appConstants, ITelemetryService telemetryService, IRegistry registry ) : System
appConstants IApplicationConstants
telemetryService ITelemetryService
registry IRegistry
리턴 System