Carrotware.CMS.Interface.CarrotViewEngineWidget.GetAssemblyKey C# (CSharp) Метод

GetAssemblyKey() публичный Метод

public GetAssemblyKey ( System.Web.Mvc.ControllerContext ctrlCtx ) : string
ctrlCtx System.Web.Mvc.ControllerContext
Результат string
        public string GetAssemblyKey(ControllerContext ctrlCtx)
        {
            string assemblyName = String.Empty;
            var controller = ctrlCtx.Controller;

            //if (!(controller is IAdminModule)) {
            if (controller is IWidgetController) {
                assemblyName = (controller as IWidgetController).AssemblyName;
            } else {
                if (controller.ViewData[CarrotViewEngineWidget.Key] != null) {
                    assemblyName = controller.ViewData[CarrotViewEngineWidget.Key].ToString();
                }
            }
            //}

            return assemblyName;
        }