Esempio n. 1
0
        /// <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}");
        }
Esempio n. 2
0
 /// <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()))}");
 }
Esempio n. 3
0
 /// <summary>
 /// Creates an endpoint assosicated with the controller
 /// </summary>
 /// <param name="parent"></param>
 public HubEndpoint(HubController parent)
 {
     Parent = parent;
 }