Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
OAuthResourceNameAttribute.cs
1using System;
3using System.Threading.Tasks;
4
6{
10 [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
12 {
18 {
19 this.ResourceName = ResourceName;
20 }
21
25 public string ResourceName { get; }
26
32 public override Task AddMetaData(HttpResource Resource,
33 Dictionary<string, object> MetaData)
34 {
35 MetaData["resource_name"] = this.ResourceName;
36 return Task.CompletedTask;
37 }
38 }
39}
Base class for all HTTP resources.
Definition: HttpResource.cs:23
Abstract base class for OAUTH meta-data attributes.
OAuthResourceNameAttribute(string ResourceName)
Defines the resource name of an OAUTH web service.
override Task AddMetaData(HttpResource Resource, Dictionary< string, object > MetaData)
Adds available meta-data to a dictionary of meta-data.