Esempio n. 1
0
        internal OperationPayloadBuilder(string metadata, string title, string target, PayloadBuilderPropertyKind operationKind)
        {
            this.Metadata = metadata;
            this.Title    = title;
            this.Target   = target;

            Assert.IsTrue(operationKind == PayloadBuilderPropertyKind.Action || operationKind == PayloadBuilderPropertyKind.Function, "OperationPayloadBuilder only supports Actions and Functions.");
            this.PropertyKind = operationKind;
        }
Esempio n. 2
0
 private void AddProperty(string name, object value, PayloadBuilderPropertyKind payloadBuilderPropertyKind)
 {
     this.AddProperty(new PropertyPayloadBuilder(name, value, payloadBuilderPropertyKind));
 }
Esempio n. 3
0
 private void AddOperation(string metadata, string title, string target, PayloadBuilderPropertyKind operationKind)
 {
     this.Operations.Add(new OperationPayloadBuilder(metadata, title, target, operationKind));
 }
Esempio n. 4
0
        internal OperationPayloadBuilder(string metadata, string title, string target, PayloadBuilderPropertyKind operationKind)
        {
            this.Metadata = metadata;
            this.Title = title;
            this.Target = target;

            Assert.IsTrue(operationKind == PayloadBuilderPropertyKind.Action || operationKind == PayloadBuilderPropertyKind.Function, "OperationPayloadBuilder only supports Actions and Functions.");
            this.PropertyKind = operationKind;
        }
Esempio n. 5
0
 internal PropertyPayloadBuilder(string name, object value, PayloadBuilderPropertyKind propertyKind)
 {
     this.Name = name;
     this.Value = value;
     this.PropertyKind = propertyKind;
 }
Esempio n. 6
0
 private void AddProperty(string name, object value, PayloadBuilderPropertyKind payloadBuilderPropertyKind)
 {
     this.AddProperty(new PropertyPayloadBuilder(name, value, payloadBuilderPropertyKind));
 }
Esempio n. 7
0
 private void AddOperation(string metadata, string title, string target, PayloadBuilderPropertyKind operationKind)
 {
     this.Operations.Add(new OperationPayloadBuilder(metadata, title, target, operationKind));
 }
Esempio n. 8
0
 internal PropertyPayloadBuilder(string name, object value, PayloadBuilderPropertyKind propertyKind)
 {
     this.Name         = name;
     this.Value        = value;
     this.PropertyKind = propertyKind;
 }