Beispiel #1
0
        protected override void CacheMetadata(ActivityMetadata metadata)
        {
            var runtimeArguments = new Collection <RuntimeArgument>();

            runtimeArguments.Add(new RuntimeArgument("DiscountCode", typeof(string), ArgumentDirection.Out));
            metadata.Bind(this.DiscountCode, runtimeArguments[0]);

            metadata.SetArgumentsCollection(runtimeArguments);
        }
Beispiel #2
0
        protected override void CacheMetadata(ActivityMetadata metadata)
        {
            var runtimeArguments = new Collection <RuntimeArgument>();

            runtimeArguments.Add(new RuntimeArgument("BookmarkName", typeof(string), ArgumentDirection.In, true));
            runtimeArguments.Add(new RuntimeArgument("Text", typeof(string), ArgumentDirection.In, true));
            metadata.Bind(this.BookmarkName, runtimeArguments[0]);
            metadata.Bind(this.Text, runtimeArguments[1]);

            metadata.SetArgumentsCollection(runtimeArguments);
        }
Beispiel #3
0
        protected override void CacheMetadata(ActivityMetadata metadata)
        {
            var runtimeArguments = new Collection <RuntimeArgument>();

            runtimeArguments.Add(new RuntimeArgument("GuessNumber", typeof(int), ArgumentDirection.In, true));
            runtimeArguments.Add(new RuntimeArgument("Turns", typeof(int), ArgumentDirection.Out));
            metadata.Bind(this.GuessNumber, runtimeArguments[0]);
            metadata.Bind(this.Turns, runtimeArguments[1]);

            metadata.SetArgumentsCollection(runtimeArguments);
        }
Beispiel #4
0
        protected override void CacheMetadata(ActivityMetadata metadata)
        {
            var runtimeArguments = new Collection <RuntimeArgument>();

            runtimeArguments.Add(new RuntimeArgument("AtBatResult", typeof(string), ArgumentDirection.Out));
            runtimeArguments.Add(new RuntimeArgument("PitchCount", typeof(int), ArgumentDirection.Out));
            metadata.Bind(this.AtBatResult, runtimeArguments[0]);
            metadata.Bind(this.PitchCount, runtimeArguments[1]);

            metadata.SetArgumentsCollection(runtimeArguments);
        }