예제 #1
0
파일: TcTrace.cs 프로젝트: r-Larch/TcBuild
        internal static void TraceCall(TcPlugin plugin, TraceLevel level, string callSignature, string result)
        {
#if TRACE
            var text = callSignature + (string.IsNullOrEmpty(result) ? null : ": " + result);
            if (plugin != null)
            {
                if (plugin.WriteTrace || level == TraceLevel.Error)
                {
                    TraceOut(level, text, plugin.TraceTitle);
                }
            }
            else
            {
                TraceOut(level, text, null);
            }
#endif
        }
예제 #2
0
 protected PluginPassword(TcPlugin plugin, int cryptoNumber, int flags)
 {
     _plugin       = plugin;
     _cryptoNumber = cryptoNumber;
     _flags        = (CryptFlags)flags;
 }