/// <summary> /// /// </summary> /// <param name="data"></param> /// <param name="mode">one-to-many / one-to-one</param> /// <param name="callback"></param> private void SendData(byte[] data, SendMode mode, LinccerContentCallback callback) { // inialize filecache for temporary up- and downloading large files var cache = new FileCache(); cache.Config = this._config; cache.Store(data, TIMEOUT, (uri) => { Hoc hoc = new Hoc(); hoc.DataList.Add( new HocData { Uri = uri } ); var stringMode = SendModeString.ConvertSendModeToString(mode); // share it 1:1, in the Hoccer mobile App, you need to perform a drag in // gesture to receive the message (one-to-many is throw/catch) this._linccer.Share(stringMode, hoc, callback); }); }