SpecificRequest() public method

public SpecificRequest ( ) : void
return void
Example #1
0
        /// <summary>
        /// Make a request.
        /// </summary>
        public override void Request()
        {
            // possibly do some other work ...

            // call the adaptee
            _adaptee.SpecificRequest();

            // possibly do some other work ...
        }
Example #2
0
        public IDictionary <string, string> Request()
        {
            var response = _adaptee.SpecificRequest();

            return(new Dictionary <string, string>
            {
                { "name", response["name"] },
                { "state", response["status"] }
            });
        }
Example #3
0
        static void Main(string[] args)
        {
            // Showing the Adapteee in standalone mode
            Adaptee first = new Adaptee();

            Console.Write("Before the new standard\nPrecise reading: ");
            Console.WriteLine(first.SpecificRequest(5, 3));

            // What the client really wants
            ITarget second = new Adapter();

            Console.WriteLine("\nMoving to the new standard");
            Console.WriteLine(second.Request(5));


            Console.Read();
        }
Example #4
0
 public override void Request()
 {
     //base.Request();
     _adaptee.SpecificRequest();
 }
Example #5
0
 public override void Request()
 {
     _adaptee.SpecificRequest();
 }
Example #6
0
 public void Request()
 {
     _Adaptee.SpecificRequest();
 }
Example #7
0
 public override void Request()
 {
     // Possibly do some other work
     // and then call SpecificRequest
     adaptee.SpecificRequest();
 }
Example #8
0
 public void Request()
 {
     m_adaptee.SpecificRequest();
 }
Example #9
0
 public override void Request()
 {
     // 调用的是 适配者的 请求方法
     adaptee.SpecificRequest();
 }
Example #10
0
 public void Request()
 {
     adaptee.SpecificRequest();//实现接口需求
 }
Example #11
0
 // Methods
 public void Request()
 {
     //可能做一些数据处理,然后调用特定要求
     adaptee.SpecificRequest();
 }