using System;
namespace Framework.Services {
/// Declares the scope in which a service will exist
[
AttributeUsage(
AttributeTargets.Class | AttributeTargets.Interface,
Inherited = false,
AllowMultiple = false
)
]
public class ServiceScopeAttribute : Attribute {
/// Initializes a new service scope attribute
/// Scope the service will exist in
public ServiceScopeAttribute(Scope scope) {
this.scope = scope;
}
/// Scope the service will exist in
public Scope Scope {
get { return this.scope; }
}
/// Scope the service will exist in
private Scope scope;
}
} // namespace Framework.Services