Esempio n. 1
0
        public OnvifServiceClient(BaseOnvifTest test_,
                                  string serviceName_,
                                  ServiceAddressRetrievalMethod serviceAddressRetrievalAction_,
                                  SetupSecurity setupSecurityAction_,
                                  SetupChannel setupChannelAction_,
                                  CreateClient <ServicePortClient> createClientAction_)
        {
            Test        = test_;
            ServiceName = serviceName_;
            ServiceAddressRetrievalAction = serviceAddressRetrievalAction_;
            SetupSecurityAction           = setupSecurityAction_;
            SetupChannelAction            = setupChannelAction_;
            CreateClientAction            = createClientAction_;

            Test.SecurityChangedEvent        += e => this.Close();
            Test.NetworkSettingsChangedEvent += address => this.Close();
        }
Esempio n. 2
0
 public OnvifServiceClient(BaseOnvifTest test_,
                           string serviceName_,
                           ServiceAddressRetrievalMethod serviceAddressRetrievalAction_) :
     this(test_, serviceName_, serviceAddressRetrievalAction_, null, null, null)
 {
 }