PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelDependsOn
Open sandboxFocus

Depends.On Method

On(Object)

Specifies an explicit dependency between the calling method and the argument passed to this method.

Declaration
public static void On(object dependency1)
Parameters
Type Name Description
System.Object dependency1

On(Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

Declaration
public static void On(object dependency1, object dependency2)
Parameters
Type Name Description
System.Object dependency1
System.Object dependency2

On(Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

Declaration
public static void On(object dependency1, object dependency2, object dependency3)
Parameters
Type Name Description
System.Object dependency1
System.Object dependency2
System.Object dependency3

On(Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

Declaration
public static void On(object dependency1, object dependency2, object dependency3, object dependency4)
Parameters
Type Name Description
System.Object dependency1
System.Object dependency2
System.Object dependency3
System.Object dependency4

On(Object, Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

Declaration
public static void On(object dependency1, object dependency2, object dependency3, object dependency4, object dependency5)
Parameters
Type Name Description
System.Object dependency1
System.Object dependency2
System.Object dependency3
System.Object dependency4
System.Object dependency5

On(Object, Object, Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

Declaration
public static void On(object dependency1, object dependency2, object dependency3, object dependency4, object dependency5, object dependency6)
Parameters
Type Name Description
System.Object dependency1
System.Object dependency2
System.Object dependency3
System.Object dependency4
System.Object dependency5
System.Object dependency6

On(Object, Object, Object, Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

Declaration
public static void On(object dependency1, object dependency2, object dependency3, object dependency4, object dependency5, object dependency6, object dependency7)
Parameters
Type Name Description
System.Object dependency1
System.Object dependency2
System.Object dependency3
System.Object dependency4
System.Object dependency5
System.Object dependency6
System.Object dependency7

On(Object, Object, Object, Object, Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

Declaration
public static void On(object dependency1, object dependency2, object dependency3, object dependency4, object dependency5, object dependency6, object dependency7, object dependency8)
Parameters
Type Name Description
System.Object dependency1
System.Object dependency2
System.Object dependency3
System.Object dependency4
System.Object dependency5
System.Object dependency6
System.Object dependency7
System.Object dependency8

On(Object, Object, Object, Object, Object, Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

Declaration
public static void On(object dependency1, object dependency2, object dependency3, object dependency4, object dependency5, object dependency6, object dependency7, object dependency8, object dependency9)
Parameters
Type Name Description
System.Object dependency1
System.Object dependency2
System.Object dependency3
System.Object dependency4
System.Object dependency5
System.Object dependency6
System.Object dependency7
System.Object dependency8
System.Object dependency9

On(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

Declaration
public static void On(object dependency1, object dependency2, object dependency3, object dependency4, object dependency5, object dependency6, object dependency7, object dependency8, object dependency9, object dependency10)
Parameters
Type Name Description
System.Object dependency1
System.Object dependency2
System.Object dependency3
System.Object dependency4
System.Object dependency5
System.Object dependency6
System.Object dependency7
System.Object dependency8
System.Object dependency9
System.Object dependency10