예제 #1
0
        public override Result Initialize(InitializeInfo initInfo)
        {
            GCloudCommon.InitializeInfo = initInfo;
            if (initInfo == null)
            {
                throw new Exception("ApolloInfo could not be null!!");
            }


            byte[] buffer;

            if (!initInfo.Encode(out buffer))
            {
                return(new Result(ErrorCode.InnerError));
            }

            return(new Result((ErrorCode)gcloud_init(buffer, buffer.Length)));
        }
예제 #2
0
 public abstract Result Initialize(InitializeInfo initInfo);