Beispiel #1
0
 public HttpPilotClient()
 {
     _client            = new TransportClient();
     _marshaller        = new Marshaller(new CallServiceAdapter(_client));
     _unmarshaller      = new Unmarshaller(this);
     _transportCallback = new CallbackReceiverAdapter(_unmarshaller, CallbackError);
 }
 public HttpPilotClient(IMarshallingFactory factory)
 {
     _client            = new TransportClient();
     _marshaller        = factory.GetMarshaller(new CallServiceAdapter(_client));
     _unmarshaller      = factory.GetUnmarshaller(this);
     _transportCallback = new CallbackReceiverAdapter(_unmarshaller, CallbackError);
 }
Beispiel #3
0
 public HttpPilotClient(string url, IWebProxy proxy = null)
 {
     _url               = url;
     _proxy             = proxy;
     _client            = new TransportClient();
     _marshaller        = new Marshaller(new CallServiceAdapter(_client));
     _unmarshaller      = new Unmarshaller(this);
     _transportCallback = new CallbackReceiverAdapter(_unmarshaller, CallbackError);
 }