Beispiel #1
0
        public S3CommanderFile Initialize(S3CommanderContext context, IS3Service s3Service)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            this.context   = context;
            this.s3Service = s3Service;
            return(this);
        }
        public override void Initialize()
        {
            var workDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), PluginName);

            if (!Directory.Exists(workDirectory))
            {
                Directory.CreateDirectory(workDirectory);
            }

            log     = new TraceLogger(Path.Combine(workDirectory, PluginName + ".log"));
            context = new S3CommanderContext(this, log);
            root    = new S3CommanderRoot(workDirectory);
            root.Initialize(context);

            Trace("\r\n\r\n\r\n{1} *** Start {0} plugin\r\n", PluginName, DateTime.Now);
        }
Beispiel #3
0
 public S3CommanderFile Initialize(S3CommanderContext context)
 {
     return(Initialize(context, null));
 }
 public override void StatusInfo(string remoteName, StatusOrigin origin, StatusOperation operation)
 {
     Trace("Command '{0}' for '{1}' {2}", operation, remoteName, origin.ToString().ToLower());
     S3CommanderContext.ProcessOperationInfo(remoteName, origin, operation);
 }