Beispiel #1
0
 public WebServicePutViewModel(ModelItem modelItem, IWebServiceModel model)
     : base(modelItem)
 {
     Model    = model;
     _builder = new ServiceInputBuilder();
     SetupCommonProperties();
 }
Beispiel #2
0
        public WebServicePutViewModel(ModelItem modelItem)
            : base(modelItem)
        {
            var shellViewModel = CustomContainer.Get <IShellViewModel>();
            var server         = shellViewModel.ActiveServer;
            var model          = CustomContainer.CreateInstance <IWebServiceModel>(server.UpdateRepository, server.QueryProxy, shellViewModel, server);

            Model    = model;
            _builder = new ServiceInputBuilder();
            SetupCommonProperties();
            this.RunViewSetup();
            HelpText = Warewolf.Studio.Resources.Languages.HelpText.Tool_WebMethod_Put;
        }
        IList <IServiceInput> InputsFromModel()
        {
            var dt = new List <IServiceInput>();
            var s  = InputArea.QueryString;

            _builder = _builder ?? new ServiceInputBuilder();
            _builder.GetValue(s, dt);
            foreach (var nameValue in InputArea.Headers)
            {
                _builder.GetValue(nameValue.Name, dt);
                _builder.GetValue(nameValue.Value, dt);
            }
            return(dt);
        }