protected override void Execute(CodeActivityContext context) { try { CreateSecret obj = new CreateSecret(); obj.SecretName = SecretName.Get(context); obj.SecretValue = SecretValue.Get(context); obj.ContenType = "dev-Action-secret"; string output = CreateSecretinAzure(obj); PublishedVersion.Set(context, output); } catch (Exception ex) { throw new InvalidWorkflowException("exception in action" + ex.Message, ex.InnerException); } }
//[RequiredArgument] //[Output("Published Version")] //public OutArgument<string> PublishedVersion { get; set; } protected override void Execute(CodeActivityContext context) { try { AzureProcessor obj = new AzureProcessor(); string secretName = string.Empty; secretName = string.IsNullOrEmpty(SecretName.Get(context))? "sec2" : SecretName.Get(context); string secretValue = obj.GetTokenHttpRequest(); SecretValue.Set(context, secretValue); } catch (Exception ex) { SecretValue.Set(context, ex.Message); throw new InvalidWorkflowException("exception in action" + ex.Message, ex.InnerException); } }