This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Raven.Client.Document; | |
namespace OurNamespace | |
{ | |
public sealed class RavenStore :IDisposable | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Runtime.Serialization; | |
using Couchbase; | |
using Enyim.Caching.Memcached; | |
using Raven.Abstractions.Data; | |
using Raven.Client.Document; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Share GetShare(string shareId) | |
{ | |
try | |
{ | |
using (var session = DocumentStore.OpenSession()) | |
{ | |
var share = (from m in session.Query<Share>() where m.Id == shareId select m).FirstOrDefault(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"receipt":{"original_purchase_date_pst":"2012-07-04 08:09:51 America/Los_Angeles", "original_transaction_id":"1000000052266383", "original_purchase_date_ms":"1341414591834", "transaction_id":"1000000052266383", "quantity":"1", "product_id":"com.CreativeD.Cards_Dev.PremiumCredits3", "bvrs":"39.0", "purchase_date_ms":"1341414591834", "purchase_date":"2012-07-04 15:09:51 Etc/GMT", "original_purchase_date":"2012-07-04 15:09:51 Etc/GMT", "purchase_date_pst":"2012-07-04 08:09:51 America/Los_Angeles", "bid":"com.CreativeD.Cards-Dev", "item_id":"531765109"}, "status":0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Twitterizer; | |
namespace TwitterTEst | |
{ | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tokens = new OAuthTokens | |
{ | |
AccessToken = [MyAccess], | |
AccessTokenSecret = [MySecret], | |
ConsumerKey = ConsumerKey, | |
ConsumerSecret = ConsumerSecret | |
}; | |
var verify = TwitterAccount.VerifyCredentials(tokens); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var flashvars = { | |
externalSessionKey:"@ViewData["signedRequest"]", | |
service:"@ViewData["serviceUrl"]", | |
build:"@ViewData["swfVersion"]", | |
facebook:false, | |
deckId:@ViewData["deckId"], | |
ad:"@ViewData["adServer"]" | |
}; | |
var params = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var results = _session.Query<Model.ActionObject>().Where(x => x.ActionType == ActionType.TradeRequest && x.ActionObjectId==actionObject.ActionObjectId); | |
foreach (var result in results) | |
{ | |
result.State = State.Closed; | |
} | |
_session.Store(actionObject); | |
_session.SaveChanges(); |
NewerOlder