Revision b5061ac8 trunk/Pithos.ShellExtensions/ShellSettings.cs

b/trunk/Pithos.ShellExtensions/ShellSettings.cs
7 7
using System.ComponentModel.Composition;
8 8
using System.Diagnostics;
9 9
using System.ServiceModel;
10
using Microsoft.Win32;
10 11
using Pithos.Interfaces;
11 12

  
12 13
namespace Pithos.ShellExtensions
......
131 132

  
132 133
        private  IPithosSettings LoadSettings()
133 134
        {
135

  
134 136
            try
135 137
            {
136
                var binding = new NetNamedPipeBinding(NetNamedPipeSecurityMode.None);
137

  
138
                var remoteAddress = new EndpointAddress("net.pipe://localhost/pithos/settings");
139
                using (var client = new PithosService.SettingsServiceClient(binding, remoteAddress))
138
                using (var client = PithosHost.GetSettingsClient())
140 139
                {
141 140
                    return client.GetSettings();
142 141
                }

Also available in: Unified diff