/// <summary>
 /// Registers given controller info to be found later.
 /// </summary>
 /// <param name="controllerInfo">Controller info</param>
 public void Register(DynamicApiControllerInfo controllerInfo)
 {
     _dynamicApiControllers[controllerInfo.ServiceName] = controllerInfo;
 }
Пример #2
0
        private static bool IsApiExplorerDisabled(DynamicApiControllerInfo dynamicApiControllerInfo)
        {
            if (dynamicApiControllerInfo.IsApiExplorerEnabled == false)
            {
                if (!RemoteServiceAttribute.IsMetadataExplicitlyEnabledFor(dynamicApiControllerInfo.ServiceInterfaceType))
                {
                    return true;
                }
            }
            else
            {
                if (RemoteServiceAttribute.IsMetadataExplicitlyDisabledFor(dynamicApiControllerInfo.ServiceInterfaceType))
                {
                    return true;
                }
            }

            return false;
        }
 /// <summary>
 /// Registers given controller info to be found later.
 /// </summary>
 /// <param name="controllerInfo">Controller info</param>
 public static void Register(DynamicApiControllerInfo controllerInfo)
 {
     DynamicApiControllers[controllerInfo.Name] = controllerInfo;
 }
 /// <summary>
 /// Registers given controller info to be found later.
 /// </summary>
 /// <param name="controllerInfo">Controller info</param>
 public static void Register(DynamicApiControllerInfo controllerInfo)
 {
     DynamicApiControllers[controllerInfo.ServiceName] = controllerInfo;
 }