public static void Login(string loginReason, AssetStoreLoginWindow.LoginCallback callback) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type AssetStoreLoginWindow.\u003CLogin\u003Ec__AnonStorey59 loginCAnonStorey59 = new AssetStoreLoginWindow.\u003CLogin\u003Ec__AnonStorey59(); // ISSUE: reference to a compiler-generated field loginCAnonStorey59.callback = callback; // ISSUE: reference to a compiler-generated field loginCAnonStorey59.loginReason = loginReason; if (AssetStoreClient.HasActiveSessionID) { AssetStoreClient.Logout(); } if (!AssetStoreClient.RememberSession || !AssetStoreClient.HasSavedSessionID) { // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field AssetStoreLoginWindow.ShowAssetStoreLoginWindow(loginCAnonStorey59.loginReason, loginCAnonStorey59.callback); } else { // ISSUE: reference to a compiler-generated method AssetStoreClient.LoginWithRememberedSession(new AssetStoreClient.DoneLoginCallback(loginCAnonStorey59.\u003C\u003Em__99)); } }
public static void Login(string loginReason, AssetStoreLoginWindow.LoginCallback callback) { if (AssetStoreClient.HasActiveSessionID) { AssetStoreClient.Logout(); } if (!AssetStoreClient.RememberSession || !AssetStoreClient.HasSavedSessionID) { AssetStoreLoginWindow.ShowAssetStoreLoginWindow(loginReason, callback); } else { AssetStoreClient.LoginWithRememberedSession(delegate(string errorMessage) { if (string.IsNullOrEmpty(errorMessage)) { callback(errorMessage); } else { AssetStoreLoginWindow.ShowAssetStoreLoginWindow(loginReason, callback); } }); } }