internal CodePackageEntryPoint( string entryPointLocation, long processId, string runAsUserName, EntryPointStatus entrypointStatus, DateTime nextActivationUtc, CodePackageEntryPointStatistics statistics, Int64 codePackageInstanceId) { this.EntryPointLocation = entryPointLocation; this.ProcessId = processId; this.RunAsUserName = runAsUserName; this.EntryPointStatus = entrypointStatus; this.NextActivationUtc = nextActivationUtc; this.Statistics = statistics; this.CodePackageInstanceId = codePackageInstanceId; }
internal static unsafe CodePackageEntryPoint FromNative(NativeTypes.FABRIC_CODE_PACKAGE_ENTRY_POINT nativeEntryPoint) { NativeTypes.FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS *nativeEntryPointStatistics = (NativeTypes.FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS *)nativeEntryPoint.Statistics; Int64 instanceId = 0; if (nativeEntryPoint.Reserved != IntPtr.Zero) { NativeTypes.FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 *nativeResultItemEx1 = (NativeTypes.FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 *)nativeEntryPoint.Reserved; instanceId = nativeResultItemEx1->CodePackageInstanceId; } return(new CodePackageEntryPoint( NativeTypes.FromNativeString(nativeEntryPoint.EntryPointLocation), nativeEntryPoint.ProcessId, NativeTypes.FromNativeString(nativeEntryPoint.RunAsUserName), (EntryPointStatus)nativeEntryPoint.EntryPointStatus, NativeTypes.FromNativeFILETIME(nativeEntryPoint.NextActivationUtc), CodePackageEntryPointStatistics.FromNative(*nativeEntryPointStatistics), instanceId)); }