Пример #1
0
 public DoPathExistOperation(IActivityIOPath path, IDev2LogonProvider dev2LogonProvider, IFile fileWrapper,
                             IDirectory directory, ImpersonationDelegate impersonationDelegate)
     : base(impersonationDelegate)
 {
     _logOnProvider    = dev2LogonProvider;
     _fileWrapper      = fileWrapper;
     _dirWrapper       = directory;
     _path             = path;
     _impersonatedUser = _impersonationDelegate(_path, _logOnProvider);
 }
Пример #2
0
 public DoPutAction(Stream currentStream, IActivityIOPath destination, IDev2CRUDOperationTO crudArgument,
                    string whereToPut, IDev2LogonProvider logOnProvider, IFile fileWrapper,
                    IFileStreamFactory fileStreamFactory, IFilePath pathWrapper, IMemoryStreamFactory memoryStreamFactory,
                    ImpersonationDelegate impersonationDelegate)
     : base(impersonationDelegate)
 {
     _logOnProvider       = logOnProvider;
     _pathWrapper         = pathWrapper;
     _fileWrapper         = fileWrapper;
     _fileStreamFactory   = fileStreamFactory;
     _memoryStreamFactory = memoryStreamFactory;
     _currentStream       = currentStream;
     _destination         = destination;
     _arguments           = crudArgument;
     _impersonatedUser    = _impersonationDelegate(_destination, _logOnProvider);
     _whereToPut          = whereToPut;
 }
Пример #3
0
 protected PerformIntegerIOOperation(ImpersonationDelegate impersonationDelegate) : base(impersonationDelegate)
 {
 }
Пример #4
0
 public DoCreateDirectory(IActivityIOPath path, IDev2CRUDOperationTO args, IDev2LogonProvider dev2LogonProvider, IFile fileWrapper, IDirectory directory, ImpersonationDelegate impersonationDelegate)
     : base(impersonationDelegate)
 {
     _logOnProvider    = dev2LogonProvider;
     _fileWrapper      = fileWrapper;
     _dirWrapper       = directory;
     _path             = path;
     _crudArguments    = args;
     _impersonatedUser = _impersonationDelegate(_path, _logOnProvider);
     _handleOverwrite  = RequiresOverwrite(_crudArguments, _path, _logOnProvider);
 }
Пример #5
0
 public ImpersonationOperation(ImpersonationDelegate impersonationDelegate)
 {
     _impersonationDelegate = impersonationDelegate;
 }
 public DoGetFilesAsPerTypeOperation(IActivityIOPath path, ReadTypes type, IDev2LogonProvider dev2LogonProvider, IFile file, IDirectory directory, ImpersonationDelegate impersonationDelegate)
     : base(impersonationDelegate)
 {
     _logOnProvider    = dev2LogonProvider;
     _fileWrapper      = file;
     _dirWrapper       = directory;
     _path             = path;
     _type             = type;
     _impersonatedUser = _impersonationDelegate(_path, _logOnProvider);
     _newPath          = AppendBackSlashes(_path, _fileWrapper, _dirWrapper);
 }
 protected PerformBoolIOOperation(ImpersonationDelegate impersonationDelegate) : base(impersonationDelegate)
 {
 }
Пример #8
0
 public DoGetAction(IActivityIOPath path, IDev2LogonProvider dev2LogonProvider, IFile fileWrapper, ImpersonationDelegate impersonationDelegate)
     : base(impersonationDelegate)
 {
     _logOnProvider    = dev2LogonProvider;
     _fileWrapper      = fileWrapper;
     _path             = path;
     _impersonatedUser = _impersonationDelegate(_path, _logOnProvider);
 }
 protected PerformListOfIOPathOperation(ImpersonationDelegate impersonationDelegate) : base(impersonationDelegate)
 {
 }
 public TestPerformListOfIOPathOperation(ImpersonationDelegate impersonationDelegate) : base(impersonationDelegate)
 {
 }
Пример #11
0
 public DoDeleteOperation(IDeleteHelper deleteHelper, IActivityIOPath path, IDev2LogonProvider logOnProvider, ImpersonationDelegate impersonationDelegate)
     : base(impersonationDelegate)
 {
     _deleteHelper     = deleteHelper;
     _path             = path;
     _logOnProvider    = logOnProvider;
     _impersonatedUser = _impersonationDelegate?.Invoke(_path, _logOnProvider);
 }
Пример #12
0
 protected PerformStreamIOOperation(ImpersonationDelegate impersonationDelegate) : base(impersonationDelegate)
 {
 }