Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Latest commit

 

History

History
106 lines (68 loc) · 2.04 KB

File metadata and controls

106 lines (68 loc) · 2.04 KB

IMutationContext ..

Describes the context in which mutation is performed.

Namespace: Dado.ComponentModel.DataMutations
Implements: System.IServiceProvider (in System.ComponentModel)

Syntax

public interface IMutationContext : IServiceProvider

Remarks

It supports IServiceProvider so that custom mutation code can acquire additional services to help it perform its mutation.

Properties

Name Description
Attributes Gets the attributes associated with this context.
Items Gets the dictionary of key/value pairs associated with this context.
ObjectInstance Gets the instance being mutated.

Methods

Name Description
GetService(Type) Gets the service object of the specified type.

Attributes

Gets the attributes associated with this context.

Syntax

IEnumerable<Attribute> Attributes { get; }
Type
System.Collections.Generic<System.Attribute>

Items

Gets the dictionary of key/value pairs associated with this context.

IDictionary<object, object> Items { get; }
Type
System.Collections.Generic.IDictionary<System.Object, System.Object>

ObjectInstance

Gets the instance being mutated.

Syntax

object ObjectInstance { get; }
Type
System.Object

GetService(Type)

Gets the service object of the specified type.

Syntax

object GetService(
	Type serviceType
)

Returns

A service object of type serviceType or null if there is no service object of type serviceType.

Parameters

serviceType
Type: System.Type
An object that specifies the type of service object to get.