Skip to content

Moved BFHtppClient and ChannelServiceHandler #500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions libraries/botbuilder-core/botbuilder/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
from .bot_state_set import BotStateSet
from .bot_telemetry_client import BotTelemetryClient, Severity
from .card_factory import CardFactory
from .channel_service_handler import BotActionNotImplementedError, ChannelServiceHandler
from .conversation_state import ConversationState
from .intent_score import IntentScore
from .invoke_response import InvokeResponse
from .bot_framework_http_client import BotFrameworkHttpClient
from .memory_storage import MemoryStorage
from .memory_transcript_store import MemoryTranscriptStore
from .message_factory import MessageFactory
Expand All @@ -44,6 +46,7 @@
"AnonymousReceiveMiddleware",
"AutoSaveStateMiddleware",
"Bot",
"BotActionNotImplementedError",
"BotAdapter",
"BotAssert",
"BotFrameworkAdapter",
Expand All @@ -53,10 +56,12 @@
"BotTelemetryClient",
"calculate_change_hash",
"CardFactory",
"ChannelServiceHandler",
"ConversationState",
"conversation_reference_extension",
"IntentScore",
"InvokeResponse",
"BotFrameworkHttpClient",
"MemoryStorage",
"MemoryTranscriptStore",
"MessageFactory",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from logging import Logger
import aiohttp

from botbuilder.core import InvokeResponse
from botbuilder.schema import Activity
from botframework.connector.auth import (
ChannelProvider,
Expand All @@ -15,6 +14,8 @@
MicrosoftAppCredentials,
)

from . import InvokeResponse


class BotFrameworkHttpClient:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@
# --------------------------------------------------------------------------

from .aiohttp_channel_service import aiohttp_channel_service_routes
from .bot_framework_http_client import BotFrameworkHttpClient
from .channel_service_handler import BotActionNotImplementedError, ChannelServiceHandler
from .aiohttp_channel_service_exception_middleware import aiohttp_error_middleware

__all__ = [
"aiohttp_channel_service_routes",
"BotFrameworkHttpClient",
"BotActionNotImplementedError",
"ChannelServiceHandler",
"aiohttp_error_middleware",
]
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Transcript,
)

from .channel_service_handler import ChannelServiceHandler
from botbuilder.core import ChannelServiceHandler


async def deserialize_from_body(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
HTTPInternalServerError,
)

from .channel_service_handler import BotActionNotImplementedError
from botbuilder.core import BotActionNotImplementedError


@middleware
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

from uuid import uuid4

from botbuilder.core.integration import ChannelServiceHandler
from botbuilder.core import Bot, BotAdapter, TurnContext
from botbuilder.core import Bot, BotAdapter, ChannelServiceHandler, TurnContext
from botbuilder.schema import (
Activity,
ActivityTypes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
from aiohttp.web import Request, Response
from botbuilder.core import (
BotFrameworkAdapterSettings,
BotFrameworkHttpClient,
ConversationState,
MemoryStorage,
TurnContext,
BotFrameworkAdapter,
)
from botbuilder.core.integration import (
BotFrameworkHttpClient,
aiohttp_channel_service_routes,
aiohttp_error_middleware,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

from botbuilder.core import (
ActivityHandler,
BotFrameworkHttpClient,
ConversationState,
MessageFactory,
TurnContext,
)
from botbuilder.core.integration import BotFrameworkHttpClient
from botbuilder.core.skills import SkillConversationIdFactory

from botbuilder.schema import ActivityTypes, ChannelAccount
Expand Down
3 changes: 2 additions & 1 deletion samples/experimental/test-protocol/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from aiohttp.web import Request, Response

from botframework.connector.auth import AuthenticationConfiguration, SimpleCredentialProvider
from botbuilder.core.integration import BotFrameworkHttpClient, aiohttp_channel_service_routes
from botbuilder.core import BotFrameworkHttpClient
from botbuilder.core.integration import aiohttp_channel_service_routes
from botbuilder.schema import Activity

from config import DefaultConfig
Expand Down
2 changes: 1 addition & 1 deletion samples/experimental/test-protocol/routing_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from typing import List

from botbuilder.core.integration import ChannelServiceHandler
from botbuilder.core import ChannelServiceHandler
from botbuilder.schema import (
Activity,
ChannelAccount,
Expand Down