PluginFactoryGetPluginByNameT 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 public static T GetPluginByName<T>(
string pluginName,
IAtomiaBillingApi atomiaBillingApi,
params Object[] args
)
where T : class, IPlugin
Public Shared Function GetPluginByName(Of T As {Class, IPlugin}) (
pluginName As String,
atomiaBillingApi As IAtomiaBillingApi,
ParamArray args As Object()
) As T
public:
generic<typename T>
where T : ref class, IPlugin
static T GetPluginByName(
String^ pluginName,
IAtomiaBillingApi^ atomiaBillingApi,
... array<Object^>^ args
)
static member 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