Beanstalk.Client.BeanstalkConnection.Use C# (CSharp) Метод

Use() публичный Метод

Uses the specified tube.
public Use ( string tube ) : void
tube string The tube.
Результат void
        public void Use(string tube)
        {
            this.Connect();

            string command = string.Format("use {0}\r\n", tube);
            this.writer.Write(command);
            this.writer.Flush();

            string response = this.reader.ReadLine();
            if (response != string.Format("USING {0}", tube))
            {
                throw new InvalidOperationException(response);
            }
        }