Add Telnyx options method to register custom extension provider

This commit is contained in:
Sipke Schoorstra 2021-03-29 14:57:26 +02:00
parent 19d52b6bc3
commit bfe621af7d

View file

@ -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;
}
}
}