public DistantDAC(ProjectSettings settings) { try { Binding bind; if (settings.TransportMode == Transport.Http) { bind = new WSHttpBinding("HttpBinding"); } else { bind = new NetTcpBinding("NetTcpBinding"); } _DistantService = new CaptureServiceClient ( bind, new EndpointAddress(ServiceUri(settings)) ); } catch (Exception error) { Tracer.Error("DistantDAC.DistantDAC", error); } }
public CaptureServiceCallback() { _client = new CaptureServiceClient(new InstanceContext(this)); _client.Subscribe(new Subscription { RequestAudio = true, RequestVideo = true }); }