コード例 #1
0
 public void SetOracleTimestampTzFormat()
 {
     if (SetThreadInfoArgs != null)
     {
         SetThreadInfo.Invoke(null, SetThreadInfoArgs);
     }
 }
コード例 #2
0
        private void SetOracleTimestampTzFormat()
        {
            if (ClientInfo == null)
            {
                return;
            }

            var threadId = Thread.CurrentThread.ManagedThreadId;

            if (_threadFormatSet.ContainsKey(threadId))
            {
                return;
            }

            SetThreadInfo.Invoke(null, new[] { ClientInfo });
            _threadFormatSet[threadId] = true;
        }