示例#1
0
        internal void TransferStateChangedEventArgs_Instantiates_With_The_Given_Data(string username, string filename, int token, TransferStates transferStates)
        {
            var dl = new TransferInternal(TransferDirection.Download, username, filename, token);
            var d  = new TransferStateChangedEventArgs(transferStates, new Transfer(dl));

            Assert.Equal(transferStates, d.PreviousState);
        }
示例#2
0
        void AVCall_TransferStateChanged(object sender, TransferStateChangedEventArgs e)
        {
            // Simply log the events as they occur.
            Call call = sender as Call;

            // Call participants allow for disambiguation.
            Console.WriteLine("The transfer with Local Participant: " + call.Conversation.LocalParticipant +
                              " and Remote Participant: " + call.RemoteEndpoint.Participant +
                              " has changed state. The previous call state was: " + e.PreviousState +
                              " and the current state is: " + e.State);
        }
示例#3
0
 /// <summary>
 /// A method that must be implemented by the derived class to handle the notifications
 /// received for a transfer operations sent.
 /// </summary>
 /// <param name="e"></param>
 protected override void HandleTransferNotificationReceived(TransferStateChangedEventArgs e)
 {
     return;
 }