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