예제 #1
0
        public FailoverFileStream(string[] fullnames, System.IO.FileMode fmode,
                                  System.IO.FileAccess faccess, System.IO.FileShare fshare, int fbuffersize, DiskCheck diskcheck)
        {
            if (null == fullnames || string.IsNullOrEmpty(fullnames[0]))
            {
                throw new FailoverFileStreamIOException("Invalid input fullnames paths");
            }
            this.fullnames = fullnames;
            fcount         = fullnames.Length;

            this.fmode       = fmode;
            this.faccess     = faccess;
            this.fshare      = fshare;
            this.fbuffersize = fbuffersize;
            this.diskcheck   = diskcheck;

            _firstopen();
        }
예제 #2
0
        public FailoverFileStream(string[] fullnames, System.IO.FileMode fmode,
            System.IO.FileAccess faccess, System.IO.FileShare fshare, int fbuffersize, DiskCheck diskcheck)
        {
            if (null == fullnames || string.IsNullOrEmpty(fullnames[0]))
            {
                throw new FailoverFileStreamIOException("Invalid input fullnames paths");
            }
            this.fullnames = fullnames;
            fcount = fullnames.Length;

            this.fmode = fmode;
            this.faccess = faccess;
            this.fshare = fshare;
            this.fbuffersize = fbuffersize;
            this.diskcheck = diskcheck;

            _firstopen();
        }        
예제 #3
0
 public FailoverFileStream(string starfullnames,
                           System.IO.FileMode fmode, System.IO.FileAccess faccess, System.IO.FileShare fshare, int fbuffersize, DiskCheck diskcheck)
     : this(starfullnames.Split('*'), fmode, faccess, fshare, fbuffersize, diskcheck)
 {
 }
예제 #4
0
 public FailoverFileStream(string starfullnames,
     System.IO.FileMode fmode, System.IO.FileAccess faccess, System.IO.FileShare fshare, int fbuffersize, DiskCheck diskcheck)
     : this(starfullnames.Split('*'), fmode, faccess, fshare, fbuffersize, diskcheck)
 {
 }