f7d1420687
* First pass * comments * Updated CI * Use nuget * Nowarn NETSDK1206 * bump automate compose * Bump automate sdk * bump dockerfile * bump sdk again
16 lines
418 B
C#
16 lines
418 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Speckle.Automate.Sdk;
|
|
|
|
namespace TestAutomateFunction;
|
|
|
|
public static class ServiceRegistration
|
|
{
|
|
public static IServiceProvider GetServiceProvider()
|
|
{
|
|
var serviceCollection = new ServiceCollection();
|
|
serviceCollection.AddAutomateSdk();
|
|
serviceCollection.AddSingleton<AutomateFunction>();
|
|
return serviceCollection.BuildServiceProvider();
|
|
}
|
|
}
|