FileShareAutoConfigService
using System;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
namespace Relativity.Transfer.FileShare
{
internal class FileShareAutoConfigService
{
private readonly IObjectCacheRepository ;
private readonly IWorkspaceService ;
private readonly IFileSystemService ;
public FileShareAutoConfigService(IObjectCacheRepository cacheRepository, IWorkspaceService workspaceService, IFileSystemService fileSystemService)
{
if (cacheRepository == null)
throw new ArgumentNullException("cacheRepository");
if (workspaceService == null)
throw new ArgumentNullException("workspaceService");
if (fileSystemService == null)
throw new ArgumentNullException("fileSystemService");
this.cacheRepository = cacheRepository;
this.workspaceService = workspaceService;
this.fileSystemService = fileSystemService;
}
[AsyncStateMachine(typeof(<ApplyAsync>d__4))]
public Task (FileShareClientConfiguration configuration, CancellationToken token)
{
<ApplyAsync>d__4 stateMachine = default(<ApplyAsync>d__4);
stateMachine.<>t__builder = AsyncTaskMethodBuilder.Create();
stateMachine.<>4__this = this;
stateMachine.configuration = configuration;
stateMachine.token = token;
stateMachine.<>1__state = -1;
stateMachine.<>t__builder.Start(ref stateMachine);
return stateMachine.<>t__builder.Task;
}
}
}