Esempio n. 1
0
        private string SharePackage(string token)
        {
            string[] fileTokens = files.ToArray();
            for (int i = 0; i < fileTokens.Length; i++) {
                fileTokens[i] = Path.GetFileName(fileTokens[i]);
            }

            using (TransferClient transfer = new TransferClient("BasicHttpBinding_ITransfer")) {
                string result = transfer.SharePackage(options["SenderMail"], new string[0], token, fileTokens, options["Subject"], options["Body"]);
                transfer.Close();
                return result;
            }
        }