public bool Three(IResolveFieldContext resolveContext, object source, MyUserContext context)
 {
     return(resolveContext != null && context != null && source != null);
 }
 public bool Four(IResolveFieldContext resolveContext, object source, MyUserContext context, int id)
 {
     return(resolveContext != null && context != null && source != null && id != 0);
 }
 public string UserContextWithParam(MyUserContext context, string id) => $"{context.Name} {id}";
 public string UserContext(MyUserContext context) => context.Name;
 public string UserContextWithParam(MyUserContext context, string id)
 {
     return($"{context.Name} {id}");
 }
 public string UserContext(MyUserContext context)
 {
     return(context.Name);
 }
Esempio n. 7
0
 public Character Friend(MyUserContext context)
 {
     return(new Character {
         Name = "C3-PO"
     });
 }