// Token: 0x06004FF6 RID: 20470 RVA: 0x001195A8 File Offset: 0x001177A8
        internal static string GetEntryPointFullPath(ActivationContext activationContext)
        {
            string text;
            string text2;

            CmsUtils.GetEntryPoint(activationContext, out text, out text2);
            if (!string.IsNullOrEmpty(text))
            {
                string text3 = activationContext.ApplicationDirectory;
                if (text3 == null || text3.Length == 0)
                {
                    text3 = Directory.UnsafeGetCurrentDirectory();
                }
                text = Path.Combine(text3, text);
            }
            return(text);
        }
Exemple #2
0
        internal static string GetEntryPointFullPath(ActivationContext activationContext)
        {
            string fileName;
            string parameters;

            CmsUtils.GetEntryPoint(activationContext, out fileName, out parameters);
            if (!string.IsNullOrEmpty(fileName))
            {
                string path1 = activationContext.ApplicationDirectory;
                if (path1 == null || path1.Length == 0)
                {
                    StringBuilder lpBuffer = new StringBuilder(261);
                    if (Win32Native.GetCurrentDirectory(lpBuffer.Capacity, lpBuffer) == 0)
                    {
                        __Error.WinIOError();
                    }
                    path1 = lpBuffer.ToString();
                }
                fileName = Path.Combine(path1, fileName);
            }
            return(fileName);
        }
Exemple #3
0
 internal static string GetEntryPointFullPath(ActivationArguments activationArguments)
 {
     return(CmsUtils.GetEntryPointFullPath(activationArguments.ActivationContext));
 }
Exemple #4
0
 internal static Evidence MergeApplicationEvidence(Evidence evidence, ApplicationIdentity applicationIdentity, ActivationContext activationContext, string[] activationData)
 {
     return(CmsUtils.MergeApplicationEvidence(evidence, applicationIdentity, activationContext, activationData, (ApplicationTrust)null));
 }