/// <summary> /// Initializes a new instance of the <see cref="CuteProvider"/> class. /// </summary> public CuteProvider() { Context = new CuteContext(); Calls = new Collection<CuteCall>(); Type = InstanceType.NoInput; Types = new Type[] { typeof(object), typeof(Entity), typeof(EntityCollection), typeof(QueryExpression), typeof(ColumnSet), typeof(OrganizationRequest), typeof(OrganizationResponse), typeof(InvalidPluginExecutionException), typeof(OperationStatus) }; }
public static CuteContext Copy(IPluginExecutionContext context) { if (context == null) { return null; } var copy = new CuteContext(context); if (context.ParentContext != null) { copy.Parent = Copy(context.ParentContext); } return copy; }