/// <summary> /// Turn the parameter (with attribute) into an EventStream object /// </summary> /// <returns> /// A built [EventStream] object /// </returns> public Task <object> GetValueAsync() { if (null == _item) { if (null != _parameter) { EventStreamAttribute attribute = _parameter.GetCustomAttribute <EventStreamAttribute>(inherit: false); if (null != attribute) { _item = new EventStream(attribute, settings: _eventStreamSettings); } } } return(Task.FromResult <object>(_item)); }