Tmx.SendCommonDataItemCommand.Execute C# (CSharp) Method

Execute() private method

private Execute ( ) : void
return void
        internal override void Execute()
        {
            var cmdlet = (SendTmxCommonDataItemCommand)Cmdlet;
            var keyValuePair = new CommonDataItem { Key = cmdlet.Key, Value = cmdlet.Value };
            var commonDataSender = ProxyFactory.Get<CommonDataSender>();
            try {
                commonDataSender.Send(keyValuePair);
                cmdlet.WriteObject(true);
            }
            catch (SendingCommonDataItemException e) {
                // throw new Exception("Failed to send data with key '" + cmdlet.Key + "'. " + e.Message);
                throw;
            }
        }
    }
SendCommonDataItemCommand