I'm following this article,
https://msdn.microsoft.com/en-us/magazine/mt632271.aspx
It references OneDriveClientExtensions which I can't find anywhere or any mention of where it might be. Any ideas?
Nick.
"OneDriveClientExtensions" is a part of OneDriveSDK version 1.x, but latest 2.x does not have it.
And, the article of MSDN magazine is based on OneDriveSDK version 1.x.
To follow the article, you need to pick the SDK 1.x from nuget.
https://www.nuget.org/packages/Microsoft.OneDriveSDK/1.2.0
If you use GetClientUsingOnlineIdAuthenticator method, then
replace
OneDriveClientExtensions.GetClientUsingOnlineIdAuthenticator(Scopes)
with
var onlineIdProvider = new OnlineIdAuthenticationProvider(Scopes);
await
onlineIdProvider.RestoreMostRecentFromCacheOrAuthenticateUserAsync();
var client = new
OneDriveClient("https://api.onedrive.com/v1.0",onlineIdProvider);
Related
I updated automapper package today and it got updated to 5.0.0-beta and i immediately got few build errors. Going through the latest changes in their wiki page i found that CreateMap is deprecated. So i followed their instruction and here is my code below.
The created mapper shows these exception about which i have no clue. I am not able to continue further. Should i do something extra with this new version of AutoMapper? Any help would be greatly appreciated. My POCO classes are just regular ones with int and strings.
You can just create a new Mapper instance now:
var mapper = new Mapper(config);
builder.RegisterInstance(mapper).As<IMapper>();
Or, if you prefer the old static way, just use Mapper.Initialize().
org.openntf.domino API M2.5C on Domino 8.5.3FP2 win 64.
I have imported M2.5C into my project, which currently uses "traditional" Domino java techniques. I seem to having problems creating a session, getting current database, either directly from the openntf api or using the Factory.fromLotus() method as I get the following error:
HTTP JVM: java.lang.NoClassDefFoundError: lotus/domino/NotesCalendar
e.g.
import org.openntf.domino.*;
import org.openntf.domino.utils.*;
org.openntf.domino.Session s = null;
lotus.domino.Session sess_dom = DominoAccess.getCurrentSession();
// All good so far and I can do whatever with this session
// object e.g. sess_dom.getEffectiveUserName();
// All these error
s = Factory.getSession();
s = XSPUtil.getCurrentSession();
s = Factory.fromLotus(sess_dom, org.openntf.domino.Session.class, null);
If I follow Factory.getSession(), it looks like it ultimately does a fromLotus(). I must be missing something really simple, any help would be greatly welcomed.
Nick, the OpenNTF Domino API requires Domino 9.0. Earlier versions (including 8.5.3) do not have the NotesCalendar class in the IBM-provided API.
A few people have expressed interest in a backwards-compatible version, but we have been hesitant as it would be a true fork. We've been looking for a maintainer for such a fork. Are you interested?
The method CGWaitForScreenRefreshRects is deprecated in Mac OS X v10.8.
The alternative method mentioned in class reference(CGRegisterScreenRefreshCallback) is also deprecated.
What should I use to get the screen updates in 10.8?
Look at CGDisplayStream.h. It is new set of APIs added to 10.8. Their is rare documentation on it though.
In a document library in which minor version is enabled, UpdateOverwriteVersion() creates a minor version.
The thread - http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/e0d1af63-3705-4b58-95c5-f0f92f86a23f - explains the similar problem and proposes the solution as turn-off the minor versioning, update the item and turn-on the minor versioning.
But, I cannot temporarily turn-off the minor versioning setting, since the same library may be in use by other users to upload/change their documents and the turning-off the setting might affect their operations.
Is there any-other solution?
Thanks and Regards,
Arjabh
If the goal is to update the fields without creating multiple versions see the code:
Microsoft.SharePoint.Client.File lp_newFile = lp_web.GetFileByServerRelativeUrl(lp_uri.LocalPath);
lp_context.Load(lp_newFile);
lp_context.ExecuteQuery();
//check out to make sure not to create multiple versions
lp_newFile.CheckOut();
ListItem lp_item = lp_newFile.ListItemAllFields;
listItem["Created"] = info.SourceFile.CreationTime;
listItem["Modified"] = info.SourceFile.LastWriteTime;
listItem.Update();
// use OverwriteCheckIn type to make sure not to create multiple versions
lp_newFile.CheckIn(string.Empty, CheckinType.OverwriteCheckIn);
Try listItem.SystemUpdate(false) instead of listItem.UpdateOverwriteVersion()
Use something like this (it works for me) :
//Disable minor versions on your list or library, if your item is in a major version (maybe use a file.Publish before)
list.EnableMinorVersions = false;
list.Update();
//Update item and overwrite your major version
ListItem lp_item = lp_newFile.ListItemAllFields;
lp_item["Created"] = info.SourceFile.CreationTime;
lp_item["Modified"] = info.SourceFile.LastWriteTime;
lp_item.UpdateOverwriteVersion();
//Enable minor versions
list.EnableMinorVersions = true;
list.Update();
I am trying to convert a Map example from objective-c to MonoTouch but the MKCoordinateRegionMakeWithDistance isn't wrapped in .NET as far as I managed to find.
This issue has been marked as resolved by the MonoTouch team, so where is it? :-)
https://bugzilla.novell.com/show_bug.cgi?id=629743
It's there in MonoTouch 4.
using MonoTouch.MapKit;
...
var region = MKCoordinateRegion.FromDistance(center, latmeters, lngmeters);
Hope this helps.