public NancyFxRunOpts() { CodeBlock = new NancyFxCodeBlock(); HttpMethod = "GET"; NuGetDllReferences = new List<string>(NuGetDllfererencesHelper.NancyFxNuGetDllfererences); HostIndex = NancySelfHostingHelper.Instance.GetNextHostIndex(); }
public NancyFxCodeBlock(NancyFxCodeBlock copy) { if (copy == null) return; Module = copy.Module; View = copy.View; Controller = copy.Controller; }
public List<AutoCompleteItem> GetAutoCompleteItems(NancyFxCodeBlock codeBlock, NancyFxFileType nancyFxFileType, int? pos = null) { switch (nancyFxFileType) { case NancyFxFileType.Module: return GetAutoCompleteItems(codeBlock.Module, pos); case NancyFxFileType.View: return new List<AutoCompleteItem>(); case NancyFxFileType.Controller: { var aggregateCode = codeBlock.Controller + codeBlock.Module; return GetAutoCompleteItems(aggregateCode, pos); } default: throw new ArgumentOutOfRangeException("nancyFxFileType"); } }