~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.WebReferences/MonoDevelop.WebReferences.WCF/WebServiceEngineWCF.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
{
39
39
        public class WebServiceEngineWCF: WebServiceEngine
40
40
        {
 
41
                ClientOptions defaultOptions = new ClientOptions ();
 
42
 
 
43
                public ClientOptions DefaultClientOptions {
 
44
                        get { return defaultOptions; }
 
45
                }
 
46
                
41
47
                public override WebServiceDiscoveryResult Discover (string url)
42
48
                {
43
49
                        DiscoveryClientProtocol prot;
44
50
                        try {
45
51
                                prot = DiscoResolve (url);
46
52
                                if (prot != null)
47
 
                                        return new WebServiceDiscoveryResultWCF (prot, null, null, null);
 
53
                                        return new WebServiceDiscoveryResultWCF (prot, null, null, null, DefaultClientOptions);
48
54
                        } catch {
49
55
                                // Ignore when MEX resolver is enabled
50
56
                                throw;
129
135
                                fs.Close ();
130
136
                                protocol.References.Add (dr.Url, dr);
131
137
                        }
132
 
                        return new WebServiceDiscoveryResultWCF (protocol, null, item, resfile);
 
138
                        return new WebServiceDiscoveryResultWCF (protocol, null, item, resfile, DefaultClientOptions);
133
139
                }
134
140
                
135
141
                public override void Delete (WebReferenceItem item)