public static void Assert(RPC_STATUS errorsCode) { if (errorsCode != RPC_STATUS.RPC_S_OK) { RpcException ex = new RpcException(errorsCode); RpcTrace.Error("RPC_STATUS.{0} - {1}", errorsCode, ex.Message); throw ex; } }