public IEnumerable<IBuildable> GetBuildDependencies(ProjectBuildOptions buildOptions) { List<IBuildable> result = new List<IBuildable>(); foreach (IBuildable b in wrapped.GetBuildDependencies(buildOptions)) { result.Add(factory.GetWrapper(b)); } lock (cachedBuildDependencies) { if (buildOptions != null) cachedBuildDependencies[buildOptions] = result; else cachedBuildDependenciesForNullOptions = result; } return result; }
private void btnCheckServiceAvailability_Click(object sender, EventArgs e) { wrap_provider w = comboProviders.SelectedItem as wrap_provider; try { //using (Stream s = new MemoryStream()) //{ // BinaryFormatter formatter = new BinaryFormatter(); // formatter.Serialize(s, w); // long x = s.Length; //} var res = WrapperFactory.GetWrapper(w.Name).CheckServiceAvailability(true, true, true); } catch (Exception ex) { txtResponse.Text = ex.Message; } }