RpcRouteAttribute.cs 346 B

1234567891011121314151617
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. namespace JsonRPC4.Router
  6. {
  7. public class RpcRouteAttribute : Attribute
  8. {
  9. public string RouteName { get; }
  10. public RpcRouteAttribute(string routeName = null)
  11. {
  12. this.RouteName = ((routeName != null) ? routeName.Trim() : null);
  13. }
  14. }
  15. }