public AutoupdaterHandler(IUpdatableTool tool) { var binder = new BasicHttpBinding { MaxReceivedMessageSize = 3145728 }; var factory = new ChannelFactory <IAutoupdaterService>(binder, "http://localhost:1989/Autoupdater.svc"); var autoupdaterService = factory.CreateChannel(); new AutoupdaterForm(autoupdaterService, tool); }
public AutoupdaterForm(IAutoupdaterService autoupdaterService, IUpdatableTool tool) { _autoupdaterService = autoupdaterService; _tool = tool; _backgroundWorker.DoWork += _backgroundWorker_DoWork; _backgroundWorker.ProgressChanged += _backgroundWorker_ProgressChanged; InitializeComponent(); ShowDialog(); }