protected FieldType Register <TGraphType, TReturn>(OperationBase <TSourceType, TReturn> field) where TGraphType : IGraphType { return(FieldAsync <TGraphType, TReturn>(field.Name, field.Description, field.Arguments, field.ResolveAsync)); }
protected void RegisterAuthenticated <TGraphType, TReturn>(OperationBase <TSourceType, TReturn> field) where TGraphType : IGraphType { FieldAsync <TGraphType, TReturn>(field.Name, field.Description, field.Arguments, field.ResolveAsync) .AuthorizeWith(Constants.Auth._Authenticated); }