Exemplo n.º 1
0
 public SqlCommandService(
     EnvironmentAccessor accessor,
     IConfigUnit unit,
     IOutputWriter output) : base(output)
 {
     this.accessor = accessor;
     this.unit     = unit;
 }
 public PublisherService(
     IPathsService paths,
     IPublisherHttpService http,
     EnvironmentAccessor envAccessor,
     IConfigUnit unit,
     IOutputWriter output) : base(output)
 {
     this.paths       = paths;
     this.http        = http;
     this.envAccessor = envAccessor;
     this.unit        = unit;
     this.output      = output;
 }
        public void TestUtils()
        {
            var acc = new EnvironmentAccessor();

            acc.CurrentEnvironment = new CodeShellCore.Moldster.Definitions.MoldsterEnvironment
            {
                Upload = new CodeShellCore.Net.UploadConfig
                {
                    ServerUrl = "http://i-maher.com:8019"
                }
            };
            var ser = new CodeShellCore.Moldster.Builder.Internal.PublisherHttpService(acc);
            var res = ser.HandleRequest(new CodeShellCore.Net.PublisherRequest
            {
                Type              = CodeShellCore.Net.ServerRequestTypes.Decompress,
                FileName          = "wwwroot/dist/ClientApp-v1.0.6.1.zip",
                DestinationFolder = "wwwroot/dist/v1.0.6.1"
            });
        }
Exemplo n.º 4
0
 public SqlCommandsController(EnvironmentAccessor accessor) : base(accessor)
 {
 }
Exemplo n.º 5
0
 public SqlCommandsControllerBase(EnvironmentAccessor accessor)
 {
     this.accessor = accessor;
 }
Exemplo n.º 6
0
 public PublisherHttpService(EnvironmentAccessor accessor)
 {
     this.accessor = accessor;
     _baseUrl      = Utils.CombineUrl(Config.ServerUrl, "api/Publisher");
 }