コード例 #1
0
		public WebServiceDiscoveryResultWCF (DiscoveryClientProtocol protocol, MetadataSet metadata, WebReferenceItem item, ReferenceGroup refGroup, ClientOptions defaultOptions): base (WebReferencesService.WcfEngine, item)
		{
			this.refGroup = refGroup;
			this.protocol = protocol;
			this.metadata = metadata;
			this.defaultOptions = defaultOptions;
		}
コード例 #2
0
		public WCFConfigWidget (ClientOptions options)
		{
			this.Options = options;
			this.Build ();
			
			listTypes = new List<Type> (DefaultListTypes);
			PopulateBox (listCollection, "List", listTypes);
			
			dictTypes = new List<Type> (DefaultDictionaryTypes);
			PopulateBox (dictionaryCollection, "Dictionary", dictTypes);
		}
コード例 #3
0
		public WCFConfigWidget (ClientOptions options)
		{
			this.Options = options;
			this.Build ();
			
			listTypes = new List<Type> (DefaultListTypes);
			PopulateBox (listCollection, "List", listTypes);
			
			dictTypes = new List<Type> (DefaultDictionaryTypes);
			PopulateBox (dictionaryCollection, "Dictionary", dictTypes);

			foreach (var access in AccessGenerationTypes)
				listAccess.AppendText (access);

			listAccess.Active = options.GenerateInternalTypes ? 1 : 0;
		}
コード例 #4
0
ファイル: WCFConfigWidget.cs プロジェクト: Kalnor/monodevelop
		public WCFConfigWidget (ClientOptions options, DotNetProject project)
		{
			this.Options = options;
			this.Build ();
			
			listTypes = new List<Type> (DefaultListTypes);
			PopulateBox (listCollection, "List", listTypes);
			
			dictTypes = new List<Type> (DefaultDictionaryTypes);
			PopulateBox (dictionaryCollection, "Dictionary", dictTypes);

#if NET_4_5
			listAsync.AppendText (Mono.Unix.Catalog.GetString ("Task-based"));
#endif
			listAccess.Active = options.GenerateInternalTypes ? 1 : 0;
			listAsync.Active = AsyncOptionToIndex;

			if (project is PortableDotNetProject) {
				listAccess.Sensitive = false;
				listAsync.Sensitive = false;
			}
		}
コード例 #5
0
		public WebReferenceDialog (WebReferenceItem item, ClientOptions options)
		{
			Build ();
			this.isWebService = true;
			this.wcfOptions = options;
			this.namespacePrefix = item.Project.DefaultNamespace;

			ChangeState (DialogState.ModifyConfig);
			
			var service = item.Load ();
			var url = service.GetServiceURL ();

			if (service is WebServiceDiscoveryResultWCF)
				comboModel.Active = 0;
			else
				comboModel.Active = 1;

			UpdateService (service, url);

			tbxReferenceURL.Text = url;
			tbxReferenceName.Text = item.Name;
			tbxNamespace.Text = item.Project.DefaultNamespace;

			frmBrowser.Show ();
			this.Child.Show ();
		}
コード例 #6
0
//		protected Gtk.Alignment frmBrowserAlign;
		#endregion
		
		/// <summary>Initializes a new instance of the AddWebReferenceDialog widget.</summary>
		public WebReferenceDialog (DotNetProject project)
		{
			Build();
			this.basePath = Library.GetWebReferencePath (project);
			this.isWebService = false;
			this.project = project;
			this.modified = true;

			tbxReferenceURL.Text = homeUrl;

			wcfOptions = WebReferencesService.WcfEngine.DefaultClientOptions;

			ChangeState (DialogState.Create);
			frmBrowser.Show ();
			this.Child.Show ();
		}
コード例 #7
0
//		protected Gtk.Alignment frmBrowserAlign;
		#endregion
		
		/// <summary>Initializes a new instance of the AddWebReferenceDialog widget.</summary>
		public WebReferenceDialog (DotNetProject project)
		{
			Build ();
			this.BasePath = Library.GetWebReferencePath (project);
			this.isWebService = false;
			this.project = project;
			wcfProject = project;
			this.modified = true;
			this.NamespacePrefix = String.Empty;
			ServiceUrl = String.Empty;

			tbxReferenceURL.Text = homeUrl;

			wcfOptions = WebReferencesService.WcfEngine.DefaultClientOptions;
			if (project.IsPortableLibrary) {
				wcfOptions.GenerateAsynchronousMethods = false;
				wcfOptions.GenerateEventBasedAsynchronousMethods = true;
			}

			ChangeState (DialogState.Create);
			frmBrowser.Show ();
			this.Child.Show ();
		}
コード例 #8
0
 public WebServiceDiscoveryResultWCF(DiscoveryClientProtocol protocol, MetadataSet metadata, WebReferenceItem item, ReferenceGroup refGroup, ClientOptions defaultOptions) : base(WebReferencesService.WcfEngine, item)
 {
     this.refGroup       = refGroup;
     this.protocol       = protocol;
     this.metadata       = metadata;
     this.defaultOptions = defaultOptions;
 }