コード例 #1
0
ファイル: DynamicActivity.cs プロジェクト: wfridy/corewf
        sealed internal override void OnInternalCacheMetadata(bool createEmptyBindings)
        {
            Activity body = null;

            if (this.Implementation != null)
            {
                body = this.Implementation();
            }

            if (body != null)
            {
                SetImplementationChildrenCollection(new Collection <Activity> {
                    body
                });
            }

            // Always cache the last body that we returned
            this.runtimeImplementation = body;

            ReflectedInformation information = new ReflectedInformation(this);

            SetImportedChildrenCollection(information.GetChildren());
            SetVariablesCollection(information.GetVariables());
            SetImportedDelegatesCollection(information.GetDelegates());
            SetArgumentsCollection(information.GetArguments(), createEmptyBindings);
        }
コード例 #2
0
        protected virtual void CacheMetadata(NativeActivityMetadata metadata)
        {
            ReflectedInformation information = new ReflectedInformation(this);

            // We bypass the metadata structure to avoid the checks for null entries
            SetArgumentsCollection(information.GetArguments(), metadata.CreateEmptyBindings);
            SetChildrenCollection(information.GetChildren());
            SetDelegatesCollection(information.GetDelegates());
            SetVariablesCollection(information.GetVariables());
        }
コード例 #3
0
ファイル: CodeActivity.cs プロジェクト: yangbg/corewf
 protected virtual void CacheMetadata(CodeActivityMetadata metadata)
 {
     // We bypass the metadata call to avoid the null checks
     SetArgumentsCollection(ReflectedInformation.GetArguments(this), metadata.CreateEmptyBindings);
 }
コード例 #4
0
ファイル: NativeActivity.cs プロジェクト: REALTOBIZ/mono
        protected virtual void CacheMetadata(NativeActivityMetadata metadata)
        {
            ReflectedInformation information = new ReflectedInformation(this);

            // We bypass the metadata structure to avoid the checks for null entries
            SetArgumentsCollection(information.GetArguments(), metadata.CreateEmptyBindings);
            SetChildrenCollection(information.GetChildren());
            SetDelegatesCollection(information.GetDelegates());
            SetVariablesCollection(information.GetVariables());
        }
コード例 #5
0
        sealed internal override void OnInternalCacheMetadata(bool createEmptyBindings)
        {
            Activity body = null;
            if (this.Implementation != null)
            {
                body = this.Implementation();
            }

            if (body != null)
            {
                SetImplementationChildrenCollection(new Collection<Activity> { body });
            }

            // Always cache the last body that we returned
            this.runtimeImplementation = body;

            ReflectedInformation information = new ReflectedInformation(this);

            SetImportedChildrenCollection(information.GetChildren());
            SetVariablesCollection(information.GetVariables());
            SetImportedDelegatesCollection(information.GetDelegates());
            SetArgumentsCollection(information.GetArguments(), createEmptyBindings);
        }