Esempio n. 1
0
 public MoxiWorksClient(IContextClient context = null)
 {
     if (context != null)
     {
         ClientContext = context;
     }
 }
Esempio n. 2
0
        private Task Negotiate(IContextClient client)
        {
            Client = client ?? throw new ArgumentNullException("client");

            return(Client.Negotiate(this).ContinueWith(r =>
            {
                ConnectionID = r.Result.ConnectionID;
                ConnectionToken = r.Result.ConnectionToken;

                return Client.Start(this, CancellationToken.None);
            }, TaskContinuationOptions.ExecuteSynchronously));
        }
Esempio n. 3
0
 public MoxiWorksClient(IMoxiWorksCredentials cred)
 {
     _credentials  = cred;
     ClientContext = new ContextClient(_credentials);
 }
Esempio n. 4
0
 public XMLClient(IContextClient client)
 {
     _client = client;
 }