コード例 #1
0
ファイル: UpdateProxy.cs プロジェクト: kapiya/Warewolf
        public IList <string> TestSqliteConnection(ISqliteDBSource resource)
        {
            var con            = Connection;
            var comsController = CommunicationControllerFactory.CreateController("TestSqliteService");
            var serialiser     = new Dev2JsonSerializer();

            comsController.AddPayloadArgument("SqliteSource", serialiser.SerializeToBuilder(resource));
            var output = comsController.ExecuteCommand <IExecuteMessage>(con, GlobalConstants.ServerWorkspaceID);

            if (output == null)
            {
                throw new WarewolfTestException(ErrorResource.UnableToContactServer, null);
            }

            if (output.HasError)
            {
                throw new WarewolfTestException(output.Message.ToString(), null);
            }

            return(serialiser.Deserialize <List <string> >(output.Message));
        }
コード例 #2
0
 public IList <string> TestSqliteConnection(ISqliteDBSource serverSource) => UpdateManagerProxy.TestSqliteConnection(serverSource);
コード例 #3
0
 public bool Equals(ISqliteDBSource other)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
 public IList <string> TestSqliteConnection(ISqliteDBSource resource) => _updateRepository.TestSqliteConnection(resource);