예제 #1
0
        /// <summary>
        /// Creates an adhoc meeting
        /// </summary>
        /// <param name="loggingContext"><see cref="LoggingContext"/> to be used for logging all related events.</param>
        /// <param name="input">Specifies properties for the meeting to be created</param>
        /// <returns><see cref="IAdhocMeeting"/> which can be used to join the meeting or get meeting url, which can be passed onto real users to join it.</returns>
        public async Task <IAdhocMeeting> CreateAdhocMeetingAsync(AdhocMeetingCreationInput input, LoggingContext loggingContext = null)
        {
            if (input == null)
            {
                throw new ArgumentNullException(nameof(input));
            }

            #pragma warning disable CS0618 // Type or member is obsolete
            AdhocMeetingResource adhocMeetingResource = await GetAdhocMeetingResourceAsync(loggingContext, input?.ToPlatformInput()).ConfigureAwait(false);

            #pragma warning restore CS0618 // Type or member is obsolete

            return(new AdhocMeeting(RestfulClient, adhocMeetingResource, BaseUri, UriHelper.CreateAbsoluteUri(BaseUri, adhocMeetingResource.SelfUri), this));
        }
예제 #2
0
 public Task <IAdhocMeeting> CreateAdhocMeetingAsync(LoggingContext loggingContext, AdhocMeetingCreationInput input)
 {
     return(CreateAdhocMeetingAsync(input, loggingContext));
 }