public void Dispose()
        {
            if (_client.State != CommunicationState.Closed)
            {
                _client.Close();
            }

            _client = null;
        }
Exemplo n.º 2
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(ServiceOwnerArchiveExternalStreamedBasicClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IServiceOwnerArchiveExternalStreamedBasic));
 }
Exemplo n.º 3
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(ServiceOwnerArchiveExternalStreamedBasicClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IServiceOwnerArchiveExternalStreamedBasic));
 }
Exemplo n.º 4
0
 public ServiceOwnerArchiveExternalStreamedBasicClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(ServiceOwnerArchiveExternalStreamedBasicClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Exemplo n.º 5
0
 public ServiceOwnerArchiveExternalStreamedBasicClient() :
     base(ServiceOwnerArchiveExternalStreamedBasicClient.GetDefaultBinding(), ServiceOwnerArchiveExternalStreamedBasicClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IServiceOwnerArchiveExternalStreamedBasic.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
 public ServiceOwnerArchiveExternalStreamedClient(Binding binding, IOptions <AltinnServiceOwnerConnectionSettings> connectionOptions)
 {
     _client            = new ServiceOwnerArchiveExternalStreamedBasicClient(binding, new EndpointAddress(connectionOptions.Value.EndpointUrl));
     _connectionOptions = connectionOptions;
 }