Ejemplo n.º 1
0
 protected override void InitializeRemoteProcedures()
 {
     LogInError      = DefineRemoteProcedure();
     SendOnlineUsers = DefineRemoteProcedure(IEnumerableReliableBitConverter.GetInstance(StringBitConverter.ASCIIReliableInstance));
     SendSoundBytes  = DefineRemoteProcedure(ReliableBitConverter.GetInstance(IEnumerableVariableLengthBitConverter.GetInstance(ByteBitConverter.Instance)));
     SendRequestToEntryConference  = DefineRemoteProcedure(Int32BitConverter.Instance, StringBitConverter.ASCIIReliableInstance, IEnumerableReliableBitConverter.GetInstance(StringBitConverter.ASCIIReliableInstance));
     SendRequestToCreateConference = DefineRemoteProcedure(Int32BitConverter.Instance, StringBitConverter.ASCIIReliableInstance, IEnumerableReliableBitConverter.GetInstance(StringBitConverter.ASCIIReliableInstance));
     SendUpdatedConferenceUsers    = DefineRemoteProcedure(IEnumerableReliableBitConverter.GetInstance(StringBitConverter.ASCIIReliableInstance));
 }
Ejemplo n.º 2
0
 protected override void InitializeLocalProcedures()
 {
     DefineLocalProcedure(true, LogIn, StringBitConverter.ASCIIReliableInstance);
     DefineLocalProcedure(true, GetMicrophoneBytes, ReliableBitConverter.GetInstance(IEnumerableVariableLengthBitConverter.GetInstance(ByteBitConverter.Instance)));
     DefineLocalProcedure(true, RequestOnGetOnlineUsers);
     DefineLocalProcedure(true, SwitchSoundState, BooleanBitConverter.Instance);
     DefineLocalProcedure(true, RequestOnCreateConference, IEnumerableReliableBitConverter.GetInstance(StringBitConverter.ASCIIReliableInstance));
     DefineLocalProcedure(true, ResponseOnEntryConference, Int32BitConverter.Instance, BooleanBitConverter.Instance);
     DefineLocalProcedure(true, ExitConference);
     DefineLocalProcedure(true, AddUserToConference, StringBitConverter.ASCIIReliableInstance);
 }