/////////////////////////////////////////////////////////////////////////////////
        /////////////////////////////////////////////////////////////////////////////////
        public override Stream OpenStreamForWrite(string streamName, string templateStreamName, ref object writeContext)
        {
            RemoteWebConfigurationHostStream rcs = new RemoteWebConfigurationHostStream(true, _Server, streamName, templateStreamName, _Username, _Domain, _Password, _Identity);

            writeContext = rcs;
            return(rcs);
        }
Exemplo n.º 2
0
        public override Stream OpenStreamForWrite(string streamName, string templateStreamName, ref object writeContext)
        {
            RemoteWebConfigurationHostStream stream = new RemoteWebConfigurationHostStream(true, this._Server, streamName, templateStreamName, this._Username, this._Domain, this._Password, this._Identity);

            writeContext = stream;
            return(stream);
        }
 /////////////////////////////////////////////////////////////////////////////////
 /////////////////////////////////////////////////////////////////////////////////
 public override void WriteCompleted(string streamName, bool success, object writeContext)
 {
     if (success)
     {
         RemoteWebConfigurationHostStream rcs = (RemoteWebConfigurationHostStream)writeContext;
         rcs.FlushForWriteCompleted();
     }
 }
        /////////////////////////////////////////////////////////////////////////////////
        /////////////////////////////////////////////////////////////////////////////////
        public override Stream OpenStreamForRead(string streamName)
        {
            RemoteWebConfigurationHostStream rcs = new RemoteWebConfigurationHostStream(false, _Server, streamName, null, _Username, _Domain, _Password, _Identity);

            if (rcs == null || rcs.Length < 1)
            {
                return(null);
            }
            return(rcs);
        }
Exemplo n.º 5
0
        public override Stream OpenStreamForRead(string streamName)
        {
            RemoteWebConfigurationHostStream stream = new RemoteWebConfigurationHostStream(false, this._Server, streamName, null, this._Username, this._Domain, this._Password, this._Identity);

            if ((stream != null) && (stream.Length >= 1L))
            {
                return(stream);
            }
            return(null);
        }
 public override Stream OpenStreamForWrite(string streamName, string templateStreamName, ref object writeContext)
 {
     RemoteWebConfigurationHostStream stream = new RemoteWebConfigurationHostStream(true, this._Server, streamName, templateStreamName, this._Username, this._Domain, this._Password, this._Identity);
     writeContext = stream;
     return stream;
 }
 public override Stream OpenStreamForRead(string streamName)
 {
     RemoteWebConfigurationHostStream stream = new RemoteWebConfigurationHostStream(false, this._Server, streamName, null, this._Username, this._Domain, this._Password, this._Identity);
     if ((stream != null) && (stream.Length >= 1L))
     {
         return stream;
     }
     return null;
 }
 /////////////////////////////////////////////////////////////////////////////////
 /////////////////////////////////////////////////////////////////////////////////
 public override Stream OpenStreamForWrite(string streamName, string templateStreamName, ref object writeContext) {
     RemoteWebConfigurationHostStream rcs = new RemoteWebConfigurationHostStream(true, _Server, streamName, templateStreamName, _Username, _Domain, _Password, _Identity);
     writeContext = rcs;
     return rcs;
 }
 /////////////////////////////////////////////////////////////////////////////////
 /////////////////////////////////////////////////////////////////////////////////
 public override Stream OpenStreamForRead(string streamName) {
     RemoteWebConfigurationHostStream rcs = new RemoteWebConfigurationHostStream(false, _Server, streamName, null, _Username, _Domain, _Password, _Identity);
     if (rcs == null || rcs.Length < 1)
         return null;
     return rcs;
 }