Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }        
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }