Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ByTypeSharedStateFactory.CanProvideState Method

Indicate, whether the given instance will be served by this provider

[Visual Basic]
Public Overrides Sub CanProvideState( _
   ByVal instance As Object, _
   ByVal name As String _
) _
    Implements ISharedStateFactory.CanProvideState
[C#]
public override bool CanProvideState(
   object instance,
   string name
);

Parameters

instance
the instance to serve state
name
the name of the instance

Return Value

a boolean value indicating, whether state shall be resolved for the given instance or not.

Implements

ISharedStateFactory.CanProvideState

See Also

ByTypeSharedStateFactory Class | Spring.Objects.Support Namespace