@@ -70,24 +70,11 @@ public Session(JsonRpcClient client)
7070 JsonRpcClient = client ;
7171 }
7272
73- [ Obsolete ( "Use Session(string url) { Timeout = ... }; instead." ) ]
74- public Session ( int timeout , string url )
75- : this ( new JsonRpcClient ( url ) )
76- {
77- JsonRpcClient . Timeout = timeout ;
78- }
79-
8073 public Session ( string url ) :
8174 this ( new JsonRpcClient ( url ) )
8275 {
8376 }
8477
85- [ Obsolete ( "Use Session(string host, int port) { Timeout = ... }; instead." ) ]
86- public Session ( int timeout , string host , int port )
87- : this ( timeout , GetUrl ( host , port ) )
88- {
89- }
90-
9178 public Session ( string host , int port )
9279 : this ( GetUrl ( host , port ) )
9380 {
@@ -100,23 +87,6 @@ public Session(string url, string opaqueRef)
10087 SetupSessionDetails ( ) ;
10188 }
10289
103- /// <summary>
104- /// Create a new Session instance, using the given instance and timeout. The connection details and Xen-API session handle will be
105- /// copied from the given instance, but a new connection will be created. Use this if you want a duplicate connection to a host,
106- /// for example when you need to cancel an operation that is blocking the primary connection.
107- /// </summary>
108- /// <param name="session"></param>
109- /// <param name="timeout"></param>
110- [ Obsolete ( "Use Session(Session session) { Timeout = ... }; instead." ) ]
111- public Session ( Session session , int timeout )
112- : this ( session )
113- {
114- if ( JsonRpcClient != null )
115- {
116- JsonRpcClient . Timeout = timeout ;
117- }
118- }
119-
12090 /// <summary>
12191 /// Create a new Session instance, using the given instance. The connection details
12292 /// and Xen-API session handle will be copied from the given instance, but a new
0 commit comments