Exemplo n.º 1
0
 public StorageSynchronizer(IObjectStorage storageClient, ShellHelper.ShellExecutor shellExecutor, IMetrics metrics)
 {
     _client        = storageClient;
     _shellExecutor = shellExecutor;
     _metrics       = metrics;
 }
Exemplo n.º 2
0
        private StorageSynchronizer CreateStorageSynchronizer(IObjectStorage storageClient, ShellHelper.ShellExecutor executor, IMetrics metrics)
        {
            var key = GitKeyHelper.GetKeyFromEnvironment();
            var storageSynchronizer = new StorageSynchronizer(storageClient, executor, metrics)
            {
                Converters =
                {
                    new RulesConverter(),
                    new ExternalAppsConverter(key),
                    new PolicyConverter(),
                    new SubjectExtractionRulesConverter(),
                }
            };

            return(storageSynchronizer);
        }
Exemplo n.º 3
0
 public StorageSynchronizer(IObjectStorage storageClient, ShellHelper.ShellExecutor shellExecutor, Packer packer)
 {
     _client        = storageClient;
     _packer        = packer;
     _shellExecutor = shellExecutor;
 }