Пример #1
0
 public MamaFtMemberCS()
 {
     myState = mamaFtState.MAMA_FT_STATE_UNKNOWN;
     myTransport = null;
     myWeight = 50;
     myGroup = null;
 }
Пример #2
0
        public void onFtStateChange(
			MamaFtMember member,
			string groupName,
			mamaFtState state,
			object closure)
        {
            myState = state;
            printState ("FT Notification");
        }
Пример #3
0
			internal void OnFtStateChange(
				IntPtr ftMember,
				string groupName,
				mamaFtState state,
				IntPtr closure)
			{
				if (mCallback != null)
				{
					mCallback.onFtStateChange(mTarget, groupName, state, mClosure);
				}
			}
Пример #4
0
			public static extern IntPtr mamaFtStateToString (mamaFtState state);
Пример #5
0
		/// <summary>
		/// Convert a fault tolerant state to a string
		/// </summary>
		public static string mamaFtStateToString(mamaFtState state)
		{
			return Marshal.PtrToStringAnsi(NativeMethods.mamaFtStateToString(state));
		}