コード例 #1
0
        protected Future <object> UnsubscribeFromChannel(string channel)
        {
            Promise <object> promise = new Promise <object>();

            try
            {
                ClientExtensions.LeaveConference(Client, new LeaveConferenceArgs(channel)
                {
                    OnSuccess = (o) =>
                    {
                        promise.Resolve(o);
                    },
                    OnFailure = (e) =>
                    {
                        promise.Reject(e.Exception);
                    }
                });
            }
            catch (Exception e)
            {
                promise.Reject(e);
            }

            return(promise);
        }