Method GetServiceName
GetServiceName(Type)
Get the service name for the class (either by convention or by attribute).
Declaration
public static string GetServiceName(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | A service to get the name for. |
Returns
Type | Description |
---|---|
System.String | The canonical name of the service or the name provided in the corresponding name attribute, if supplied. |