Draugiem.lv API .NET iesaiņojums (wrapper)

Šajā lapā ir informācija par draugiem.lv API “iesaiņojumu” (wrapper) .NET valodām. Lai gan bibliotēka ir sarakstīta C#, to ir iespējams izmantot arī ar citām .NET platformas valodām.

Draugiem.lv .NET API versija 1.1

Izmaiņas:

  • Visa bibliotēka ir aprakstīta izmantojot XML komentārus, no kuriem ir uzģenerēta dokumentācija
  • Nedaudz izmainīta bibliotēkas saskarne, lai atbilstu Code Analysis prasībām
  • User klase papildināta ar īpašībām no kurām var nolasīt dažāda izmēra profila bildes URL
  • Wrapper klase papildināta ar metodēm GetOtherAppUsers un GetOtherAppUserIDs
  • Dažās vietās “uzklātas bruņu plātnes”, lai nodrošinātu stabilāku API izmantojošo programmu darbību

Lejupielādes:


© 2008 Ivars "PiRX" Āriņš

Published 22 December 2008 09:45 PM by ivars.arins
Filed under: ,

Comments

# andrejs.mamontovs said on 23 December, 2008 11:17 AM

Ivar, vajag tavu projektu ievietot mūsu WIKI sadaļā. Es jau tev to teicu klātienē, bet katram gadījumam iemūžinu šeit.

# kdr said on 29 January, 2009 02:48 PM

Vai ir pieejams arī izejas kods lietotāju saskarnei, kas tika pareklamēta pēdīgajā pasākumā?

# ivars.arins said on 29 January, 2009 02:53 PM

Pagaidām vēl nav, bet ceru, ka šajās brīvdienās izdosies to nedaudz sakopt, lai varētu nopublicēt. Katrā ziņā - tuvākajā laikā būs!

# caww_girtys said on 22 April, 2009 09:49 PM

System.Windows.Markup.XamlParseException: Cannot create instance of 'LoginWindow' defined in assembly 'DraugiemPastnieks, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation.  Error in markup file 'DraugiemPastnieks;component/LoginWindow.xaml'. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'PiRX.DraugiemLV, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

File name: 'PiRX.DraugiemLV, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'

  at DraugiemDesktop.LoginWindow..ctor(Boolean newUser, String errorText)

  at DraugiemDesktop.LoginWindow..ctor()

WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

  --- End of inner exception stack trace ---

  at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)

  at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)

  at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)

  at System.Activator.CreateInstance(Type type, Boolean nonPublic)

  at System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)

  --- End of inner exception stack trace ---

  at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)

  at System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)

  at System.Windows.Markup.BamlRecordReader.ThrowException(String message, Exception innerException)

  at System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)

  at System.Windows.Markup.BamlRecordReader.GetElementAndFlags(BamlElementStartRecord bamlElementStartRecord, Object& element, ReaderFlags& flags, Type& delayCreatedType, Int16& delayCreatedTypeId)

  at System.Windows.Markup.BamlRecordReader.BaseReadElementStartRecord(BamlElementStartRecord bamlElementRecord)

  at System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)

  at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)

  at System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)

  at System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment()

  at System.Windows.Markup.TreeBuilder.Parse()

  at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)

  at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)

  at MS.Internal.AppModel.AppModelKnownContentFactory.BamlConverter(Stream stream, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)

  at MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(Stream s, ContentType contentType, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)

  at System.Windows.Navigation.NavigationService.GetObjectFromResponse(WebRequest request, WebResponse response, Uri destinationUri, Object navState)

  at System.Windows.Navigation.NavigationService.DoNavigate(Uri source, NavigationMode f, Object navState)

  at System.Windows.Navigation.NavigateQueueItem.Dispatch(Object obj)

  at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)

  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

Leave a Comment

(obligāts) 
(obligāts) 
(brīvizvēles)
(obligāts)