static HypermediaProcessorBase()
 {
     MulticastObject
     .ImplementationOf <IApiDocumentation>()
     .ForFunction(_ => _.GetEntryPoint())
     .ImplementedBy(_ => ApiDocumentation.GetEntryPoint(_));
     MulticastObject
     .ImplementationOf <IApiDocumentation>()
     .ForFunction(_ => _.GetEntryPoint(CancellationToken.None))
     .ImplementedBy(_ => ApiDocumentation.GetEntryPoint(_, CancellationToken.None));
     MulticastObject
     .ImplementationOf <ICollection>()
     .ForFunction(_ => _.GetIterator())
     .ImplementedBy(_ => Collection.GetIterator(_));
     MulticastObject
     .ImplementationOf <ITemplatedLink>()
     .ForFunction(_ => _.ExpandTarget((IDictionary <string, string>)null))
     .ImplementedBy(_ => TemplatedLink.ExpandTarget(_, (IDictionary <string, string>)null));
     MulticastObject
     .ImplementationOf <ITemplatedLink>()
     .ForFunction(_ => _.ExpandTarget((Action <MappingsBuilder>)null))
     .ImplementedBy(_ => TemplatedLink.ExpandTarget(_, (Action <MappingsBuilder>)null));
     MulticastObject
     .ImplementationOf <ITemplatedOperation>()
     .ForFunction(_ => _.ExpandTarget((IDictionary <string, string>)null))
     .ImplementedBy(_ => TemplatedOperation.ExpandTarget(_, (IDictionary <string, string>)null));
     MulticastObject
     .ImplementationOf <ITemplatedOperation>()
     .ForFunction(_ => _.ExpandTarget((Action <MappingsBuilder>)null))
     .ImplementedBy(_ => TemplatedOperation.ExpandTarget(_, (Action <MappingsBuilder>)null));
     MulticastObject
     .ImplementationOf <IResource>()
     .ForProperty(_ => _.DisplayName)
     .ImplementedBy(_ => ResourceExtensions.GetDisplayName(_));
     MulticastObject
     .ImplementationOf <IResource>()
     .ForProperty(_ => _.TextDescription)
     .ImplementedBy(_ => ResourceExtensions.GetTextDescription(_));
 }
예제 #2
0
 public async Task TheTest()
 {
     Result = await ApiDocumentation.GetEntryPoint();
 }
예제 #3
0
        public override async Task TheTest()
        {
            await base.TheTest();

            EntryPoint = await ApiDocumentation.GetEntryPoint();
        }