//private XPSession public NetworkManagerAndroid(WifiDirectImpl wifiDirectImpl) { DependencyRegistry.AddDependency <INetworkManager>(this); _wifiDirectImpl = wifiDirectImpl; _wifiDirectImpl.ServiceFound += OnServiceFound; _wifiDirectImpl.ConnectionEstablished += OnConnectionEstablished; _wifiDirectImpl.MessageReceived += OnMessageReceived; }