IPluginFactoryGetPluginByNameT Method (String, IAtomiaBillingApi, Object) |
Gets the plugin instance by plugin name.
Namespace:
Atomia.Billing.Core.Sdk.Plugins
Assembly:
Atomia.Billing.Core.Sdk (in Atomia.Billing.Core.Sdk.dll) Version: 18.10.7096.28998
Syntax T GetPluginByName<T>(
string pluginName,
IAtomiaBillingApi atomiaBillingApi,
params Object[] args
)
where T : class, IPlugin
Function GetPluginByName(Of T As {Class, IPlugin}) (
pluginName As String,
atomiaBillingApi As IAtomiaBillingApi,
ParamArray args As Object()
) As T
generic<typename T>
where T : ref class, IPlugin
T GetPluginByName(
String^ pluginName,
IAtomiaBillingApi^ atomiaBillingApi,
... array<Object^>^ args
)
abstract GetPluginByName :
pluginName : string *
atomiaBillingApi : IAtomiaBillingApi *
args : Object[] -> 'T when 'T : not struct and IPlugin
Parameters
- pluginName
- Type: SystemString
Name of the plugin. - atomiaBillingApi
- Type: Atomia.Billing.Core.SdkIAtomiaBillingApi
The Atomia Billing API instance. - args
- Type: SystemObject
The arguments to be passed to plugin's constructor.
Type Parameters
- T
- Plugin type.
Return Value
Type:
TRequested plugin instance.
See Also