Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 23x 23x 23x 23x 23x 1x 1x 1x 1x 1x 1x 1x |
/**
* Specify the default name for a decorated class. On a Service, this determines
* the default service identifier to attach to a class (when it is not overridden
* during service registration).
*
* @param identifier
* @returns
*/
export function Name(identifier: string) {
return (target) => {
Reflect.defineMetadata('rpc:name', identifier, target);
}
}
/**
* Specify the default URL for a decorated class. On a Service, this determines
* the default URL to use when connecting to the service when using the
* Service.proxy() method to obtain an immediate-proxy.
* @param url
*/
export function URL(url: string) {
return (target) => {
Reflect.defineMetadata('rpc:url', url, target);
}
} |