17 lines
594 B
C#
17 lines
594 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
|
|
|
namespace FileTime.Providers.Remote;
|
|
|
|
public static class Startup
|
|
{
|
|
|
|
public static IServiceCollection AddRemoteProviderServices(this IServiceCollection serviceCollection)
|
|
{
|
|
serviceCollection.TryAddSingleton<IRemoteContentProvider, RemoteContentProvider>();
|
|
serviceCollection.TryAddTransient<IRemoteItemCreator, RemoteItemCreator>();
|
|
serviceCollection.TryAddTransient<IRemoteItemDeleter, RemoteItemDeleter>();
|
|
return serviceCollection;
|
|
|
|
}
|
|
} |