Opc.Ua.ConditionState.GetCurrentUserId C# (CSharp) 메소드

GetCurrentUserId() 보호된 메소드

Gets the current user id from the system context.
protected GetCurrentUserId ( ISystemContext context ) : string
context ISystemContext The system context.
리턴 string
        protected string GetCurrentUserId(ISystemContext context)
        {
            IOperationContext operationContext = context as IOperationContext;

            if (operationContext != null && operationContext.UserIdentity != null)
            {
                return operationContext.UserIdentity.DisplayName;
            }

            return null;
        }