Transloadit.Assembly.AssemblyBuilder.AddStep C# (CSharp) Method

AddStep() public method

Adds step to the current assembly
public AddStep ( string name, IStep step ) : void
name string Name of the step
step IStep Step to be added
return void
        public void AddStep(string name, IStep step)
        {
            steps[name] = step.ToDictionary();
        }

Usage Example

        public void InvokeAssemblyWithNotifyUrl()
        {
            ITransloadit transloadit = new Transloadit.Transloadit("YOUR-PUBLIC-API-KEY", "YOUR-SECRET-KEY");
            IAssemblyBuilder assembly = new AssemblyBuilder();
            IStep step = new Transloadit.Assembly.Step();

            assembly.SetNotifyURL("http://my.localhost");
            step.SetOption("robot", "/image/resize");
            assembly.AddStep("step", step);

            TransloaditResponse response = transloadit.InvokeAssembly(assembly);

            Assert.IsTrue((string)response.Data["ok"] == "ASSEMBLY_COMPLETED" || (string)response.Data["ok"] == "ASSEMBLY_EXECUTING");
        }
All Usage Examples Of Transloadit.Assembly.AssemblyBuilder::AddStep