From 97eee57101bfbeb9bbba5c32844cf3a0e505e5b7 Mon Sep 17 00:00:00 2001 From: dantraMSFT Date: Fri, 1 Apr 2016 11:19:48 -0700 Subject: [PATCH 1/6] Strong name sign and InternalsVisibleTo for Microsoft.Windows.DSC.CoreConfProviders --- .../AssemblyInfo.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Microsoft.Management.Infrastructure.Native/AssemblyInfo.cs b/src/Microsoft.Management.Infrastructure.Native/AssemblyInfo.cs index 4b088e757..4b260ebd7 100644 --- a/src/Microsoft.Management.Infrastructure.Native/AssemblyInfo.cs +++ b/src/Microsoft.Management.Infrastructure.Native/AssemblyInfo.cs @@ -1,3 +1,13 @@ using System.Runtime.CompilerServices; +using System.Reflection; + +#if _CORECLR [assembly:InternalsVisibleTo("Microsoft.Management.Infrastructure")] +[assembly:InternalsVisibleTo("Microsoft.Windows.DSC.CoreConfProviders")] +#else +[assembly:System.Runtime.CompilerServices.InternalsVisibleTo("Microsoft.Windows.DSC.CoreConfProviders,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] +[assembly:System.Runtime.CompilerServices.InternalsVisibleTo("Microsoft.Management.Infrastructure,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] +[assembly:AssemblyKeyFileAttribute(@"..\signing\visualstudiopublic.snk")] +[assembly:System.Reflection.AssemblyDelaySign(true)] +#endif From 2ae8f5c3a029f8407a5b8c7998a5e4f5b372e9bd Mon Sep 17 00:00:00 2001 From: dantraMSFT Date: Thu, 21 Apr 2016 17:24:42 -0700 Subject: [PATCH 2/6] Switch to MMI.Native package instead of stub Update build to use a custom Package directory (`dotnet restore` installs package assemblies to this location). --- nuget.config | 4 + ...t.Management.Infrastructure.Native-stub.cs | 1644 ----------------- .../project.json | 20 - .../project.json | 2 +- 4 files changed, 5 insertions(+), 1665 deletions(-) delete mode 100644 src/Microsoft.Management.Infrastructure.Native/Microsoft.Management.Infrastructure.Native-stub.cs delete mode 100644 src/Microsoft.Management.Infrastructure.Native/project.json diff --git a/nuget.config b/nuget.config index ce1c2b0da..8720002c1 100644 --- a/nuget.config +++ b/nuget.config @@ -1,5 +1,9 @@ + + + + diff --git a/src/Microsoft.Management.Infrastructure.Native/Microsoft.Management.Infrastructure.Native-stub.cs b/src/Microsoft.Management.Infrastructure.Native/Microsoft.Management.Infrastructure.Native-stub.cs deleted file mode 100644 index b59cc1454..000000000 --- a/src/Microsoft.Management.Infrastructure.Native/Microsoft.Management.Infrastructure.Native-stub.cs +++ /dev/null @@ -1,1644 +0,0 @@ -using Microsoft.Win32.SafeHandles; -using System; -using System.Runtime.InteropServices; -using System.Diagnostics.CodeAnalysis; -using System.Security; - -namespace Microsoft.Win32.SafeHandles -{ - internal class SafeHandleZeroOrMinusOneIsInvalid - { - } -} - -namespace Microsoft.Management.Infrastructure.Native -{ - - internal class ApplicationHandle : SafeHandleZeroOrMinusOneIsInvalid - { - internal void AssertValidInternalState() - { - throw new NotImplementedException(); - } - public void Dispose() - { - throw new NotImplementedException(); - } - internal delegate void OnHandleReleasedDelegate(); - internal MiResult ReleaseHandleAsynchronously(OnHandleReleasedDelegate completionCallback) - { - throw new NotImplementedException(); - } - internal MiResult ReleaseHandleSynchronously() - { - throw new NotImplementedException(); - } - } - - internal class ApplicationMethods - { - // Fields - //private static ApplicationHandle applicationHandle; - //private static InstanceHandle applicationInitializationError; - //private static MiResult applicationInitializationResult; - internal static string protocol_DCOM; - internal static string protocol_WSMan; - - // Methods - static ApplicationMethods() - { - throw new NotImplementedException(); - } - private ApplicationMethods() - { - throw new NotImplementedException(); - } - internal static MiResult GetCimErrorFromMiResult(MiResult errorCode, string errorMessage, out InstanceHandle cimError) - { - throw new NotImplementedException(); - } - internal static MiResult Initialize(out InstanceHandle errorDetails, out ApplicationHandle applicationHandle) - { - throw new NotImplementedException(); - } - private static MiResult InitializeCore(out InstanceHandle errorDetails, out ApplicationHandle applicationHandle) - { - throw new NotImplementedException(); - } - internal static MiResult NewDeserializer(ApplicationHandle applicationHandle, string format, uint flags, out DeserializerHandle deserializerHandle) - { - throw new NotImplementedException(); - } - internal static MiResult NewDestinationOptions(ApplicationHandle applicationHandle, out DestinationOptionsHandle destinationOptionsHandle) - { - throw new NotImplementedException(); - } - internal static MiResult NewInstance(ApplicationHandle applicationHandle, string className, ClassHandle classHandle, out InstanceHandle newInstance) - { - throw new NotImplementedException(); - } - internal static MiResult NewOperationOptions(ApplicationHandle applicationHandle, [MarshalAs(UnmanagedType.U1)] bool mustUnderstand, out OperationOptionsHandle operationOptionsHandle) - { - throw new NotImplementedException(); - } - internal static MiResult NewSerializer(ApplicationHandle applicationHandle, string format, uint flags, out SerializerHandle serializerHandle) - { - throw new NotImplementedException(); - } - internal static MiResult NewSession(ApplicationHandle applicationHandle, string protocol, string destination, DestinationOptionsHandle destinationOptionsHandle, out InstanceHandle extendedError, out SessionHandle sessionHandle) - { - throw new NotImplementedException(); - } - internal static MiResult NewSubscriptionDeliveryOptions(ApplicationHandle applicationHandle, MiSubscriptionDeliveryType deliveryType, out SubscriptionDeliveryOptionsHandle subscriptionDeliveryOptionsHandle) - { - throw new NotImplementedException(); - } - } - internal class ApplicationMethodsInternal - { - // Methods - private ApplicationMethodsInternal() - { - throw new NotImplementedException(); - } - internal static MiResult NewDeserializerMOF(ApplicationHandle applicationHandle, string format, uint flags, out DeserializerHandle deserializerHandle) - { - throw new NotImplementedException(); - } - internal static MiResult NewSerializerMOF(ApplicationHandle applicationHandle, string format, uint flags, out SerializerHandle serializerHandle) - { - throw new NotImplementedException(); - } - } - - internal class AuthType - { - // Fields - internal static string AuthTypeBasic; - internal static string AuthTypeClientCerts; - internal static string AuthTypeCredSSP; - internal static string AuthTypeDefault; - internal static string AuthTypeDigest; - internal static string AuthTypeIssuerCert; - internal static string AuthTypeKerberos; - internal static string AuthTypeNegoNoCredentials; - internal static string AuthTypeNegoWithCredentials; - internal static string AuthTypeNone; - internal static string AuthTypeNTLM; - - // Methods - static AuthType() - { - throw new NotImplementedException(); - } - private AuthType() - { - throw new NotImplementedException(); - } - } - - internal class ClassHandle : SafeHandleZeroOrMinusOneIsInvalid - { - internal void AssertValidInternalState() - { - throw new NotImplementedException(); - } - public void Dispose() - { - throw new NotImplementedException(); - } - internal delegate void OnHandleReleasedDelegate(); - internal MiResult ReleaseHandleAsynchronously(OnHandleReleasedDelegate completionCallback) - { - throw new NotImplementedException(); - } - internal MiResult ReleaseHandleSynchronously() - { - throw new NotImplementedException(); - } - - // should be part of SafeHandleZeroOrMinusOneIsInvalid - public bool IsInvalid { get; } - } - - internal class ClassMethods - { - // Methods - private ClassMethods() - { - throw new NotImplementedException(); - } - internal static MiResult Clone(ClassHandle ClassHandleToClone, out ClassHandle clonedClassHandle) - { - throw new NotImplementedException(); - } - internal static int GetClassHashCode(ClassHandle handle) - { - throw new NotImplementedException(); - } - internal static MiResult GetClassName(ClassHandle handle, out string className) - { - throw new NotImplementedException(); - } - internal static MiResult GetClassQualifier_Index(ClassHandle handle, string name, out int index) - { - throw new NotImplementedException(); - } - internal static MiResult GetElement_GetIndex(ClassHandle handle, string name, out int index) - { - throw new NotImplementedException(); - } - internal static MiResult GetElementAt_GetFlags(ClassHandle handle, int index, out MiFlags flags) - { - throw new NotImplementedException(); - } - internal static MiResult GetElementAt_GetName(ClassHandle handle, int index, out string name) - { - throw new NotImplementedException(); - } - internal static MiResult GetElementAt_GetReferenceClass(ClassHandle handle, int index, out string referenceClass) - { - throw new NotImplementedException(); - } - internal static MiResult GetElementAt_GetType(ClassHandle handle, int index, out MiType type) - { - throw new NotImplementedException(); - } - internal static MiResult GetElementAt_GetValue(ClassHandle handle, int index, out object value) - { - throw new NotImplementedException(); - } - internal static MiResult GetElementCount(ClassHandle handle, out int count) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethod_GetIndex(ClassHandle handle, string name, out int index) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodAt_GetName(ClassHandle handle, int methodIndex, int parameterIndex, out string name) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodAt_GetReferenceClass(ClassHandle handle, int methodIndex, int parameterIndex, out string referenceClass) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodAt_GetType(ClassHandle handle, int methodIndex, int parameterIndex, out MiType type) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodCount(ClassHandle handle, out int methodCount) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodElement_GetIndex(ClassHandle handle, int methodIndex, string name, out int index) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodElementAt_GetName(ClassHandle handle, int index, out string name) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodElementAt_GetType(ClassHandle handle, int index, out MiType type) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodGetQualifierElement_GetIndex(ClassHandle handle, int methodIndex, int parameterIndex, string name, out int index) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodParameterGetQualifierElementAt_GetFlags(ClassHandle handle, int methodIndex, int parameterName, int index, out MiFlags flags) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodParameterGetQualifierElementAt_GetName(ClassHandle handle, int methodIndex, int parameterName, int index, out string name) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodParameterGetQualifierElementAt_GetType(ClassHandle handle, int methodIndex, int parameterName, int index, out MiType type) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodParameterGetQualifierElementAt_GetValue(ClassHandle handle, int methodIndex, int parameterName, int index, out object value) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodParametersCount(ClassHandle handle, int index, out int parameterCount) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodParametersGetQualifiersCount(ClassHandle handle, int index, int parameterIndex, out int parameterCount) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodQualifierCount(ClassHandle handle, int methodIndex, out int parameterCount) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodQualifierElement_GetIndex(ClassHandle handle, int methodIndex, string name, out int index) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodQualifierElementAt_GetFlags(ClassHandle handle, int methodIndex, int qualifierIndex, out MiFlags flags) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodQualifierElementAt_GetName(ClassHandle handle, int methodIndex, int qualifierIndex, out string name) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodQualifierElementAt_GetType(ClassHandle handle, int methodIndex, int qualifierIndex, out MiType type) - { - throw new NotImplementedException(); - } - internal static MiResult GetMethodQualifierElementAt_GetValue(ClassHandle handle, int methodIndex, int qualifierIndex, out object value) - { - throw new NotImplementedException(); - } - internal static MiResult GetNamespace(ClassHandle handle, out string nameSpace) - { - throw new NotImplementedException(); - } - internal static MiResult GetParentClass(ClassHandle handle, out ClassHandle superClass) - { - throw new NotImplementedException(); - } - internal static MiResult GetParentClassName(ClassHandle handle, out string className) - { - throw new NotImplementedException(); - } - internal static MiResult GetPropertyQualifier_Count(ClassHandle handle, string name, out int count) - { - throw new NotImplementedException(); - } - internal static MiResult GetPropertyQualifier_Index(ClassHandle handle, string propertyName, string name, out int index) - { - throw new NotImplementedException(); - } - internal static MiResult GetPropertyQualifierElementAt_GetFlags(ClassHandle handle, int index, string propertyName, out MiFlags flags) - { - throw new NotImplementedException(); - } - internal static MiResult GetPropertyQualifierElementAt_GetName(ClassHandle handle, int index, string propertyName, out string name) - { - throw new NotImplementedException(); - } - internal static MiResult GetPropertyQualifierElementAt_GetType(ClassHandle handle, int index, string propertyName, out MiType type) - { - throw new NotImplementedException(); - } - internal static MiResult GetPropertyQualifierElementAt_GetValue(ClassHandle handle, int index, string propertyName, out object value) - { - throw new NotImplementedException(); - } - internal static MiResult GetQualifier_Count(ClassHandle handle, out int qualifierCount) - { - throw new NotImplementedException(); - } - internal static MiResult GetQualifierElementAt_GetFlags(ClassHandle handle, int index, out MiFlags flags) - { - throw new NotImplementedException(); - } - internal static MiResult GetQualifierElementAt_GetName(ClassHandle handle, int index, out string name) - { - throw new NotImplementedException(); - } - internal static MiResult GetQualifierElementAt_GetType(ClassHandle handle, int index, out MiType type) - { - throw new NotImplementedException(); - } - internal static MiResult GetQualifierElementAt_GetValue(ClassHandle handle, int index, out object value) - { - throw new NotImplementedException(); - } - internal static MiResult GetServerName(ClassHandle handle, out string serverName) - { - throw new NotImplementedException(); - } - } - - internal class DangerousHandleAccessor : IDisposable - { - // Fields - //private bool needToCallDangerousRelease; - //private SafeHandle safeHandle; - - // Methods - internal DangerousHandleAccessor(SafeHandle safeHandle) - { - throw new NotImplementedException(); - } - [SuppressMessage("Microsoft.Reliability", "CA2001:AvoidCallingProblematicMethods", MessageId = "System.Runtime.InteropServices.SafeHandle.DangerousGetHandle", Justification = "We are calling DangerousAddRef/Release as prescribed in the docs + have to do this to call inline methods")] - internal IntPtr DangerousGetHandle() - { - throw new NotImplementedException(); - } - //public sealed override void Dispose() - public void Dispose() - { - throw new NotImplementedException(); - } - //protected virtual void Dispose([MarshalAs(UnmanagedType.U1)] bool A_0) - } - - internal class DeserializerCallbacks - { - // Fields - //private ClassObjectNeededCallbackDelegate ClassObjectNeededCallback; - //private GetIncludedFileBufferCallbackDelegate GetIncludedFileBufferCallback; - //private object ManagedDeserializerContext; - - // Methods - internal DeserializerCallbacks() - { - throw new NotImplementedException(); - } - //internal static unsafe _MI_Result ClassObjectNeededAppDomainProxy(void* context, ushort modopt(IsConst)* serverName, ushort modopt(IsConst)* namespaceName, ushort modopt(IsConst)* className, _MI_Class** requestedClassObject) - //internal static unsafe _MI_Result GetIncludedFileBufferAppDomainProxy(void* context, ushort modopt(IsConst)* fileName, byte** fileBuffer, uint* bufferLength) - //internal static unsafe void ReleaseDeserializerCallbacksProxy(DeserializerCallbacksProxy* pCallbacksProxy) - //[return: MarshalAs(UnmanagedType.U1)] - //internal unsafe bool SetMiDeserializerCallbacks(_MI_DeserializerCallbacks* pmiDeserializerCallbacks) - //private static unsafe void StoreCallbackDelegate(DeserializerCallbacksProxy* pCallbacksProxy, Delegate externalCallback, Delegate appDomainProxyCallback, DeserializerCallbackId callbackId); - - // Properties - [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "False positive from FxCop - this property is used in nativeOperationCallbacks.cpp")] - internal ClassObjectNeededCallbackDelegate ClassObjectNeededCallback { get; set; } - [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "False positive from FxCop - this property is used in nativeOperationCallbacks.cpp")] - internal GetIncludedFileBufferCallbackDelegate GetIncludedFileBufferCallback { get; set; } - [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "False positive from FxCop - this property is used in nativeOperationCallbacks.cpp and in cs/CimOperationOptions.cs")] - internal object ManagedDeserializerContext { get; set; } - - // Nested Types - //internal unsafe delegate _MI_Result ClassObjectNeededAppDomainProxyDelegate(void* context, ushort modopt(IsConst)* serverName, ushort modopt(IsConst)* namespaceName, ushort modopt(IsConst)* className, _MI_Class** requestedClassObject) - internal delegate bool ClassObjectNeededCallbackDelegate(string serverName, string namespaceName, string className, out ClassHandle classHandle); - //internal unsafe delegate _MI_Result GetIncludedFileBufferAppDomainProxyDelegate(void* context, ushort modopt(IsConst)* fileName, byte** fileBuffer, uint* bufferLength) - internal delegate bool GetIncludedFileBufferCallbackDelegate(string fileName, out byte[] fileBuffer); - } - - internal class DeserializerInternalMethods - { - // Methods - private DeserializerInternalMethods() - { - throw new NotImplementedException(); - } - internal static MiResult DeserializeClassArray(DeserializerHandle deserializerHandle, OperationOptionsHandle options, DeserializerCallbacks callback, byte[] serializedBuffer, uint offset, ClassHandle[] classObjects, string serverName, string nameSpace, out ClassHandle[] deserializedClasses, out uint inputBufferUsed, out InstanceHandle cimErrorDetails) - { - throw new NotImplementedException(); - } - internal static MiResult DeserializeInstanceArray(DeserializerHandle deserializerHandle, OperationOptionsHandle options, DeserializerCallbacks callback, byte[] serializedBuffer, uint offset, ClassHandle[] classObjects, out InstanceHandle[] deserializedInstances, out uint inputBufferUsed, out InstanceHandle cimErrorDetails) - { - throw new NotImplementedException(); - } - } - - internal class DeserializerHandle : SafeHandleZeroOrMinusOneIsInvalid - { - internal void AssertValidInternalState() - { - throw new NotImplementedException(); - } - public void Dispose() - { - throw new NotImplementedException(); - } - internal delegate void OnHandleReleasedDelegate(); - internal MiResult ReleaseHandleAsynchronously(OnHandleReleasedDelegate completionCallback) - { - throw new NotImplementedException(); - } - internal MiResult ReleaseHandleSynchronously() - { - throw new NotImplementedException(); - } - } - - internal class DeserializerMethods - { - // Methods - private DeserializerMethods() - { - throw new NotImplementedException(); - } - internal static MiResult DeserializeClass(DeserializerHandle deserializerHandle, uint flags, byte[] serializedBuffer, uint offset, ClassHandle parentClass, string serverName, string nameSpace, out ClassHandle deserializedClass, out uint inputBufferUsed, out InstanceHandle cimErrorDetails) - { - throw new NotImplementedException(); - } - internal static MiResult DeserializeInstance(DeserializerHandle deserializerHandle, uint flags, byte[] serializedBuffer, uint offset, ClassHandle[] classObjects, out InstanceHandle deserializedInstance, out uint inputBufferUsed, out InstanceHandle cimErrorDetails) - { - throw new NotImplementedException(); - } - } - - internal class DestinationOptionsHandle : SafeHandleZeroOrMinusOneIsInvalid - { - internal void AssertValidInternalState() - { - throw new NotImplementedException(); - } - public void Dispose() - { - throw new NotImplementedException(); - } - internal delegate void OnHandleReleasedDelegate(); - internal MiResult ReleaseHandleAsynchronously(OnHandleReleasedDelegate completionCallback) - { - throw new NotImplementedException(); - } - internal MiResult ReleaseHandleSynchronously() - { - throw new NotImplementedException(); - } - } - - internal class DestinationOptionsMethods - { - // Fields - internal static string packetEncoding_Default; - internal static string packetEncoding_UTF16; - internal static string packetEncoding_UTF8; - internal static string proxyType_Auto; - internal static string proxyType_IE; - internal static string proxyType_None; - internal static string proxyType_WinHTTP; - internal static string transport_Http; - internal static string transport_Https; - - // Methods - static DestinationOptionsMethods() - { - throw new NotImplementedException(); - } - private DestinationOptionsMethods() - { - throw new NotImplementedException(); - } - internal static MiResult AddDestinationCredentials(DestinationOptionsHandle destinationOptionsHandle, NativeCimCredentialHandle credentials) - { - throw new NotImplementedException(); - } - internal static MiResult AddProxyCredentials(DestinationOptionsHandle destinationOptionsHandle, NativeCimCredentialHandle credentials) - { - throw new NotImplementedException(); - } - internal static MiResult Clone(DestinationOptionsHandle destinationOptionsHandle, out DestinationOptionsHandle newDestinationOptionsHandle) - { - throw new NotImplementedException(); - } - internal static MiResult GetCertCACheck(DestinationOptionsHandle destinationOptionsHandle, out bool check) - { - throw new NotImplementedException(); - } - internal static MiResult GetCertCNCheck(DestinationOptionsHandle destinationOptionsHandle, out bool check) - { - throw new NotImplementedException(); - } - internal static MiResult GetCertRevocationCheck(DestinationOptionsHandle destinationOptionsHandle, out bool check) - { - throw new NotImplementedException(); - } - internal static MiResult GetDataLocale(DestinationOptionsHandle destinationOptionsHandle, out string locale) - { - throw new NotImplementedException(); - } - internal static MiResult GetDestinationPort(DestinationOptionsHandle destinationOptionsHandle, out uint port) - { - throw new NotImplementedException(); - } - internal static MiResult GetEncodePortInSPN(DestinationOptionsHandle destinationOptionsHandle, out bool encodePort) - { - throw new NotImplementedException(); - } - internal static MiResult GetHttpUrlPrefix(DestinationOptionsHandle destinationOptionsHandle, out string prefix) - { - throw new NotImplementedException(); - } - internal static MiResult GetImpersonationType(DestinationOptionsHandle destinationOptionsHandle, out MiImpersonationType impersonationType) - { - throw new NotImplementedException(); - } - internal static MiResult GetMaxEnvelopeSize(DestinationOptionsHandle destinationOptionsHandle, out uint sizeInKB) - { - throw new NotImplementedException(); - } - internal static MiResult GetPacketEncoding(DestinationOptionsHandle destinationOptionsHandle, out string encoding) - { - throw new NotImplementedException(); - } - internal static MiResult GetPacketIntegrity(DestinationOptionsHandle destinationOptionsHandle, out bool integrity) - { - throw new NotImplementedException(); - } - internal static MiResult GetPacketPrivacy(DestinationOptionsHandle destinationOptionsHandle, out bool privacy) - { - throw new NotImplementedException(); - } - internal static MiResult GetProxyType(DestinationOptionsHandle destinationOptionsHandle, out string proxyType) - { - throw new NotImplementedException(); - } - internal static MiResult GetTimeout(DestinationOptionsHandle destinationOptionsHandle, out TimeSpan timeout) - { - throw new NotImplementedException(); - } - internal static MiResult GetTransport(DestinationOptionsHandle destinationOptionsHandle, out string transport) - { - throw new NotImplementedException(); - } - internal static MiResult GetUILocale(DestinationOptionsHandle destinationOptionsHandle, out string locale) - { - throw new NotImplementedException(); - } - internal static MiResult SetCertCACheck(DestinationOptionsHandle destinationOptionsHandle, [MarshalAs(UnmanagedType.U1)] bool check) - { - throw new NotImplementedException(); - } - internal static MiResult SetCertCNCheck(DestinationOptionsHandle destinationOptionsHandle, [MarshalAs(UnmanagedType.U1)] bool check) - { - throw new NotImplementedException(); - } - internal static MiResult SetCertRevocationCheck(DestinationOptionsHandle destinationOptionsHandle, [MarshalAs(UnmanagedType.U1)] bool check) - { - throw new NotImplementedException(); - } - internal static MiResult SetCustomOption(DestinationOptionsHandle destinationOptionsHandle, string optionName, string optionValue) - { - throw new NotImplementedException(); - } - internal static MiResult SetCustomOption(DestinationOptionsHandle destinationOptionsHandle, string optionName, uint optionValue) - { - throw new NotImplementedException(); - } - internal static MiResult SetDataLocale(DestinationOptionsHandle destinationOptionsHandle, string locale) - { - throw new NotImplementedException(); - } - internal static MiResult SetDestinationPort(DestinationOptionsHandle destinationOptionsHandle, uint port) - { - throw new NotImplementedException(); - } - internal static MiResult SetEncodePortInSPN(DestinationOptionsHandle destinationOptionsHandle, [MarshalAs(UnmanagedType.U1)] bool encodePort) - { - throw new NotImplementedException(); - } - internal static MiResult SetHttpUrlPrefix(DestinationOptionsHandle destinationOptionsHandle, string prefix) - { - throw new NotImplementedException(); - } - internal static MiResult SetImpersonationType(DestinationOptionsHandle destinationOptionsHandle, MiImpersonationType impersonationType) - { - throw new NotImplementedException(); - } - internal static MiResult SetMaxEnvelopeSize(DestinationOptionsHandle destinationOptionsHandle, uint sizeInKB) - { - throw new NotImplementedException(); - } - internal static MiResult SetPacketEncoding(DestinationOptionsHandle destinationOptionsHandle, string encoding) - { - throw new NotImplementedException(); - } - internal static MiResult SetPacketIntegrity(DestinationOptionsHandle destinationOptionsHandle, [MarshalAs(UnmanagedType.U1)] bool integrity) - { - throw new NotImplementedException(); - } - internal static MiResult SetPacketPrivacy(DestinationOptionsHandle destinationOptionsHandle, [MarshalAs(UnmanagedType.U1)] bool privacy) - { - throw new NotImplementedException(); - } - internal static MiResult SetProxyType(DestinationOptionsHandle destinationOptionsHandle, string proxyType) - { - throw new NotImplementedException(); - } - internal static MiResult SetTimeout(DestinationOptionsHandle destinationOptionsHandle, TimeSpan timeout) - { - throw new NotImplementedException(); - } - internal static MiResult SetTransport(DestinationOptionsHandle destinationOptionsHandle, string transport) - { - throw new NotImplementedException(); - } - internal static MiResult SetUILocale(DestinationOptionsHandle destinationOptionsHandle, string locale) - { - throw new NotImplementedException(); - } - - // Nested Types - internal enum MiImpersonationType - { - Default, - None, - Identify, - Impersonate, - Delegate - } - } - - internal abstract class ExceptionSafeCallbackBase - { - // Fields - internal OperationCallbackProcessingContext callbackProcessingContext; - //private OperationCallbacks.InternalErrorCallbackDelegate internalErrorCallback; - //internal unsafe MI_OperationWrapper* pmiOperationWrapper; - - // Methods - //protected unsafe ExceptionSafeCallbackBase(void* callbackContext); - protected abstract void InvokeUserCallback(); - internal void InvokeUserCallbackAndCatchInternalErrors() - { - throw new NotImplementedException(); - } - //[return: MarshalAs(UnmanagedType.U1)] - //private bool IsInternalException(Exception e); - //private void ReportInternalError(Exception exception); - } - - internal class ExceptionSafeClassCallback : ExceptionSafeCallbackBase - { - // Fields - //private unsafe ushort modopt(IsConst)* errorString; - //private byte moreResults; - //private unsafe _MI_Class modopt(IsConst)* pmiClass; - //private unsafe _MI_Instance modopt(IsConst)* pmiErrorDetails; - //private unsafe _MI_Operation* pmiOperation; - //private _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement; - //private _MI_Result resultCode; - - // Methods - //internal unsafe ExceptionSafeClassCallback(_MI_Operation* pmiOperation, void* callbackContext, _MI_Class modopt(IsConst)* pmiClass, byte moreResults, _MI_Result resultCode, ushort modopt(IsConst)* errorString, _MI_Instance modopt(IsConst)* pmiErrorDetails, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement); - protected override void InvokeUserCallback() - { - throw new NotImplementedException(); - } - } - - internal class ExceptionSafeIndicationCallback : ExceptionSafeCallbackBase - { - // Fields - //private unsafe ushort modopt(IsConst)* bookmark; - //private unsafe ushort modopt(IsConst)* errorString; - //private unsafe ushort modopt(IsConst)* machineID; - //private byte moreResults; - //private unsafe _MI_Instance modopt(IsConst)* pmiErrorDetails; - //private unsafe _MI_Instance modopt(IsConst)* pmiInstance; - //private unsafe _MI_Operation* pmiOperation; - //private _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement; - //private _MI_Result resultCode; - - // Methods - //internal unsafe ExceptionSafeIndicationCallback(_MI_Operation* pmiOperation, void* callbackContext, _MI_Instance modopt(IsConst)* pmiInstance, ushort modopt(IsConst)* bookmark, ushort modopt(IsConst)* machineID, byte moreResults, _MI_Result resultCode, ushort modopt(IsConst)* errorString, _MI_Instance modopt(IsConst)* pmiErrorDetails, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement); - protected override void InvokeUserCallback() - { - throw new NotImplementedException(); - } - } - - internal class ExceptionSafeInstanceResultCallback : ExceptionSafeCallbackBase - { - // Fields - //private unsafe ushort modopt(IsConst)* errorString; - //private byte moreResults; - //private unsafe _MI_Instance modopt(IsConst)* pmiErrorDetails; - //private unsafe _MI_Instance modopt(IsConst)* pmiInstance; - //private unsafe _MI_Operation* pmiOperation; - //private _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement; - //private _MI_Result resultCode; - - // Methods - //internal unsafe ExceptionSafeInstanceResultCallback(_MI_Operation* pmiOperation, void* callbackContext, _MI_Instance modopt(IsConst)* pmiInstance, byte moreResults, _MI_Result resultCode, ushort modopt(IsConst)* errorString, _MI_Instance modopt(IsConst)* pmiErrorDetails, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement); - protected override void InvokeUserCallback() - { - throw new NotImplementedException(); - } - } - - internal class ExceptionSafePromptUserCallback : ExceptionSafeCallbackBase - { - // Fields - //private unsafe _MI_Operation* pmiOperation; - //private _MI_PromptType promptType; - //private _MI_Result modopt(CallConvCdecl) *(_MI_Operation*, _MI_OperationCallback_ResponseType) promptUserResult; - //private unsafe ushort modopt(IsConst)* wszMessage; - - // Methods - //internal unsafe ExceptionSafePromptUserCallback(_MI_Operation* pmiOperation, void* callbackContext, ushort modopt(IsConst)* wszMessage, _MI_PromptType promptType, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*, _MI_OperationCallback_ResponseType) promptUserResult); - protected override void InvokeUserCallback() - { - throw new NotImplementedException(); - } - } - - internal class ExceptionSafeStreamedParameterResultCallback : ExceptionSafeCallbackBase - { - // Fields - //private _MI_Type miType; - //private unsafe _MI_Operation* pmiOperation; - //private unsafe _MI_Value modopt(IsConst)* pmiParameterValue; - //private _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement; - //private unsafe ushort modopt(IsConst)* wszParameterName; - - // Methods - //internal unsafe ExceptionSafeStreamedParameterResultCallback(_MI_Operation* pmiOperation, void* callbackContext, ushort modopt(IsConst)* wszParameterName, _MI_Type miType, _MI_Value modopt(IsConst)* pmiParameterValue, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement); - protected override void InvokeUserCallback() - { - throw new NotImplementedException(); - } - } - - internal class ExceptionSafeWriteErrorCallback : ExceptionSafeCallbackBase - { - // Fields - //private unsafe _MI_Instance* pmiInstance; - //private unsafe _MI_Operation* pmiOperation; - //private _MI_Result modopt(CallConvCdecl) *(_MI_Operation*, _MI_OperationCallback_ResponseType) writeErrorResult; - - // Methods - //internal unsafe ExceptionSafeWriteErrorCallback(_MI_Operation* pmiOperation, void* callbackContext, _MI_Instance* pmiInstance, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*, _MI_OperationCallback_ResponseType) writeErrorResult); - protected override void InvokeUserCallback() - { - throw new NotImplementedException(); - } - } - - internal class ExceptionSafeWriteMessageCallback : ExceptionSafeCallbackBase - { - // Fields - //private uint channel; - //private unsafe _MI_Operation* pmiOperation; - //private unsafe ushort modopt(IsConst)* wszMessage; - - // Methods - //internal unsafe ExceptionSafeWriteMessageCallback(_MI_Operation* pmiOperation, void* callbackContext, uint channel, ushort modopt(IsConst)* wszMessage); - protected override void InvokeUserCallback() - { - throw new NotImplementedException(); - } - } - - internal class ExceptionSafeWriteProgressCallback : ExceptionSafeCallbackBase - { - // Fields - //private uint percentageComplete; - //private unsafe _MI_Operation* pmiOperation; - //private uint secondsRemaining; - //private unsafe ushort modopt(IsConst)* wszActivity; - //private unsafe ushort modopt(IsConst)* wszCurrentOperation; - //private unsafe ushort modopt(IsConst)* wszStatusDescription; - - // Methods - //internal unsafe ExceptionSafeWriteProgressCallback(_MI_Operation* pmiOperation, void* callbackContext, ushort modopt(IsConst)* wszActivity, ushort modopt(IsConst)* wszCurrentOperation, ushort modopt(IsConst)* wszStatusDescription, uint percentageComplete, uint secondsRemaining); - protected override void InvokeUserCallback() - { - throw new NotImplementedException(); - } - } - - internal class Helpers - { - // Methods - private Helpers() - { - throw new NotImplementedException(); - } - internal static IntPtr GetCurrentSecurityToken() - { - throw new NotImplementedException(); - } - internal static IntPtr StringToHGlobalUni(string s) - { - throw new NotImplementedException(); - } - internal static void ZeroFreeGlobalAllocUnicode(IntPtr s) - { - throw new NotImplementedException(); - } - } - - internal class InstanceHandle : SafeHandleZeroOrMinusOneIsInvalid - { - internal void AssertValidInternalState() - { - throw new NotImplementedException(); - } - public void Dispose() - { - throw new NotImplementedException(); - } - internal delegate void OnHandleReleasedDelegate(); - internal MiResult ReleaseHandleAsynchronously(OnHandleReleasedDelegate completionCallback) - { - throw new NotImplementedException(); - } - internal MiResult ReleaseHandleSynchronously() - { - throw new NotImplementedException(); - } - - // should be part of SafeHandleZeroOrMinusOneIsInvalid - public bool IsInvalid { get; } - } - - internal class InstanceMethods - { - // Fields - //internal static ValueType modopt(DateTime) modopt(IsBoxed) maxValidCimTimestamp; - - // Methods - static InstanceMethods() - { - throw new NotImplementedException(); - } - private InstanceMethods() - { - throw new NotImplementedException(); - } - internal static MiResult AddElement(InstanceHandle handle, string name, object value, MiType type, MiFlags flags) - { - throw new NotImplementedException(); - } - internal static MiResult ClearElementAt(InstanceHandle handle, int index) - { - throw new NotImplementedException(); - } - internal static MiResult Clone(InstanceHandle instanceHandleToClone, out InstanceHandle clonedInstanceHandle) - { - throw new NotImplementedException(); - } - //internal static unsafe object ConvertFromMiValue(MiType type, _MI_Value modopt(IsConst)* pmiValue); - //internal static unsafe void ConvertManagedObjectToMiDateTime(object managedValue, _MI_Datetime* pmiValue); - //internal static unsafe object ConvertMiDateTimeToManagedObject(_MI_Datetime modopt(IsConst)* pmiValue); - //internal static unsafe IEnumerable ConvertToMiValue(MiType type, object managedValue, _MI_Value* pmiValue); - internal static MiResult GetClass(InstanceHandle instanceHandle, out ClassHandle classHandle) - { - throw new NotImplementedException(); - } - internal static MiResult GetClassName(InstanceHandle handle, out string className) - { - throw new NotImplementedException(); - } - internal static MiResult GetElement_GetIndex(InstanceHandle handle, string name, out int index) - { - throw new NotImplementedException(); - } - internal static MiResult GetElementAt_GetFlags(InstanceHandle handle, int index, out MiFlags flags) - { - throw new NotImplementedException(); - } - internal static MiResult GetElementAt_GetName(InstanceHandle handle, int index, out string name) - { - throw new NotImplementedException(); - } - internal static MiResult GetElementAt_GetType(InstanceHandle handle, int index, out MiType type) - { - throw new NotImplementedException(); - } - internal static MiResult GetElementAt_GetValue(InstanceHandle handle, int index, out object value) - { - throw new NotImplementedException(); - } - internal static MiResult GetElementCount(InstanceHandle handle, out int elementCount) - { - throw new NotImplementedException(); - } - internal static MiResult GetNamespace(InstanceHandle handle, out string nameSpace) - { - throw new NotImplementedException(); - } - internal static MiResult GetServerName(InstanceHandle handle, out string serverName) - { - throw new NotImplementedException(); - } - //internal static unsafe void ReleaseMiValue(MiType type, _MI_Value* pmiValue, IEnumerable dangerousHandleAccessors); - internal static MiResult SetElementAt_SetNotModifiedFlag(InstanceHandle handle, int index, [MarshalAs(UnmanagedType.U1)] bool notModifiedFlag) - { - throw new NotImplementedException(); - } - internal static MiResult SetElementAt_SetValue(InstanceHandle handle, int index, object newValue) - { - throw new NotImplementedException(); - } - internal static MiResult SetNamespace(InstanceHandle handle, string nameSpace) - { - throw new NotImplementedException(); - } - internal static MiResult SetServerName(InstanceHandle handle, string serverName) - { - throw new NotImplementedException(); - } - internal static void ThrowIfMismatchedType(MiType type, object managedValue) - { - throw new NotImplementedException(); - } - } - - internal enum MiCallbackMode - { - CALLBACK_REPORT, - CALLBACK_INQUIRE, - CALLBACK_IGNORE - } - - internal enum MiCancellationReason - { - None, - Timeout, - Shutdown, - ServiceStop - } - - [Flags] - internal enum MiFlags : uint - { - ABSTRACT = 0x20000, - ADOPT = 0x80000000, - ANY = 0x7f, - ASSOCIATION = 0x10, - BORROW = 0x40000000, - CLASS = 1, - DISABLEOVERRIDE = 0x100, - ENABLEOVERRIDE = 0x80, - EXPENSIVE = 0x80000, - IN = 0x2000, - INDICATION = 0x20, - KEY = 0x1000, - METHOD = 2, - NOTMODIFIED = 0x2000000, - NULLFLAG = 0x20000000, - OUT = 0x4000, - PARAMETER = 8, - PROPERTY = 4, - READONLY = 0x200000, - REFERENCE = 0x40, - REQUIRED = 0x8000, - RESTRICTED = 0x200, - STATIC = 0x10000, - STREAM = 0x100000, - TERMINAL = 0x40000, - TOSUBCLASS = 0x400, - TRANSLATABLE = 0x800 - } - - [Flags] - internal enum MiOperationFlags : uint - { - BasicRtti = 2, - ExpensiveProperties = 0x40, - FullRtti = 4, - LocalizedQualifiers = 8, - ManualAckResults = 1, - NoRtti = 0x400, - PolymorphismDeepBasePropsOnly = 0x180, - PolymorphismShallow = 0x80, - ReportOperationStarted = 0x200, - StandardRtti = 0x800 - } - - internal enum MiPromptType - { - PROMPTTYPE_NORMAL, - PROMPTTYPE_CRITICAL - } - - internal enum MIResponseType - { - MIResponseTypeNo, - MIResponseTypeYes, - MIResponseTypeNoToAll, - MIResponseTypeYesToAll - } - - internal enum MiResult - { - ACCESS_DENIED = 2, - ALREADY_EXISTS = 11, - CLASS_HAS_CHILDREN = 8, - CLASS_HAS_INSTANCES = 9, - CONTINUATION_ON_ERROR_NOT_SUPPORTED = 0x1a, - FAILED = 1, - FILTERED_ENUMERATION_NOT_SUPPORTED = 0x19, - INVALID_CLASS = 5, - INVALID_ENUMERATION_CONTEXT = 0x15, - INVALID_NAMESPACE = 3, - INVALID_OPERATION_TIMEOUT = 0x16, - INVALID_PARAMETER = 4, - INVALID_QUERY = 15, - INVALID_SUPERCLASS = 10, - METHOD_NOT_AVAILABLE = 0x10, - METHOD_NOT_FOUND = 0x11, - NAMESPACE_NOT_EMPTY = 20, - NO_SUCH_PROPERTY = 12, - NOT_FOUND = 6, - NOT_SUPPORTED = 7, - OK = 0, - PULL_CANNOT_BE_ABANDONED = 0x18, - PULL_HAS_BEEN_ABANDONED = 0x17, - QUERY_LANGUAGE_NOT_SUPPORTED = 14, - SERVER_IS_SHUTTING_DOWN = 0x1c, - SERVER_LIMITS_EXCEEDED = 0x1b, - TYPE_MISMATCH = 13 - } - - internal enum MiSubscriptionDeliveryType - { - SubscriptionDeliveryType_Pull = 1, - SubscriptionDeliveryType_Push = 2 - } - - internal enum MiType - { - Boolean, - UInt8, - SInt8, - UInt16, - SInt16, - UInt32, - SInt32, - UInt64, - SInt64, - Real32, - Real64, - Char16, - DateTime, - String, - Reference, - Instance, - BooleanArray, - UInt8Array, - SInt8Array, - UInt16Array, - SInt16Array, - UInt32Array, - SInt32Array, - UInt64Array, - SInt64Array, - Real32Array, - Real64Array, - Char16Array, - DateTimeArray, - StringArray, - ReferenceArray, - InstanceArray - } - - internal enum MIWriteMessageChannel - { - MIWriteMessageChannelWarning, - MIWriteMessageChannelVerbose, - MIWriteMessageChannelDebug - } - - internal class NativeCimCredential - { - // Methods - private NativeCimCredential() - { - throw new NotImplementedException(); - } - internal static void CreateCimCredential(string authenticationMechanism, out NativeCimCredentialHandle credentialHandle) - { - throw new NotImplementedException(); - } - internal static void CreateCimCredential(string authenticationMechanism, string certificateThumbprint, out NativeCimCredentialHandle credentialHandle) - { - throw new NotImplementedException(); - } - internal static void CreateCimCredential(string authenticationMechanism, string domain, string userName, SecureString password, out NativeCimCredentialHandle credentialHandle) - { - throw new NotImplementedException(); - } - } - - internal class NativeCimCredentialHandle : SafeHandleZeroOrMinusOneIsInvalid - { - internal void AssertValidInternalState() - { - throw new NotImplementedException(); - } - public void Dispose() - { - throw new NotImplementedException(); - } - internal delegate void OnHandleReleasedDelegate(); - internal MiResult ReleaseHandleAsynchronously(OnHandleReleasedDelegate completionCallback) - { - throw new NotImplementedException(); - } - internal MiResult ReleaseHandleSynchronously() - { - throw new NotImplementedException(); - } - } - - internal class OperationCallbackProcessingContext - { - // Fields - //private bool inUserCode; - //private object managedOperationContext; - - // Methods - internal OperationCallbackProcessingContext(object managedOperationContext) - { - throw new NotImplementedException(); - } - - // Properties - internal bool InUserCode {[return: MarshalAs(UnmanagedType.U1)] get;[param: MarshalAs(UnmanagedType.U1)] set; } - internal object ManagedOperationContext { get; } - } - - internal class OperationCallbacks - { - // Fields - //private ClassCallbackDelegate ClassCallback; - //private IndicationResultCallbackDelegate IndicationResultCallback; - //private InstanceResultCallbackDelegate InstanceResultCallback; - //private InternalErrorCallbackDelegate InternalErrorCallback; - //private object ManagedOperationContext; - //private PromptUserCallbackDelegate PromptUserCallback; - //private StreamedParameterCallbackDelegate StreamedParameterCallback; - //private WriteErrorCallbackDelegate WriteErrorCallback; - //private WriteMessageCallbackDelegate WriteMessageCallback; - //private WriteProgressCallbackDelegate WriteProgressCallback; - //private static Action, Action> userFilteredExceptionHandler; - - // Methods - static OperationCallbacks() - { - throw new NotImplementedException(); - } - public OperationCallbacks() - { - throw new NotImplementedException(); - } - internal static void InvokeWithUserFilteredExceptionHandler(Action tryBody, Func userFilter, Action catchBody) - { - throw new NotImplementedException(); - } - //[return: MarshalAs(UnmanagedType.U1)] - //internal unsafe bool SetMiOperationCallbacks(_MI_OperationCallbacks* pmiOperationCallbacks, MI_OperationWrapper* pmiOperationWrapper); - - // Properties - [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "False positive from FxCop - this property is used in nativeOperationCallbacks.cpp")] - internal ClassCallbackDelegate ClassCallback { get; set; } - [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "False positive from FxCop - this property is used in nativeOperationCallbacks.cpp")] - internal IndicationResultCallbackDelegate IndicationResultCallback { get; set; } - [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "False positive from FxCop - this property is used in nativeOperationCallbacks.cpp")] - internal InstanceResultCallbackDelegate InstanceResultCallback { get; set; } - [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "False positive from FxCop - this property is used in nativeOperationCallbacks.cpp")] - internal InternalErrorCallbackDelegate InternalErrorCallback { get; set; } - [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "False positive from FxCop - this property is used in nativeOperationCallbacks.cpp and in cs/CimOperationOptions.cs")] - internal object ManagedOperationContext { get; set; } - [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "False positive from FxCop - this property is used in nativeOperationCallbacks.cpp")] - internal PromptUserCallbackDelegate PromptUserCallback { get; set; } - [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "False positive from FxCop - this property is used in nativeOperationCallbacks.cpp")] - internal StreamedParameterCallbackDelegate StreamedParameterCallback { get; set; } - [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "False positive from FxCop - this property is used in nativeOperationCallbacks.cpp")] - internal WriteErrorCallbackDelegate WriteErrorCallback { get; set; } - [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "False positive from FxCop - this property is used in nativeOperationCallbacks.cpp")] - internal WriteMessageCallbackDelegate WriteMessageCallback { get; set; } - [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "False positive from FxCop - this property is used in nativeOperationCallbacks.cpp")] - internal WriteProgressCallbackDelegate WriteProgressCallback { get; set; } - - // Nested Types - internal delegate void ClassCallbackDelegate(OperationCallbackProcessingContext callbackProcessingContext, OperationHandle operationHandle, ClassHandle classHandle, [MarshalAs(UnmanagedType.U1)] bool moreResults, MiResult resultCode, string errorString, InstanceHandle errorDetails); - - internal delegate void IndicationResultCallbackDelegate(OperationCallbackProcessingContext callbackProcessingContext, OperationHandle operationHandle, InstanceHandle instanceHandle, string bookmark, string machineID, [MarshalAs(UnmanagedType.U1)] bool moreResults, MiResult resultCode, string errorString, InstanceHandle errorDetails); - - internal delegate void InstanceResultCallbackDelegate(OperationCallbackProcessingContext callbackProcessingContext, OperationHandle operationHandle, InstanceHandle instanceHandle, [MarshalAs(UnmanagedType.U1)] bool moreResults, MiResult resultCode, string errorString, InstanceHandle errorDetails); - - internal delegate void InternalErrorCallbackDelegate(OperationCallbackProcessingContext callbackContextWhereInternalErrorOccurred, Exception exception); - - internal delegate void PromptUserCallbackDelegate(OperationCallbackProcessingContext callbackProcessingContext, OperationHandle operationHandle, string message, MiPromptType promptType, out MIResponseType response); - - internal delegate void StreamedParameterCallbackDelegate(OperationCallbackProcessingContext callbackProcessingContext, OperationHandle operationHandle, string parameterName, object parameterValue, MiType parameterType); - - internal delegate void WriteErrorCallbackDelegate(OperationCallbackProcessingContext callbackProcessingContext, OperationHandle operationHandle, InstanceHandle instanceHandle, out MIResponseType response); - - internal delegate void WriteMessageCallbackDelegate(OperationCallbackProcessingContext callbackProcessingContext, OperationHandle operationHandle, uint channel, string message); - - internal delegate void WriteProgressCallbackDelegate(OperationCallbackProcessingContext callbackProcessingContext, OperationHandle operationHandle, string activity, string currentOperation, string statusDescription, uint percentageComplete, uint secondsRemaining); - } - - internal class OperationCallbacksDefinitions - { - // Methods - public OperationCallbacksDefinitions() - { - throw new NotImplementedException(); - } - //internal static unsafe void ClassAppDomainProxy(_MI_Operation* pmiOperation, void* callbackContext, _MI_Class modopt(IsConst)* pmiClass, byte moreResults, _MI_Result resultCode, ushort modopt(IsConst)* errorString, _MI_Instance modopt(IsConst)* pmiErrorDetails, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement); - //internal static unsafe void IndicationAppDomainProxy(_MI_Operation* pmiOperation, void* callbackContext, _MI_Instance modopt(IsConst)* pmiInstance, ushort modopt(IsConst)* bookmark, ushort modopt(IsConst)* machineID, byte moreResults, _MI_Result resultCode, ushort modopt(IsConst)* errorString, _MI_Instance modopt(IsConst)* pmiErrorDetails, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement); - //internal static unsafe void InstanceResultAppDomainProxy(_MI_Operation* pmiOperation, void* callbackContext, _MI_Instance modopt(IsConst)* pmiInstance, byte moreResults, _MI_Result resultCode, ushort modopt(IsConst)* errorString, _MI_Instance modopt(IsConst)* pmiErrorDetails, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement); - //internal static unsafe void PromptUserAppDomainProxy(_MI_Operation* pmiOperation, void* callbackContext, ushort modopt(IsConst)* wszMessage, _MI_PromptType promptType, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*, _MI_OperationCallback_ResponseType) promptUserResult); - //internal static unsafe void StreamedParameterResultAppDomainProxy(_MI_Operation* pmiOperation, void* callbackContext, ushort modopt(IsConst)* wszParameterName, _MI_Type miType, _MI_Value modopt(IsConst)* pmiParameterValue, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement); - //internal static unsafe void WriteErrorAppDomainProxy(_MI_Operation* pmiOperation, void* callbackContext, _MI_Instance* pmiInstance, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*, _MI_OperationCallback_ResponseType) writeErrorResult); - //internal static unsafe void WriteMessageAppDomainProxy(_MI_Operation* pmiOperation, void* callbackContext, uint channel, ushort modopt(IsConst)* wszMessage); - //internal static unsafe void WriteProgressAppDomainProxy(_MI_Operation* pmiOperation, void* callbackContext, ushort modopt(IsConst)* wszActivity, ushort modopt(IsConst)* wszCurrentOperation, ushort modopt(IsConst)* wszStatusDescription, uint percentageComplete, uint secondsRemaining); - - // Nested Types - //internal unsafe delegate void ClassAppDomainProxyDelegate(_MI_Operation* pmiOperation, void* callbackContext, _MI_Class modopt(IsConst)* pmiClass, byte moreResults, _MI_Result resultCode, ushort modopt(IsConst)* errorString, _MI_Instance modopt(IsConst)* pmiErrorDetails, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement); - - //internal unsafe delegate void IndicationAppDomainProxyDelegate(_MI_Operation* pmiOperation, void* callbackContext, _MI_Instance modopt(IsConst)* pmiInstance, ushort modopt(IsConst)* bookmark, ushort modopt(IsConst)* machineID, byte moreResults, _MI_Result resultCode, ushort modopt(IsConst)* errorString, _MI_Instance modopt(IsConst)* pmiErrorDetails, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement); - - //internal unsafe delegate void InstanceResultAppDomainProxyDelegate(_MI_Operation* pmiOperation, void* callbackContext, _MI_Instance modopt(IsConst)* pmiInstance, byte moreResults, _MI_Result resultCode, ushort modopt(IsConst)* errorString, _MI_Instance modopt(IsConst)* pmiErrorDetails, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement); - - //internal unsafe delegate void PromptUserAppDomainProxyDelegate(_MI_Operation* pmiOperation, void* callbackContext, ushort modopt(IsConst)* wszMessage, _MI_PromptType promptType, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*, _MI_OperationCallback_ResponseType) promptUserResult); - - //internal unsafe delegate void StreamedParameterResultAppDomainProxyDelegate(_MI_Operation* pmiOperation, void* callbackContext, ushort modopt(IsConst)* wszParameterName, _MI_Type miType, _MI_Value modopt(IsConst)* pmiParameterValue, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*) resultAcknowledgement); - - //internal unsafe delegate void WriteErrorAppDomainProxyDelegate(_MI_Operation* pmiOperation, void* callbackContext, _MI_Instance* pmiInstance, _MI_Result modopt(CallConvCdecl) *(_MI_Operation*, _MI_OperationCallback_ResponseType) writeErrorResult); - - //internal unsafe delegate void WriteMessageAppDomainProxyDelegate(_MI_Operation* pmiOperation, void* callbackContext, uint channel, ushort modopt(IsConst)* wszMessage); - - //internal unsafe delegate void WriteProgressAppDomainProxyDelegate(_MI_Operation* pmiOperation, void* callbackContext, ushort modopt(IsConst)* wszActivity, ushort modopt(IsConst)* wszCurrentOperation, ushort modopt(IsConst)* wszStatusDescription, uint percentageComplete, uint secondsRemaining); - } - - internal class OperationHandle : SafeHandleZeroOrMinusOneIsInvalid - { - internal void AssertValidInternalState() - { - throw new NotImplementedException(); - } - public void Dispose() - { - throw new NotImplementedException(); - } - internal delegate void OnHandleReleasedDelegate(); - internal MiResult ReleaseHandleAsynchronously(OnHandleReleasedDelegate completionCallback) - { - throw new NotImplementedException(); - } - internal MiResult ReleaseHandleSynchronously() - { - throw new NotImplementedException(); - } - } - - internal class OperationMethods - { - // Methods - private OperationMethods() - { - throw new NotImplementedException(); - } - [SuppressMessage("Microsoft.Reliability", "CA2001:AvoidCallingProblematicMethods", MessageId = "System.Runtime.InteropServices.SafeHandle.DangerousGetHandle", Justification = "C# layer internally manages the lifetime of OperationHandle + have to do this to call inline methods")] - internal static MiResult Cancel(OperationHandle operationHandle, MiCancellationReason cancellationReason) - { - throw new NotImplementedException(); - } - [SuppressMessage("Microsoft.Reliability", "CA2001:AvoidCallingProblematicMethods", MessageId = "System.Runtime.InteropServices.SafeHandle.DangerousGetHandle", Justification = "C# layer internally manages the lifetime of OperationHandle + have to do this to call inline methods")] - internal static MiResult GetClass(OperationHandle operationHandle, out ClassHandle classHandle, out bool moreResults, out MiResult result, out string errorMessage, out InstanceHandle completionDetails) - { - throw new NotImplementedException(); - } - [SuppressMessage("Microsoft.Reliability", "CA2001:AvoidCallingProblematicMethods", MessageId = "System.Runtime.InteropServices.SafeHandle.DangerousGetHandle", Justification = "C# layer internally manages the lifetime of OperationHandle + have to do this to call inline methods")] - internal static MiResult GetIndication(OperationHandle operationHandle, out InstanceHandle instanceHandle, out string bookmark, out string machineID, out bool moreResults, out MiResult result, out string errorMessage, out InstanceHandle completionDetails) - { - throw new NotImplementedException(); - } - [SuppressMessage("Microsoft.Reliability", "CA2001:AvoidCallingProblematicMethods", MessageId = "System.Runtime.InteropServices.SafeHandle.DangerousGetHandle", Justification = "C# layer internally manages the lifetime of OperationHandle + have to do this to call inline methods")] - internal static MiResult GetInstance(OperationHandle operationHandle, out InstanceHandle instanceHandle, out bool moreResults, out MiResult result, out string errorMessage, out InstanceHandle completionDetails) - { - throw new NotImplementedException(); - } - } - - internal class OperationOptionsHandle : SafeHandleZeroOrMinusOneIsInvalid - { - internal void AssertValidInternalState() - { - throw new NotImplementedException(); - } - public void Dispose() - { - throw new NotImplementedException(); - } - internal delegate void OnHandleReleasedDelegate(); - internal MiResult ReleaseHandleAsynchronously(OnHandleReleasedDelegate completionCallback) - { - throw new NotImplementedException(); - } - internal MiResult ReleaseHandleSynchronously() - { - throw new NotImplementedException(); - } - } - - internal class OperationOptionsMethods - { - // Methods - private OperationOptionsMethods() - { - throw new NotImplementedException(); - } - internal static MiResult Clone(OperationOptionsHandle operationOptionsHandle, out OperationOptionsHandle newOperationOptionsHandle) - { - throw new NotImplementedException(); - } - internal static MiResult GetPromptUserModeOption(OperationOptionsHandle operationOptionsHandle, out MiCallbackMode mode) - { - throw new NotImplementedException(); - } - internal static MiResult GetResourceUri(OperationOptionsHandle operationOptionsHandle, out string resourceUri) - { - throw new NotImplementedException(); - } - internal static MiResult GetResourceUriPrefix(OperationOptionsHandle operationOptionsHandle, out string resourceUriPrefix) - { - throw new NotImplementedException(); - } - internal static MiResult GetTimeout(OperationOptionsHandle operationOptionsHandle, out TimeSpan timeout) - { - throw new NotImplementedException(); - } - internal static MiResult GetUseMachineID(OperationOptionsHandle operationOptionsHandle, out bool useMachineId) - { - throw new NotImplementedException(); - } - internal static MiResult GetWriteErrorModeOption(OperationOptionsHandle operationOptionsHandle, out MiCallbackMode mode) - { - throw new NotImplementedException(); - } - internal static MiResult SetCustomOption(OperationOptionsHandle operationOptionsHandle, string optionName, object optionValue, MiType miType, [MarshalAs(UnmanagedType.U1)] bool mustComply) - { - throw new NotImplementedException(); - } - internal static MiResult SetDisableChannelOption(OperationOptionsHandle operationOptionsHandle, uint channel) - { - throw new NotImplementedException(); - } - internal static MiResult SetEnableChannelOption(OperationOptionsHandle operationOptionsHandle, uint channel) - { - throw new NotImplementedException(); - } - internal static MiResult SetOption(OperationOptionsHandle operationOptionsHandle, string optionName, string optionValue) - { - throw new NotImplementedException(); - } - internal static MiResult SetOption(OperationOptionsHandle operationOptionsHandle, string optionName, uint optionValue) - { - throw new NotImplementedException(); - } - internal static MiResult SetPromptUserModeOption(OperationOptionsHandle operationOptionsHandle, MiCallbackMode mode) - { - throw new NotImplementedException(); - } - internal static MiResult SetPromptUserRegularMode(OperationOptionsHandle operationOptionsHandle, MiCallbackMode mode, [MarshalAs(UnmanagedType.U1)] bool ackValue) - { - throw new NotImplementedException(); - } - internal static MiResult SetResourceUri(OperationOptionsHandle operationOptionsHandle, string resourceUri) - { - throw new NotImplementedException(); - } - internal static MiResult SetResourceUriPrefix(OperationOptionsHandle operationOptionsHandle, string resourceUriPrefix) - { - throw new NotImplementedException(); - } - internal static MiResult SetTimeout(OperationOptionsHandle operationOptionsHandle, TimeSpan timeout) - { - throw new NotImplementedException(); - } - internal static MiResult SetUseMachineID(OperationOptionsHandle operationOptionsHandle, [MarshalAs(UnmanagedType.U1)] bool useMachineId) - { - throw new NotImplementedException(); - } - internal static MiResult SetWriteErrorModeOption(OperationOptionsHandle operationOptionsHandle, MiCallbackMode mode) - { - throw new NotImplementedException(); - } - } - - internal class SerializerHandle : SafeHandleZeroOrMinusOneIsInvalid - { - internal void AssertValidInternalState() - { - throw new NotImplementedException(); - } - public void Dispose() - { - throw new NotImplementedException(); - } - internal delegate void OnHandleReleasedDelegate(); - internal MiResult ReleaseHandleAsynchronously(OnHandleReleasedDelegate completionCallback) - { - throw new NotImplementedException(); - } - internal MiResult ReleaseHandleSynchronously() - { - throw new NotImplementedException(); - } - } - - internal class SerializerMethods - { - // Methods - private SerializerMethods() - { - throw new NotImplementedException(); - } - internal static MiResult SerializeClass(SerializerHandle serializerHandle, uint flags, ClassHandle instanceHandle, byte[] outputBuffer, uint offset, out uint outputBufferUsed) - { - throw new NotImplementedException(); - } - internal static MiResult SerializeInstance(SerializerHandle serializerHandle, uint flags, InstanceHandle instanceHandle, byte[] outputBuffer, uint offset, out uint outputBufferUsed) - { - throw new NotImplementedException(); - } - } - - internal class SessionHandleCallbackDefinitions - { - // Methods - public SessionHandleCallbackDefinitions() - { - throw new NotImplementedException(); - } - //internal static unsafe void SessionHandle_ReleaseHandle_CallbackWrapper_Invoke_Managed(_SessionHandle_ReleaseHandle_CallbackWrapper* pCallbackWrapper); - //internal static unsafe void SessionHandle_ReleaseHandle_CallbackWrapper_Release_Managed(_SessionHandle_ReleaseHandle_CallbackWrapper* pCallbackWrapper); - - // Nested Types - //internal unsafe delegate void SessionHandle_ReleaseHandle_CallbackWrapper_Invoke_Managed_Delegate(_SessionHandle_ReleaseHandle_CallbackWrapper* pCallbackWrapper); - - //internal unsafe delegate void SessionHandle_ReleaseHandle_CallbackWrapper_Release_Managed_Delegate(_SessionHandle_ReleaseHandle_CallbackWrapper* pCallbackWrapper); - } - - internal class SessionHandle : SafeHandleZeroOrMinusOneIsInvalid - { - internal void AssertValidInternalState() - { - throw new NotImplementedException(); - } - public void Dispose() - { - throw new NotImplementedException(); - } - internal delegate void OnHandleReleasedDelegate(); - internal MiResult ReleaseHandleAsynchronously(OnHandleReleasedDelegate completionCallback) - { - throw new NotImplementedException(); - } - internal MiResult ReleaseHandleSynchronously() - { - throw new NotImplementedException(); - } - } - - internal class SessionMethods - { - // Methods - private SessionMethods() - { - throw new NotImplementedException(); - } - internal static void AssociatorInstances(SessionHandle sessionHandle, MiOperationFlags operationFlags, OperationOptionsHandle operationOptionsHandle, string namespaceName, InstanceHandle sourceInstance, string assocClass, string resultClass, string sourceRole, string resultRole, [MarshalAs(UnmanagedType.U1)] bool keysOnly, OperationCallbacks operationCallbacks, out OperationHandle operationHandle) - { - throw new NotImplementedException(); - } - internal static void CreateInstance(SessionHandle sessionHandle, MiOperationFlags operationFlags, OperationOptionsHandle operationOptionsHandle, string namespaceName, InstanceHandle instanceHandle, OperationCallbacks operationCallbacks, out OperationHandle operationHandle) - { - throw new NotImplementedException(); - } - internal static void DeleteInstance(SessionHandle sessionHandle, MiOperationFlags operationFlags, OperationOptionsHandle operationOptionsHandle, string namespaceName, InstanceHandle instanceHandle, OperationCallbacks operationCallbacks, out OperationHandle operationHandle) - { - throw new NotImplementedException(); - } - internal static void EnumerateClasses(SessionHandle sessionHandle, MiOperationFlags operationFlags, OperationOptionsHandle operationOptionsHandle, string namespaceName, string className, [MarshalAs(UnmanagedType.U1)] bool classNamesOnly, OperationCallbacks operationCallbacks, out OperationHandle operationHandle) - { - throw new NotImplementedException(); - } - internal static void EnumerateInstances(SessionHandle sessionHandle, MiOperationFlags operationFlags, OperationOptionsHandle operationOptionsHandle, string namespaceName, string className, [MarshalAs(UnmanagedType.U1)] bool keysOnly, OperationCallbacks operationCallbacks, out OperationHandle operationHandle) - { - throw new NotImplementedException(); - } - internal static void GetClass(SessionHandle sessionHandle, MiOperationFlags operationFlags, OperationOptionsHandle operationOptionsHandle, string namespaceName, string className, OperationCallbacks operationCallbacks, out OperationHandle operationHandle) - { - throw new NotImplementedException(); - } - internal static void GetInstance(SessionHandle sessionHandle, MiOperationFlags operationFlags, OperationOptionsHandle operationOptionsHandle, string namespaceName, InstanceHandle instanceHandle, OperationCallbacks operationCallbacks, out OperationHandle operationHandle) - { - throw new NotImplementedException(); - } - internal static void Invoke(SessionHandle sessionHandle, MiOperationFlags operationFlags, OperationOptionsHandle operationOptionsHandle, string namespaceName, string className, string methodName, InstanceHandle instanceHandleForTargetOfInvocation, InstanceHandle instanceHandleForMethodParameters, OperationCallbacks operationCallbacks, out OperationHandle operationHandle) - { - throw new NotImplementedException(); - } - internal static void ModifyInstance(SessionHandle sessionHandle, MiOperationFlags operationFlags, OperationOptionsHandle operationOptionsHandle, string namespaceName, InstanceHandle instanceHandle, OperationCallbacks operationCallbacks, out OperationHandle operationHandle) - { - throw new NotImplementedException(); - } - [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "keysOnly")] - internal static void QueryInstances(SessionHandle sessionHandle, MiOperationFlags operationFlags, OperationOptionsHandle operationOptionsHandle, string namespaceName, string queryDialect, string queryExpression, [MarshalAs(UnmanagedType.U1)] bool keysOnly, OperationCallbacks operationCallbacks, out OperationHandle operationHandle) - { - throw new NotImplementedException(); - } - internal static void ReferenceInstances(SessionHandle sessionHandle, MiOperationFlags operationFlags, OperationOptionsHandle operationOptionsHandle, string namespaceName, InstanceHandle sourceInstance, string associationClassName, string sourceRole, [MarshalAs(UnmanagedType.U1)] bool keysOnly, OperationCallbacks operationCallbacks, out OperationHandle operationHandle) - { - throw new NotImplementedException(); - } - internal static void Subscribe(SessionHandle sessionHandle, MiOperationFlags operationFlags, OperationOptionsHandle operationOptionsHandle, string namespaceName, string queryDialect, string queryExpression, SubscriptionDeliveryOptionsHandle subscriptionDeliveryOptionsHandle, OperationCallbacks operationCallbacks, out OperationHandle operationHandle) - { - throw new NotImplementedException(); - } - internal static void TestConnection(SessionHandle sessionHandle, MiOperationFlags operationFlags, OperationCallbacks operationCallbacks, out OperationHandle operationHandle) - { - throw new NotImplementedException(); - } - } - - internal class SubscriptionDeliveryOptionsHandle : SafeHandleZeroOrMinusOneIsInvalid - { - internal void AssertValidInternalState() - { - throw new NotImplementedException(); - } - public void Dispose() - { - throw new NotImplementedException(); - } - internal delegate void OnHandleReleasedDelegate(); - internal MiResult ReleaseHandleAsynchronously(OnHandleReleasedDelegate completionCallback) - { - throw new NotImplementedException(); - } - internal MiResult ReleaseHandleSynchronously() - { - throw new NotImplementedException(); - } - } - - internal class SubscriptionDeliveryOptionsMethods - { - // Methods - private SubscriptionDeliveryOptionsMethods() - { - throw new NotImplementedException(); - } - internal static MiResult AddCredentials(SubscriptionDeliveryOptionsHandle OptionsHandle, string optionName, NativeCimCredentialHandle credentials, uint flags) - { - throw new NotImplementedException(); - } - internal static MiResult Clone(SubscriptionDeliveryOptionsHandle subscriptionDeliveryOptionsHandle, out SubscriptionDeliveryOptionsHandle newSubscriptionDeliveryOptionsHandle) - { - throw new NotImplementedException(); - } - internal static MiResult SetDateTime(SubscriptionDeliveryOptionsHandle OptionsHandle, string optionName, object value, uint flags) - { - throw new NotImplementedException(); - } - //internal static MiResult SetInterval(SubscriptionDeliveryOptionsHandle OptionsHandle, string optionName, ValueType modopt(TimeSpan) modopt(IsBoxed) value, uint flags) - internal static MiResult SetInterval(SubscriptionDeliveryOptionsHandle OptionsHandle, string optionName, ValueType value, uint flags) - { - throw new NotImplementedException(); - } - internal static MiResult SetNumber(SubscriptionDeliveryOptionsHandle OptionsHandle, string optionName, uint value, uint flags) - { - throw new NotImplementedException(); - } - internal static MiResult SetString(SubscriptionDeliveryOptionsHandle OptionsHandle, string optionName, string value, uint flags) - { - throw new NotImplementedException(); - } - } - -} diff --git a/src/Microsoft.Management.Infrastructure.Native/project.json b/src/Microsoft.Management.Infrastructure.Native/project.json deleted file mode 100644 index 390213c6f..000000000 --- a/src/Microsoft.Management.Infrastructure.Native/project.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "Microsoft.Management.Infrastructure.Native", - "version": "1.0.0-*", - "description": "Stub to satisfy PowerShell compilation", - "authors": [ "garretts", "andschwa" ], - - "frameworks": { - "netstandard1.5": { - "imports": [ "dnxcore50" ], - "compilationOptions": { - "warningsAsErrors": true - }, - "dependencies": { - "System.Security.SecureString": "1.0.0-*" - } - }, - "net451": { - } - } -} diff --git a/src/Microsoft.Management.Infrastructure/project.json b/src/Microsoft.Management.Infrastructure/project.json index 867a9f8e9..c30907ee6 100644 --- a/src/Microsoft.Management.Infrastructure/project.json +++ b/src/Microsoft.Management.Infrastructure/project.json @@ -8,7 +8,7 @@ }, "dependencies": { - "Microsoft.Management.Infrastructure.Native": "1.0.0-*" + "Microsoft.Management.Infrastructure.Native": "1.0.0-rc3" }, "frameworks": { From 585eefc7a03810c896c36eddf991b172629374ce Mon Sep 17 00:00:00 2001 From: dantraMSFT Date: Fri, 22 Apr 2016 09:39:59 -0700 Subject: [PATCH 3/6] Update PS build script to set env:NUGET_PACKAGES to support custom package installation directory. --- PowerShellGitHubDev.psm1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PowerShellGitHubDev.psm1 b/PowerShellGitHubDev.psm1 index 43d3aa37d..ceec9d21f 100644 --- a/PowerShellGitHubDev.psm1 +++ b/PowerShellGitHubDev.psm1 @@ -66,6 +66,11 @@ function Start-PSBuild { } } + # use custom package store - this value is also defined in nuget.config under config/repositoryPath + # dotnet restore uses this value as the target for installing the assemblies for referenced nuget packages. + # dotnet build does not currently consume the config value but will consume env:NUGET_PACKAGES to resolve these dependencies + $env:NUGET_PACKAGES="$PSScriptRoot\Packages" + # verify we have all tools in place to do the build $precheck = precheck 'dotnet' "Build dependency 'dotnet' not found in PATH! See: https://dotnet.github.io/getting-started/" if ($FullCLR) { From ee146e0153974b77f5484358ade4dc69c26d1ca0 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Wed, 4 May 2016 11:46:21 -0700 Subject: [PATCH 4/6] Bump src/windows-build submodule With MMI package. --- src/windows-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows-build b/src/windows-build index 19c170b36..674541f74 160000 --- a/src/windows-build +++ b/src/windows-build @@ -1 +1 @@ -Subproject commit 19c170b36cb1b47d979ed1f9cd703c0844bfc270 +Subproject commit 674541f7444de5be5f8c63e3a2ef2d98739c1943 From 8777de5c8d065d663c86ed4fbd42164284a7b551 Mon Sep 17 00:00:00 2001 From: dantraMSFT Date: Wed, 4 May 2016 13:33:59 -0700 Subject: [PATCH 5/6] Change NUGET_PACKAGES env setting to be conditioned on IsWindows --- PowerShellGitHubDev.psm1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PowerShellGitHubDev.psm1 b/PowerShellGitHubDev.psm1 index ceec9d21f..3dde4e746 100644 --- a/PowerShellGitHubDev.psm1 +++ b/PowerShellGitHubDev.psm1 @@ -66,10 +66,12 @@ function Start-PSBuild { } } - # use custom package store - this value is also defined in nuget.config under config/repositoryPath - # dotnet restore uses this value as the target for installing the assemblies for referenced nuget packages. - # dotnet build does not currently consume the config value but will consume env:NUGET_PACKAGES to resolve these dependencies - $env:NUGET_PACKAGES="$PSScriptRoot\Packages" + if ($IsWindows) { + # use custom package store - this value is also defined in nuget.config under config/repositoryPath + # dotnet restore uses this value as the target for installing the assemblies for referenced nuget packages. + # dotnet build does not currently consume the config value but will consume env:NUGET_PACKAGES to resolve these dependencies + $env:NUGET_PACKAGES="$PSScriptRoot\Packages" + } # verify we have all tools in place to do the build $precheck = precheck 'dotnet' "Build dependency 'dotnet' not found in PATH! See: https://dotnet.github.io/getting-started/" From 31d48b39dd12e9d50a99fb30528a0dd5afb3890d Mon Sep 17 00:00:00 2001 From: dantraMSFT Date: Thu, 5 May 2016 11:57:09 -0700 Subject: [PATCH 6/6] remove dead code --- .../AssemblyInfo.cs | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/Microsoft.Management.Infrastructure.Native/AssemblyInfo.cs diff --git a/src/Microsoft.Management.Infrastructure.Native/AssemblyInfo.cs b/src/Microsoft.Management.Infrastructure.Native/AssemblyInfo.cs deleted file mode 100644 index 4b260ebd7..000000000 --- a/src/Microsoft.Management.Infrastructure.Native/AssemblyInfo.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System.Runtime.CompilerServices; -using System.Reflection; - -#if _CORECLR -[assembly:InternalsVisibleTo("Microsoft.Management.Infrastructure")] -[assembly:InternalsVisibleTo("Microsoft.Windows.DSC.CoreConfProviders")] -#else -[assembly:System.Runtime.CompilerServices.InternalsVisibleTo("Microsoft.Windows.DSC.CoreConfProviders,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] -[assembly:System.Runtime.CompilerServices.InternalsVisibleTo("Microsoft.Management.Infrastructure,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] -[assembly:AssemblyKeyFileAttribute(@"..\signing\visualstudiopublic.snk")] -[assembly:System.Reflection.AssemblyDelaySign(true)] -#endif -