You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/Network/FileTransfer/FileServerFactory.cs

24 lines
1.1 KiB

6 years ago
using ZeroLevel.Network;
using ZeroLevel.Services.FileSystem;
6 years ago
namespace ZeroLevel.Network.FileTransfer
6 years ago
{
public static class FileServerFactory
{
public static IFileServer Create(int port, string baseFolder, ServerFolderNameMapperDelegate nameMapper = null)
{
return null;// CreateFileServer(ExchangeTransportFactory.GetServer(port), baseFolder, nameMapper ?? (c => FSUtils.FileNameCorrection($"{c.Endpoint.Address}_{c.Endpoint.Port}")), true);
6 years ago
}
public static IFileServer Create(IZeroService service, string baseFolder, ServerFolderNameMapperDelegate nameMapper = null)
6 years ago
{
return null;// CreateFileServer(service, baseFolder, nameMapper ?? (c => FSUtils.FileNameCorrection($"{c.Endpoint.Address}_{c.Endpoint.Port}")), false);
6 years ago
}
private static IFileServer CreateFileServer(IZeroService service, string baseFolder, ServerFolderNameMapperDelegate nameMapper, bool disposeService)
6 years ago
{
return null;// new FileServer(service, baseFolder, nameMapper, disposeService);
6 years ago
}
}
}

Powered by TurnKey Linux.