Exemple #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();
        }
Exemple #2
0
 public virtual void CreateClient(Binding binding, SetupSecurity securitySetup, SetupChannel channelSetup)
 {
 }
Exemple #3
0
 public void CreateClient(Binding binding, SetupSecurity securitySetup, SetupChannel channelSetup)
 {
     Port = CreateClientAction(binding, new EndpointAddress(ServiceAddress));
     securitySetup(Port.Endpoint);
     channelSetup(Port.InnerChannel);
 }