Winify – Diff between revs 78 and 83

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 78 Rev 83
Line 128... Line 128...
128 } 128 }
Line 129... Line 129...
129   129  
130 var servers = await LoadServers(); 130 var servers = await LoadServers();
131 foreach (var server in servers.Server) 131 foreach (var server in servers.Server)
132 { 132 {
133 var gotifyConnection = new GotifyConnection(server, Configuration); 133 var gotifyConnection = new GotifyConnection(server, Configuration, _cancellationToken);
134 gotifyConnection.GotifyMessage += GotifyConnectionGotifyMessage; 134 gotifyConnection.GotifyMessage += GotifyConnectionGotifyMessage;
135 gotifyConnection.Start(); 135 gotifyConnection.Start();
136 _gotifyConnections.Add(gotifyConnection); 136 _gotifyConnections.Add(gotifyConnection);
137 } 137 }
Line 145... Line 145...
145   145  
146 var servers = await LoadServers(); 146 var servers = await LoadServers();
147 _gotifyConnections = new ConcurrentBag<GotifyConnection>(); 147 _gotifyConnections = new ConcurrentBag<GotifyConnection>();
148 foreach (var server in servers.Server) 148 foreach (var server in servers.Server)
149 { 149 {
150 var gotifyConnection = new GotifyConnection(server, Configuration); 150 var gotifyConnection = new GotifyConnection(server, Configuration, _cancellationToken);
151 gotifyConnection.GotifyMessage += GotifyConnectionGotifyMessage; 151 gotifyConnection.GotifyMessage += GotifyConnectionGotifyMessage;
152 gotifyConnection.Start(); 152 gotifyConnection.Start();
153 _gotifyConnections.Add(gotifyConnection); 153 _gotifyConnections.Add(gotifyConnection);
154 } 154 }
Line 210... Line 210...
210 gotifyConnection.Dispose(); 210 gotifyConnection.Dispose();
211 } 211 }
Line 212... Line 212...
212   212  
213 foreach (var server in e.Servers.Server) 213 foreach (var server in e.Servers.Server)
214 { 214 {
215 var gotifyConnection = new GotifyConnection(server, Configuration); 215 var gotifyConnection = new GotifyConnection(server, Configuration, _cancellationToken);
216 gotifyConnection.GotifyMessage += GotifyConnectionGotifyMessage; 216 gotifyConnection.GotifyMessage += GotifyConnectionGotifyMessage;
217 gotifyConnection.Start(); 217 gotifyConnection.Start();
218 _gotifyConnections.Add(gotifyConnection); 218 _gotifyConnections.Add(gotifyConnection);
219 } 219 }