internal void InitFromCreationInformation(WorkflowAssociationCreationInformation creation) { if (creation != null) { base.ObjectData.Properties["Name"] = creation.Name; } }
public WorkflowAssociation Add(WorkflowAssociationCreationInformation parameters) { ClientRuntimeContext context = base.Context; if (base.Context.ValidateOnClient && parameters == null) { throw ClientUtility.CreateArgumentNullException("parameters"); } WorkflowAssociation workflowAssociation = new WorkflowAssociation(context, new ObjectPathMethod(context, base.Path, "Add", new object[] { parameters })); workflowAssociation.Path.SetPendingReplace(); ObjectIdentityQuery objectIdentityQuery = new ObjectIdentityQuery(workflowAssociation.Path); context.AddQueryIdAndResultObject(objectIdentityQuery.Id, workflowAssociation); context.AddQuery(objectIdentityQuery); base.AddChild(workflowAssociation); workflowAssociation.InitFromCreationInformation(parameters); return(workflowAssociation); }