/// <summary> /// Gets the specified request. /// </summary> /// <param name="request">The request.</param> /// <returns>System.Object.</returns> public async Task <object> Get(GetPluginSecurityInfo request) { var result = new PluginSecurityInfo { IsMBSupporter = await _securityManager.IsSupporter().ConfigureAwait(false), SupporterKey = _securityManager.SupporterKey }; return(ToOptimizedResult(result)); }
/// <summary> /// Gets the specified request. /// </summary> /// <param name="request">The request.</param> /// <returns>System.Object.</returns> public object Get(GetPluginSecurityInfo request) { var result = new PluginSecurityInfo { IsMBSupporter = true, SupporterKey = "IAmTotallyLegit" }; return(ToOptimizedResult(result)); }
/// <summary> /// Gets the specified request. /// </summary> /// <param name="request">The request.</param> /// <returns>System.Object.</returns> public object Get(GetPluginSecurityInfo request) { var result = new PluginSecurityInfo { IsMBSupporter = _securityManager.IsMBSupporter, SupporterKey = _securityManager.SupporterKey }; return(ToOptimizedSerializedResultUsingCache(result)); }
/// <summary> /// Gets the specified request. /// </summary> /// <param name="request">The request.</param> /// <returns>System.Object.</returns> public object Get(GetPluginSecurityInfo request) { var result = new PluginSecurityInfo { IsMBSupporter = _securityManager.IsMBSupporter, SupporterKey = _securityManager.SupporterKey, LegacyKey = _securityManager.LegacyKey }; return(ToOptimizedResult(result)); }