I have a project in which i have to create simple web form, in that there will be a button, When user will press button, the application should contact Lync server to set up a web conference (an online meeting).
Also, The application should present the result to the user, and preferable display a link which the user can click on to participate in the online meeting using Lync
I read all details, but still don't know from where to start, I read about UCMA 4.0 sdk, installed it, added
Microsoft.Rtc.Collaboration dll, but until i don't know which classes are used and which class method to call, to connect to server i cant do anything. Anyone can help through this, with code or any article explaining how to use this SDK.
I found this useful, because reading from this, at least i am able to understand and write some code. but issue is not resolved yet
private void button1_Click(object sender, EventArgs e)
{
ConferenceScheduleInformation CSI = new ConferenceScheduleInformation();
CSI.AccessLevel = ConferenceAccessLevel.Everyone;
CSI.AutomaticLeaderAssignment = AutomaticLeaderAssignment.Everyone;
CSI.ConferenceId = "Whatever";
CSI.Description = "Test Conference";
CSI.Subject = "Testing_Subject";
CSI.Mcus.Add(new ConferenceMcuInformation(McuType.AudioVideo));
try
{
_localendpoint.ConferenceServices.BeginScheduleConference(CSI,
ar =>
{
try
{
Conference newConference = _localendpoint.ConferenceServices.EndScheduleConference(ar);
}
catch (RealTimeException ex)
{
Console.WriteLine(ex);
}
},
null);
}
catch (InvalidOperationException ex)
{
Console.WriteLine(ex);
}
}
I Am getting Null reference exception here
Conference newConference
, How to solve this, What mistake i am making??