OTX Reference  
OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.DisposeProvider Class Reference

Informs that service provider is no longer needed within OTX More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.DisposeProvider:
Inheritance graph

Public Attributes

ServiceProviderTerm serviceProvider
 Cardinality [1]
This ServiceProvider will be disposed. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Cardinality [0..1]
Validity of ActionRealisation. More...
 

Detailed Description

Informs that service provider is no longer needed within OTX

The DisposeProvider activity informs the runtime system, that the instance of the service provider is no longer needed within OTX. Depending on the underlying implementation of the external service provider, all used resources can be released. After calling this action the appropriate IsDisposed term specifying the ServiceProvider will return true. Disposing an already disposed ServiceProvider shall perform no operation and report no errors. It shall be for all effects a NOP.

Syntax
ExternalServiceProvider.DisposeProvider(ServiceProviderTerm serviceProvider);
Examples
// Signatures
package ExternalServiceProvider.ServiceProviderSignature ServiceProviderSignature1
{
ExternalServiceProvider.ConstructorSignature ConstructorSignature1(String ConstructorExternalInParameter1, String ConstructorExternalInParameter2, String ConstructorExternalInParameter3);
ExternalServiceProvider.EventSignature EventSignature1(String EventValueParameterDeclaration1);
ExternalServiceProvider.PropertySignature PropertySignature1(String PropertyValueDeclaration1) accessType WRITE-ONLY;
ExternalServiceProvider.ServiceSignature ServiceSignature1(in ByteField ExternalInParameterDeclaration1, ref Float ExternalInOutParameterDeclaration1, out Integer ExternalOutParameterDeclaration1) throws ExternalServiceProvider.ConfigurationException, ExternalServiceProvider.ExecuteException, ExternalServiceProvider.ProviderServiceException;
}
// Global Declarations
public procedure main()
{
// Local Declarations
ExternalServiceProvider.ServiceProvider ServiceProvider1;
String String1 = "Abc";
String String2 = "Def";
String String3 = "Ghi";
// Flow
ExternalServiceProvider.CreateProvider(ServiceProvider1, ServiceProviderSignature1, ConstructorSignature1, { ConstructorExternalInParameter1 = String1, ConstructorExternalInParameter2 = String1, ConstructorExternalInParameter3 = String3});
ExternalServiceProvider.DisposeProvider(ServiceProvider1);
}

Member Data Documentation

◆ serviceProvider

ServiceProviderTerm OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.DisposeProvider.serviceProvider

Cardinality [1]
This ServiceProvider will be disposed.

OpenTestSystem.Otx.Extensions.ExternalServiceProvider.Actions.DisposeProvider.serviceProvider
ServiceProviderTerm serviceProvider
Cardinality [1] This ServiceProvider will be disposed.
Definition: ExternalServiceProvider.cs:1943