// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#region Using directives
using System;
using System.Management.Automation;
using System.Globalization;
#endregion
namespace Microsoft.Management.Infrastructure.CimCmdlets
{
#region AsyncResultType
///
///
/// Async result type
///
///
public enum AsyncResultType
{
Result,
Exception,
Completion
}
#endregion
#region CimResultContext
///
/// Cim Result Context.
///
internal class CimResultContext
{
///
/// Constructor.
///
///
internal CimResultContext(object ErrorSource)
{
this.errorSource = ErrorSource;
}
///
/// ErrorSource property.
///
internal object ErrorSource
{
get
{
return this.errorSource;
}
}
private object errorSource;
}
#endregion
#region AsyncResultEventArgsBase
///
///
/// Base class of async result event argument
///
///
internal abstract class AsyncResultEventArgsBase : EventArgs
{
///
/// Constructor.
///
///
///
///
public AsyncResultEventArgsBase(
CimSession session,
IObservable