@@ -77,29 +77,33 @@ private IEnumerator CreateService()
77
77
yield return null ;
78
78
79
79
service = new AssistantService ( versionDate , authenticator ) ;
80
+ if ( ! string . IsNullOrEmpty ( serviceUrl ) )
81
+ {
82
+ service . SetServiceUrl ( serviceUrl ) ;
83
+ }
80
84
81
85
Runnable . Run ( Examples ( ) ) ;
82
86
}
83
87
84
88
private IEnumerator Examples ( )
85
89
{
86
- Log . Debug ( "ExampleAssistantV2.RunTest ()" , "Attempting to CreateSession" ) ;
90
+ Log . Debug ( "ExampleAssistantV2.RunExample ()" , "Attempting to CreateSession" ) ;
87
91
service . CreateSession ( OnCreateSession , assistantId ) ;
88
92
89
93
while ( ! createSessionTested )
90
94
{
91
95
yield return null ;
92
96
}
93
97
94
- Log . Debug ( "ExampleAssistantV2.RunTest ()" , "Attempting to Message" ) ;
98
+ Log . Debug ( "ExampleAssistantV2.RunExample ()" , "Attempting to Message" ) ;
95
99
service . Message ( OnMessage0 , assistantId , sessionId ) ;
96
100
97
101
while ( ! messageTested0 )
98
102
{
99
103
yield return null ;
100
104
}
101
105
102
- Log . Debug ( "ExampleAssistantV2.RunTest ()" , "Are you open on Christmas?" ) ;
106
+ Log . Debug ( "ExampleAssistantV2.RunExample ()" , "Are you open on Christmas?" ) ;
103
107
104
108
var input1 = new MessageInput ( )
105
109
{
@@ -117,7 +121,7 @@ private IEnumerator Examples()
117
121
yield return null ;
118
122
}
119
123
120
- Log . Debug ( "ExampleAssistantV2.RunTest ()" , "What are your hours?" ) ;
124
+ Log . Debug ( "ExampleAssistantV2.RunExample ()" , "What are your hours?" ) ;
121
125
122
126
var input2 = new MessageInput ( )
123
127
{
@@ -135,7 +139,7 @@ private IEnumerator Examples()
135
139
yield return null ;
136
140
}
137
141
138
- Log . Debug ( "ExampleAssistantV2.RunTest ()" , "I'd like to make an appointment for 12pm." ) ;
142
+ Log . Debug ( "ExampleAssistantV2.RunExample ()" , "I'd like to make an appointment for 12pm." ) ;
139
143
140
144
var input3 = new MessageInput ( )
141
145
{
@@ -153,7 +157,7 @@ private IEnumerator Examples()
153
157
yield return null ;
154
158
}
155
159
156
- Log . Debug ( "ExampleAssistantV2.RunTest ()" , "On Friday please." ) ;
160
+ Log . Debug ( "ExampleAssistantV2.RunExample ()" , "On Friday please." ) ;
157
161
158
162
//Dictionary<string, string> userDefinedDictionary = new Dictionary<string, string>();
159
163
//userDefinedDictionary.Add("name", "Watson");
@@ -197,7 +201,7 @@ private IEnumerator Examples()
197
201
yield return null ;
198
202
}
199
203
200
- Log . Debug ( "ExampleAssistantV2.RunTest ()" , "Attempting to delete session" ) ;
204
+ Log . Debug ( "ExampleAssistantV2.RunExample ()" , "Attempting to delete session" ) ;
201
205
service . DeleteSession ( OnDeleteSession , assistantId , sessionId ) ;
202
206
203
207
while ( ! deleteSessionTested )
0 commit comments