/// <summary> /// /// This method will retrieve data via an instance of the official Nethereum Storage contract. /// /// NOTE: UNDER CONSTRUCTION /// /// <param name="poStorageSource">The address that represents the instance on the chain</param> /// <param name="poSaveEntity">The entity that we are trying to save to the chain</param> /// <param name="psWeb3Url">The URL for the Ethereum client to which we want to connect</param> /// <returns>Contains indicator of success</returns> /// </summary> public static async Task <bool> PersistEntityAsync(this Wonka.Eth.Init.WonkaEthSource poStorageSource, WonkaProduct poSaveEntity, string psWeb3Url = "") { BizDataStorageService storageService = poStorageSource.GetStorageService(psWeb3Url); // NOTE: Additional work needed // storageService.SetEntityRequestAsync(setEntityFunction); return(true); }
/// <summary> /// /// This method will retrieve data via an instance of the official Nethereum Storage contract. /// /// NOTE: UNDER CONSTRUCTION /// /// <param name="poStorageSource">The address that represents the instance on the chain</param> /// <param name="psWeb3Url">The URL for the Ethereum client to which we want to connect</param> /// <returns>Contains the assembled product data that represents the current product</returns> /// </summary> public static async Task <WonkaProduct> RetrieveEntityAsync(this Wonka.Eth.Init.WonkaEthSource poStorageSource, string psWeb3Url = "") { WonkaProduct CurrentEntity = new WonkaProduct(); BizDataStorageService storageService = poStorageSource.GetStorageService(psWeb3Url); // NOTE: Additional work needed // storageService.GetEntityRequestAsync(getEntityFunction); return(CurrentEntity); }