17 lines
680 B
C#
17 lines
680 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<RemoteItemCreator>();
|
|
serviceCollection.TryAddTransient<RemoteItemDeleter>();
|
|
serviceCollection.TryAddTransient<RemoteItemMover>();
|
|
serviceCollection.TryAddTransient<RemoteContentWriter>();
|
|
return serviceCollection;
|
|
}
|
|
} |