/// <summary> /// The state is starting to change /// </summary> /// <param name="oldState">Old state</param> /// <param name="newState">New state</param> public virtual void OnChangingState(DDM_INSTANCE_STATE oldState, DDM_INSTANCE_STATE newState) { }
/// <summary> /// The state has changed /// </summary> /// <param name="newState">New state</param> public virtual void OnChangedState(DDM_INSTANCE_STATE newState) { }
void IDataDistributionMastershipCallbackLow.ChangedState(IntPtr IDataDistribution_nativePtr, DDM_INSTANCE_STATE newState) { OnChangedState(newState); ChangedStateEvent?.Invoke(this, new ChangedStateEventArgs(newState)); }
/// <summary> /// Called the first time there is state change /// </summary> /// <param name="newState">New state</param> public virtual void OnFirstStateChange(DDM_INSTANCE_STATE newState) { }
internal ChangingStateEventArgs(DDM_INSTANCE_STATE oldState, DDM_INSTANCE_STATE newState) { ActualState = oldState; FutureState = newState; }
internal ChangedStateEventArgs(DDM_INSTANCE_STATE state) { State = state; }
internal FirstStateChangeEventArgs(DDM_INSTANCE_STATE state) { State = state; }
internal StateChangeEventArgs(DDM_INSTANCE_STATE newState, DDM_INSTANCE_STATE oldState) { NewState = newState; OldState = oldState; }
void ISmartDataDistributionMastership.ChangeState(Int64 instanceId, DDM_INSTANCE_STATE newState) { DataDistributionManagerInvokeWrapper.DataDistributionEnv.GetDelegate <IDataDistributionMastershipCommon_ChangeState>().Invoke(IDataDistribution_ptr, instanceId, newState); }
void dataDistributionChangedState(IntPtr opaque, DDM_INSTANCE_STATE newState) { IDataDistributionMastershipCallbackLow_cbs.ChangedState(opaque, newState); }
///// <summary> ///// Converts enum in string ///// </summary> ///// <param name="level"><see cref="DDM_UNDERLYING_ERROR_CONDITION"/></param> ///// <returns>Numeric string representation</returns> //public static string ToIntString(this DDM_UNDERLYING_ERROR_CONDITION level) //{ // return ToString((int)level); //} /// <summary> /// Converts enum in string /// </summary> /// <param name="level"><see cref="DDM_INSTANCE_STATE"/></param> /// <returns>Numeric string representation</returns> public static string ToIntString(this DDM_INSTANCE_STATE level) { return(ToString((int)level)); }