Ejemplo n.º 1
0
        public IActivityBuilder New(
            Type activityType,
            string activityTypeName,
            IDictionary <string, IActivityPropertyValueProvider>?propertyValueProviders = default,
            [CallerLineNumber] int lineNumber  = default,
            [CallerFilePath] string?sourceFile = default)
        {
            var activityBuilder = new ActivityBuilder(activityType, activityTypeName, this, propertyValueProviders, lineNumber, sourceFile);

            return(activityBuilder);
        }
Ejemplo n.º 2
0
        public IActivityBuilder Add <T>(
            string activityTypeName,
            Action <IActivityBuilder>?branch = default,
            IDictionary <string, IActivityPropertyValueProvider>?propertyValueProviders = default,
            [CallerLineNumber] int lineNumber  = default,
            [CallerFilePath] string?sourceFile = default)
            where T : class, IActivity
        {
            var activityBuilder = new ActivityBuilder(typeof(T), activityTypeName, this, propertyValueProviders, lineNumber, sourceFile);

            return(Add(activityBuilder, branch));
        }