예제 #1
0
        void resultset_GetTempFilename(object sender, GetTempFilenameEventArgs e)
        {
#if NO
            while (true)
            {
                string strFilename = PathUtil.MergePath(this.m_strTempDir, Guid.NewGuid().ToString());
                if (File.Exists(strFilename) == false)
                {
                    using (FileStream s = File.Create(strFilename))
                    {
                    }

                    e.TempFilename = strFilename;
                    return;
                }
            }
#endif
            e.TempFilename = GetTempFileName();
        }
예제 #2
0
 void resultset_GetTempFilename(object sender, GetTempFilenameEventArgs e)
 {
     e.TempFilename = GetTempFileName();
 }
예제 #3
0
파일: SessionInfo.cs 프로젝트: gvhung/dp2
 void resultset_GetTempFilename(object sender, GetTempFilenameEventArgs e)
 {
     e.TempFilename = GetTempFileName();
 }
예제 #4
0
        void resultset_GetTempFilename(object sender, GetTempFilenameEventArgs e)
        {
#if NO
            while (true)
            {
                string strFilename = PathUtil.MergePath(this.m_strTempDir, Guid.NewGuid().ToString());
                if (File.Exists(strFilename) == false)
                {
                    using (FileStream s = File.Create(strFilename))
                    {
                    }

                    e.TempFilename = strFilename;
                    return;
                }
            }
#endif
            e.TempFilename = GetTempFileName();
        }