/// <summary> /// Returns a string that represents the current object under the context of the caller /// </summary> /// <param name="caller"></param> /// <returns></returns> public string ToString(HubController caller) { string namespaceVersion = $@"{(caller.NamespaceVersion != null ? $"{caller.NamespaceVersion}." : "")}{(caller.NamespaceSuffix != null ? $"{caller.NamespaceSuffix}." : string.Empty)}"; return($"{namespaceVersion}{caller.Name}.{Name}"); }
/// <summary> /// Get the signature of the endpoint, for equality/grouping purposes /// </summary> /// <param name="caller"></param> /// <returns></returns> public string GetSignature(HubController caller) { return($"{ToString(caller)}(${string.Join(", ", GetParameters().Select(x => x.ToString()))}"); }
/// <summary> /// Creates an endpoint assosicated with the controller /// </summary> /// <param name="parent"></param> public HubEndpoint(HubController parent) { Parent = parent; }