using new api

This commit is contained in:
watsonb8
2020-02-02 17:28:34 -05:00
parent 51ab2d9c42
commit be5c9a8de0
4 changed files with 12 additions and 6 deletions

View File

@ -24,7 +24,7 @@ namespace Aurora.Design.Views.Party
Hosting,
Connecting,
}
public delegate void EventHandler(BaseEvent e);
delegate void EventHandler(BaseEvent e);
public class PartyViewModel : BaseViewModel
{
private PartyState _state;
@ -47,7 +47,8 @@ namespace Aurora.Design.Views.Party
public PartyViewModel(
ISettingsService settingsService,
IServerService serverService,
IEventManager eventManager)
IEventManager eventManager,
IClientService clientService)
{
_members = new ObservableCollection<Member>();
_queue = new ObservableCollection<BaseMedia>();
@ -55,6 +56,7 @@ namespace Aurora.Design.Views.Party
this._settingsService = settingsService;
this._serverService = serverService;
this._eventManager = eventManager;
this._clientService = clientService;
SetState(PartyState.SelectingHost);
@ -282,7 +284,7 @@ namespace Aurora.Design.Views.Party
try
{
SetState(PartyState.Hosting);
// await _clientService.RemotePartyServiceClient.GetEvents().ConfigureAwait(true);
await GetEvents().ConfigureAwait(false);
}
catch (Exception ex)
{