using new api
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user