Add Telnyx options method to register custom extension provider
This commit is contained in:
parent
19d52b6bc3
commit
bfe621af7d
|
|
@ -23,5 +23,11 @@ namespace Elsa.Activities.Telnyx.Options
|
|||
public string ApiKey { get; set; } = default!;
|
||||
public string? CallControlAppId { get; set; }
|
||||
internal Func<IServiceProvider, IExtensionProvider> ExtensionProviderFactory { get; set; }
|
||||
|
||||
public TelnyxOptions UseExtensionProvider(Func<IServiceProvider, IExtensionProvider> factory)
|
||||
{
|
||||
ExtensionProviderFactory = factory;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue