* ChannelFactory.cs : some code comment.
* ClientBase.cs : remove some todos.
* ClientRuntimeChannel.cs : hack some session properties.
svn path=/trunk/mcs/; revision=124168
+2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
+
+ * ChannelFactory.cs : some code comment.
+ * ClientBase.cs : remove some todos.
+ * ClientRuntimeChannel.cs : hack some session properties.
+
2009-01-19 Atsushi Enomoto <atsushi@ximian.com>
* ClientBase.cs : implement InvokeAsync(). Not sure if it works yet.
[MonoTODO]
protected virtual IChannelFactory CreateFactory ()
{
+ // FIXME:
+ // This should be implemented to return IChannelFactory<IRequestChannel> etc.
+ // ClientRuntimeChannel should not implement channel
+ // creation by itself but should delegate it to this.
throw new NotImplementedException ();
}
#region IClientChannel
- [MonoTODO]
public bool AllowInitializationUI {
get { return client.InnerChannel.AllowInitializationUI; }
set { client.InnerChannel.AllowInitializationUI = value; }
}
- [MonoTODO]
public bool DidInteractiveInitialization {
get { return client.InnerChannel.DidInteractiveInitialization; }
}
get { return client.InnerChannel.Via; }
}
- [MonoTODO]
public IAsyncResult BeginDisplayInitializationUI (
AsyncCallback callback, object state)
{
return client.InnerChannel.BeginDisplayInitializationUI (callback, state);
}
- [MonoTODO]
public void EndDisplayInitializationUI (
IAsyncResult result)
{
client.InnerChannel.EndDisplayInitializationUI (result);
}
- [MonoTODO]
public void DisplayInitializationUI ()
{
client.InnerChannel.DisplayInitializationUI ();
[MonoTODO]
public IInputSession InputSession {
- get { throw new NotImplementedException (); }
+ get {
+ ISessionChannel<IInputSession> ch = request_channel as ISessionChannel<IInputSession>;
+ ch = ch ?? output_channel as ISessionChannel<IInputSession>;
+ return ch != null ? ch.Session : null;
+ }
}
[MonoTODO]
[MonoTODO]
public IOutputSession OutputSession {
- get { throw new NotImplementedException (); }
+ get {
+ ISessionChannel<IOutputSession> ch = request_channel as ISessionChannel<IOutputSession>;
+ ch = ch ?? output_channel as ISessionChannel<IOutputSession>;
+ return ch != null ? ch.Session : null;
+ }
}
[MonoTODO]