public void SetDefaultEndpoint(int id) { if (_devices.TryGetValue(id, out var device)) { using (var policyConfig = new PolicyConfig()) policyConfig.SetDefaultEndpoint(device.DeviceId, Role.Multimedia); } }
public static void SetDefaultEndpoint(string deviceID, Role role) { var policyConfig = new PolicyConfig(); policyConfig.SetDefaultEndpoint(deviceID, role); }